summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-08-17 15:52:15 +0000
committerTom Stellard <[email protected]>2012-08-23 15:00:48 +0000
commite30b4644b613a130318cdf240ad237b0afbc525a (patch)
tree4f97417b47aa25c8d7d799534cdb656c5a8f8daf /src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp
parente61c54cb6b220dea243568919a001e5dc7c01303 (diff)
radeon/llvm: Add AsmPrinter
Diffstat (limited to 'src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp')
-rw-r--r--src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp b/src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp
new file mode 100644
index 00000000000..4b7961e59d8
--- /dev/null
+++ b/src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp
@@ -0,0 +1,16 @@
+
+#include "AMDGPUAsmPrinter.h"
+#include "AMDGPU.h"
+#include "llvm/Support/TargetRegistry.h"
+
+using namespace llvm;
+
+
+static AsmPrinter *createAMDGPUAsmPrinterPass(TargetMachine &tm,
+ MCStreamer &Streamer) {
+ return new AMDGPUAsmPrinter(tm, Streamer);
+}
+
+extern "C" void LLVMInitializeAMDGPUAsmPrinter() {
+ TargetRegistry::RegisterAsmPrinter(TheAMDGPUTarget, createAMDGPUAsmPrinterPass);
+}