1 | //===-- R600CodeGenPassBuilder.h -- Build R600 CodeGen pipeline -*- C++ -*-===// |
---|---|
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 | #ifndef LLVM_LIB_TARGET_AMDGPU_R600CODEGENPASSBUILDER_H |
10 | #define LLVM_LIB_TARGET_AMDGPU_R600CODEGENPASSBUILDER_H |
11 | |
12 | #include "llvm/MC/MCStreamer.h" |
13 | #include "llvm/Passes/CodeGenPassBuilder.h" |
14 | |
15 | namespace llvm { |
16 | |
17 | class R600TargetMachine; |
18 | |
19 | class R600CodeGenPassBuilder |
20 | : public CodeGenPassBuilder<R600CodeGenPassBuilder, R600TargetMachine> { |
21 | public: |
22 | R600CodeGenPassBuilder(R600TargetMachine &TM, const CGPassBuilderOption &Opts, |
23 | PassInstrumentationCallbacks *PIC); |
24 | |
25 | void addPreISel(AddIRPass &addPass) const; |
26 | void addAsmPrinter(AddMachinePass &, CreateMCStreamer) const; |
27 | Error addInstSelector(AddMachinePass &) const; |
28 | }; |
29 | |
30 | } // namespace llvm |
31 | |
32 | #endif // LLVM_LIB_TARGET_AMDGPU_R600CODEGENPASSBUILDER_H |
33 |