1 //===- lib/Target/AMDGPU/AMDGPUCodeGenPassBuilder.h -----------*- C++ -*---===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUCODEGENPASSBUILDER_H
10 #define LLVM_LIB_TARGET_AMDGPU_AMDGPUCODEGENPASSBUILDER_H
12 #include "llvm/MC/MCStreamer.h"
13 #include "llvm/Passes/CodeGenPassBuilder.h"
17 class AMDGPUTargetMachine
;
19 class AMDGPUCodeGenPassBuilder
20 : public CodeGenPassBuilder
<AMDGPUCodeGenPassBuilder
, AMDGPUTargetMachine
> {
22 AMDGPUCodeGenPassBuilder(AMDGPUTargetMachine
&TM
,
23 const CGPassBuilderOption
&Opts
,
24 PassInstrumentationCallbacks
*PIC
);
26 void addPreISel(AddIRPass
&addPass
) const;
27 void addAsmPrinter(AddMachinePass
&, CreateMCStreamer
) const;
28 Error
addInstSelector(AddMachinePass
&) const;
33 #endif // LLVM_LIB_TARGET_AMDGPU_AMDGPUCODEGENPASSBUILDER_H