LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AMDGPUAsmPrinter.h
Go to the documentation of this file.
1 //===-- AMDGPUAsmPrinter.h - Print AMDGPU assembly code ---------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 /// \file
11 /// \brief AMDGPU Assembly printer class.
12 //
13 //===----------------------------------------------------------------------===//
14 
15 #ifndef AMDGPU_ASMPRINTER_H
16 #define AMDGPU_ASMPRINTER_H
17 
19 #include <string>
20 #include <vector>
21 
22 namespace llvm {
23 
24 class AMDGPUAsmPrinter : public AsmPrinter {
25 
26 public:
27  explicit AMDGPUAsmPrinter(TargetMachine &TM, MCStreamer &Streamer);
28 
30 
31  virtual const char *getPassName() const {
32  return "AMDGPU Assembly Printer";
33  }
34 
35  /// \brief Emit register usage information so that the GPU driver
36  /// can correctly setup the GPU state.
39 
40  /// Implemented in AMDGPUMCInstLower.cpp
41  virtual void EmitInstruction(const MachineInstr *MI);
42 
43 protected:
45  std::vector<std::string> DisasmLines, HexLines;
47 };
48 
49 } // End anonymous llvm
50 
51 #endif //AMDGPU_ASMPRINTER_H
virtual const char * getPassName() const
void EmitProgramInfoSI(MachineFunction &MF)
const MachineFunction * MF
The current machine function.
Definition: AsmPrinter.h:81
virtual bool runOnMachineFunction(MachineFunction &MF)
AMDGPUAsmPrinter(TargetMachine &TM, MCStreamer &Streamer)
TargetMachine & TM
Definition: AsmPrinter.h:62
std::vector< std::string > HexLines
virtual void EmitInstruction(const MachineInstr *MI)
Implemented in AMDGPUMCInstLower.cpp.
std::vector< std::string > DisasmLines
void EmitProgramInfoR600(MachineFunction &MF)
Emit register usage information so that the GPU driver can correctly setup the GPU state...