Revert " [LoongArch][ISel] Check the number of sign bits in `PatGprGpr_32` (#107432)"
[llvm-project.git] / llvm / lib / Target / AMDGPU / AMDGPUCodeGenPassBuilder.h
blob5f79e309703a3341fc1505e33d1605f4433b10d2
1 //===- lib/Target/AMDGPU/AMDGPUCodeGenPassBuilder.h -----------*- 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 //===----------------------------------------------------------------------===//
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"
15 namespace llvm {
17 class AMDGPUTargetMachine;
19 class AMDGPUCodeGenPassBuilder
20 : public CodeGenPassBuilder<AMDGPUCodeGenPassBuilder, AMDGPUTargetMachine> {
21 public:
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;
31 } // namespace llvm
33 #endif // LLVM_LIB_TARGET_AMDGPU_AMDGPUCODEGENPASSBUILDER_H