summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM64/InstPrinter/ARM64InstPrinter.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-04-30 11:19:28 +0000
committerTim Northover <tnorthover@apple.com>2014-04-30 11:19:28 +0000
commit4b2f8a990e104bac335945dd7d1b1b48bde39cbd (patch)
treec6307342421f57d01564652d0ce4f81dc93e99cb /llvm/lib/Target/ARM64/InstPrinter/ARM64InstPrinter.cpp
parentcfd6e66544a39a7a8a5c6b7c82b71b438232b67a (diff)
downloadbcm5719-llvm-4b2f8a990e104bac335945dd7d1b1b48bde39cbd.tar.gz
bcm5719-llvm-4b2f8a990e104bac335945dd7d1b1b48bde39cbd.zip
ARM64: hexify printing various immediate operands
This is mostly aimed at the NEON logical operations and MOVI/MVNI (since they accept weird shifts which are more naturally understandable in hex notation). Also changes BRK/HINT etc, which is probably a neutral change, but easier than the alternative. llvm-svn: 207634
Diffstat (limited to 'llvm/lib/Target/ARM64/InstPrinter/ARM64InstPrinter.cpp')
-rw-r--r--llvm/lib/Target/ARM64/InstPrinter/ARM64InstPrinter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM64/InstPrinter/ARM64InstPrinter.cpp b/llvm/lib/Target/ARM64/InstPrinter/ARM64InstPrinter.cpp
index 875c758b1ad..55aca160d12 100644
--- a/llvm/lib/Target/ARM64/InstPrinter/ARM64InstPrinter.cpp
+++ b/llvm/lib/Target/ARM64/InstPrinter/ARM64InstPrinter.cpp
@@ -1008,6 +1008,12 @@ void ARM64InstPrinter::printOperand(const MCInst *MI, unsigned OpNo,
}
}
+void ARM64InstPrinter::printHexImm(const MCInst *MI, unsigned OpNo,
+ raw_ostream &O) {
+ const MCOperand &Op = MI->getOperand(OpNo);
+ O << format("#%#llx", Op.getImm());
+}
+
void ARM64InstPrinter::printPostIncOperand(const MCInst *MI, unsigned OpNo,
unsigned Imm, raw_ostream &O) {
const MCOperand &Op = MI->getOperand(OpNo);
OpenPOWER on IntegriCloud