diff options
author | Christian Konig <christian.koenig@amd.com> | 2013-02-21 15:17:22 +0000 |
---|---|---|
committer | Christian Konig <christian.koenig@amd.com> | 2013-02-21 15:17:22 +0000 |
commit | 53f22df199542f6fc4e0edc5b7cecbeacea11ada (patch) | |
tree | e34a9505b873ea809cf8305bc1ac8a6df848cd42 /lib/Target/R600/InstPrinter | |
parent | ee44118ef7a917b2fd94f40e5a07d8b5f420acf2 (diff) | |
download | external_llvm-53f22df199542f6fc4e0edc5b7cecbeacea11ada.zip external_llvm-53f22df199542f6fc4e0edc5b7cecbeacea11ada.tar.gz external_llvm-53f22df199542f6fc4e0edc5b7cecbeacea11ada.tar.bz2 |
R600/SI: add all the other missing asm operands v2
v2: put implicit parameters in []
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175754 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/R600/InstPrinter')
-rw-r--r-- | lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp b/lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp index d6450a0..10547a5 100644 --- a/lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp +++ b/lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp @@ -11,6 +11,7 @@ #include "AMDGPUInstPrinter.h" #include "MCTargetDesc/AMDGPUMCTargetDesc.h" #include "llvm/MC/MCInst.h" +#include "llvm/MC/MCExpr.h" using namespace llvm; @@ -35,6 +36,9 @@ void AMDGPUInstPrinter::printOperand(const MCInst *MI, unsigned OpNo, O << Op.getImm(); } else if (Op.isFPImm()) { O << Op.getFPImm(); + } else if (Op.isExpr()) { + const MCExpr *Exp = Op.getExpr(); + Exp->print(O); } else { assert(!"unknown operand type in printOperand"); } |