AMDGPUAsmPrinter.h revision 235318a578b3d7772a60590c7e76791ed6d1a78e
1
2#ifndef AMDGPU_ASMPRINTER_H
3#define AMDGPU_ASMPRINTER_H
4
5#include "llvm/CodeGen/AsmPrinter.h"
6
7namespace llvm {
8
9class AMDGPUAsmPrinter : public AsmPrinter {
10
11public:
12  explicit AMDGPUAsmPrinter(TargetMachine &TM, MCStreamer &Streamer)
13    : AsmPrinter(TM, Streamer) { }
14
15  virtual bool runOnMachineFunction(MachineFunction &MF);
16
17  virtual const char *getPassName() const {
18    return "AMDGPU Assembly Printer";
19  }
20
21  /// EmitProgramInfo - Emit register usage information so that the GPU driver
22  /// can correctly setup the GPU state.
23  void EmitProgramInfo(MachineFunction &MF);
24
25  /// EmitInstuction - Implemented in AMDGPUMCInstLower.cpp
26  virtual void EmitInstruction(const MachineInstr *MI);
27};
28
29} // End anonymous llvm
30
31#endif //AMDGPU_ASMPRINTER_H
32