xref: /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/R600CodeGenPassBuilder.cpp (revision 47ef2a131091508e049ab10cad7f91a3c1342cd9)
1 //===-- R600CodeGenPassBuilder.cpp ------ Build R600 CodeGen pipeline -----===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #include "R600CodeGenPassBuilder.h"
10 #include "R600TargetMachine.h"
11 
12 using namespace llvm;
13 
14 R600CodeGenPassBuilder::R600CodeGenPassBuilder(
15     R600TargetMachine &TM, const CGPassBuilderOption &Opts,
16     PassInstrumentationCallbacks *PIC)
17     : CodeGenPassBuilder(TM, Opts, PIC) {
18   Opt.RequiresCodeGenSCCOrder = true;
19 }
20 
21 void R600CodeGenPassBuilder::addPreISel(AddIRPass &addPass) const {
22   // TODO: Add passes pre instruction selection.
23 }
24 
25 void R600CodeGenPassBuilder::addAsmPrinter(AddMachinePass &addPass,
26                                            CreateMCStreamer) const {
27   // TODO: Add AsmPrinter.
28 }
29 
30 Error R600CodeGenPassBuilder::addInstSelector(AddMachinePass &) const {
31   // TODO: Add instruction selector.
32   return Error::success();
33 }
34