mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-23 12:24:34 +00:00
add support for instruction predicates.
llvm-svn: 84575
This commit is contained in:
parent
976978de4a
commit
18bc7716d6
@ -12,14 +12,13 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "asm-printer"
|
||||
#include "ARM.h" // FIXME: FACTOR ENUMS BETTER.
|
||||
#include "ARMInstPrinter.h"
|
||||
#include "ARMAddressingModes.h"
|
||||
#include "llvm/MC/MCInst.h"
|
||||
#include "llvm/MC/MCAsmInfo.h"
|
||||
#include "llvm/MC/MCExpr.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "ARMGenInstrNames.inc"
|
||||
#include "ARMGenRegisterNames.inc"
|
||||
using namespace llvm;
|
||||
|
||||
// Include the auto-generated portion of the assembly writer.
|
||||
@ -181,6 +180,12 @@ void ARMInstPrinter::printRegisterList(const MCInst *MI, unsigned OpNum) {
|
||||
O << "}";
|
||||
}
|
||||
|
||||
void ARMInstPrinter::printPredicateOperand(const MCInst *MI, unsigned OpNum) {
|
||||
ARMCC::CondCodes CC = (ARMCC::CondCodes)MI->getOperand(OpNum).getImm();
|
||||
if (CC != ARMCC::AL)
|
||||
O << ARMCondCodeToString(CC);
|
||||
}
|
||||
|
||||
|
||||
void ARMInstPrinter::printCPInstOperand(const MCInst *MI, unsigned OpNum,
|
||||
const char *Modifier) {
|
||||
|
@ -68,7 +68,7 @@ public:
|
||||
void printT2AddrModeImm8OffsetOperand(const MCInst *MI, unsigned OpNum) {}
|
||||
void printT2AddrModeSoRegOperand(const MCInst *MI, unsigned OpNum) {}
|
||||
|
||||
void printPredicateOperand(const MCInst *MI, unsigned OpNum) {}
|
||||
void printPredicateOperand(const MCInst *MI, unsigned OpNum);
|
||||
void printSBitModifierOperand(const MCInst *MI, unsigned OpNum) {}
|
||||
void printRegisterList(const MCInst *MI, unsigned OpNum);
|
||||
void printCPInstOperand(const MCInst *MI, unsigned OpNum,
|
||||
|
Loading…
x
Reference in New Issue
Block a user