diff options
author | Tom Stellard <[email protected]> | 2012-08-17 15:52:15 +0000 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-08-23 15:00:48 +0000 |
commit | e30b4644b613a130318cdf240ad237b0afbc525a (patch) | |
tree | 4f97417b47aa25c8d7d799534cdb656c5a8f8daf /src/gallium/drivers/radeon/AMDGPUAsmPrinter.h | |
parent | e61c54cb6b220dea243568919a001e5dc7c01303 (diff) |
radeon/llvm: Add AsmPrinter
Diffstat (limited to 'src/gallium/drivers/radeon/AMDGPUAsmPrinter.h')
-rw-r--r-- | src/gallium/drivers/radeon/AMDGPUAsmPrinter.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/AMDGPUAsmPrinter.h b/src/gallium/drivers/radeon/AMDGPUAsmPrinter.h new file mode 100644 index 00000000000..865b18619e1 --- /dev/null +++ b/src/gallium/drivers/radeon/AMDGPUAsmPrinter.h @@ -0,0 +1,25 @@ + +#ifndef AMDGPU_ASMPRINTER_H +#define AMDGPU_ASMPRINTER_H + +#include "llvm/CodeGen/AsmPrinter.h" + +namespace llvm { + +class AMDGPUAsmPrinter : public AsmPrinter { + +public: + explicit AMDGPUAsmPrinter(TargetMachine &TM, MCStreamer &Streamer) + : AsmPrinter(TM, Streamer) { } + + virtual const char *getPassName() const { + return "AMDGPU Assembly Printer"; + } + + /// EmitInstuction - Implemented in AMDGPUMCInstLower.cpp + virtual void EmitInstruction(const MachineInstr *MI); +}; + +} // End anonymous llvm + +#endif //AMDGPU_ASMPRINTER_H |