diff options
author | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2015-03-04 20:44:33 +0000 |
---|---|---|
committer | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2015-03-04 20:44:33 +0000 |
commit | e8effe1edb7c1d5d798eed5a67d76b4f67983cab (patch) | |
tree | 9de4252a445569a316e11165d638b20529ca871d /llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp | |
parent | 4276945161e4dbb11c850993ece34a5109ef64de (diff) | |
download | bcm5719-llvm-e8effe1edb7c1d5d798eed5a67d76b4f67983cab.tar.gz bcm5719-llvm-e8effe1edb7c1d5d798eed5a67d76b4f67983cab.zip |
Add LLVM support for PPC cryptography builtins
Review: http://reviews.llvm.org/D7955
llvm-svn: 231285
Diffstat (limited to 'llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp b/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp index c287fbe7c5b..5d1aa1ad540 100644 --- a/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp +++ b/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp @@ -214,6 +214,13 @@ void PPCInstPrinter::printPredicateOperand(const MCInst *MI, unsigned OpNo, printOperand(MI, OpNo+1, O); } +void PPCInstPrinter::printU1ImmOperand(const MCInst *MI, unsigned OpNo, + raw_ostream &O) { + unsigned int Value = MI->getOperand(OpNo).getImm(); + assert(Value <= 1 && "Invalid u1imm argument!"); + O << (unsigned int)Value; +} + void PPCInstPrinter::printU2ImmOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O) { unsigned int Value = MI->getOperand(OpNo).getImm(); |