summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/InstPrinter/AMDGPUInstPrinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/radeon/InstPrinter/AMDGPUInstPrinter.cpp')
-rw-r--r--src/gallium/drivers/radeon/InstPrinter/AMDGPUInstPrinter.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/gallium/drivers/radeon/InstPrinter/AMDGPUInstPrinter.cpp b/src/gallium/drivers/radeon/InstPrinter/AMDGPUInstPrinter.cpp
deleted file mode 100644
index b6ab9b22fb1..00000000000
--- a/src/gallium/drivers/radeon/InstPrinter/AMDGPUInstPrinter.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-
-#include "AMDGPUInstPrinter.h"
-#include "llvm/MC/MCInst.h"
-
-using namespace llvm;
-
-void AMDGPUInstPrinter::printInst(const MCInst *MI, raw_ostream &OS,
- StringRef Annot) {
- printInstruction(MI, OS);
-
- printAnnotation(OS, Annot);
-}
-
-void AMDGPUInstPrinter::printOperand(const MCInst *MI, unsigned OpNo,
- raw_ostream &O) {
-
- const MCOperand &Op = MI->getOperand(OpNo);
- if (Op.isReg()) {
- O << getRegisterName(Op.getReg());
- } else if (Op.isImm()) {
- O << Op.getImm();
- } else if (Op.isFPImm()) {
- O << Op.getFPImm();
- } else {
- assert(!"unknown operand type in printOperand");
- }
-}
-
-void AMDGPUInstPrinter::printMemOperand(const MCInst *MI, unsigned OpNo,
- raw_ostream &O) {
- printOperand(MI, OpNo, O);
-}
-
-#include "AMDGPUGenAsmWriter.inc"