LLVM
8.0.1
|
#include "Target/ARM/InstPrinter/ARMInstPrinter.h"
Static Public Member Functions | |
static const char * | getRegisterName (unsigned RegNo) |
Additional Inherited Members | |
Protected Member Functions inherited from llvm::MCInstPrinter | |
void | printAnnotation (raw_ostream &OS, StringRef Annot) |
Utility function for printing annotations. More... | |
Protected Attributes inherited from llvm::MCInstPrinter | |
raw_ostream * | CommentStream = nullptr |
A stream that comments can be emitted to if desired. More... | |
const MCAsmInfo & | MAI |
const MCInstrInfo & | MII |
const MCRegisterInfo & | MRI |
bool | UseMarkup = false |
True if we are printing marked up assembly. More... | |
bool | PrintImmHex = false |
True if we are printing immediates as hex. More... | |
HexStyle::Style | PrintHexStyle = HexStyle::C |
Which style to use for printing hexadecimal values. More... | |
Definition at line 21 of file ARMInstPrinter.h.
ARMInstPrinter::ARMInstPrinter | ( | const MCAsmInfo & | MAI, |
const MCInstrInfo & | MII, | ||
const MCRegisterInfo & | MRI | ||
) |
Definition at line 72 of file ARMInstPrinter.cpp.
void ARMInstPrinter::printAddrMode2OffsetOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 478 of file ARMInstPrinter.cpp.
References llvm::ARM_AM::getAddrOpcStr(), llvm::ARM_AM::getAM2Offset(), llvm::ARM_AM::getAM2Op(), llvm::ARM_AM::getAM2ShiftOpc(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::markup(), printRegImmShift(), printRegName(), and llvm::MCInstPrinter::UseMarkup.
void ARMInstPrinter::printAddrMode2Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 459 of file ARMInstPrinter.cpp.
References assert(), llvm::ARM_AM::getAM2IdxMode(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::ARMII::IndexModePost, llvm::MCOperand::isReg(), printAM2PreOrOffsetIndexOp(), and printOperand().
void ARMInstPrinter::printAddrMode3OffsetOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 548 of file ARMInstPrinter.cpp.
References llvm::ARM_AM::getAddrOpcStr(), llvm::ARM_AM::getAM3Offset(), llvm::ARM_AM::getAM3Op(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::markup(), and printRegName().
void ARMInstPrinter::printAddrMode3Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 533 of file ARMInstPrinter.cpp.
References assert(), llvm::ARM_AM::getAM3IdxMode(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::ARMII::IndexModePost, llvm::MCOperand::isReg(), printAM3PreOrOffsetIndexOp(), and printOperand().
void ARMInstPrinter::printAddrMode5FP16Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 628 of file ARMInstPrinter.cpp.
References llvm::ARM_AM::getAddrOpcStr(), llvm::ARM_AM::getAM5FP16Offset(), llvm::ARM_AM::getAM5FP16Op(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCOperand::isReg(), llvm::MCInstPrinter::markup(), printOperand(), printRegName(), and llvm::ARM_AM::sub.
void ARMInstPrinter::printAddrMode5Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 604 of file ARMInstPrinter.cpp.
References llvm::ARM_AM::getAddrOpcStr(), llvm::ARM_AM::getAM5Offset(), llvm::ARM_AM::getAM5Op(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCOperand::isReg(), llvm::MCInstPrinter::markup(), printOperand(), printRegName(), and llvm::ARM_AM::sub.
void ARMInstPrinter::printAddrMode6OffsetOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 678 of file ARMInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), and printRegName().
void ARMInstPrinter::printAddrMode6Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 655 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::markup(), and printRegName().
void ARMInstPrinter::printAddrMode7Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 669 of file ARMInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::markup(), and printRegName().
void ARMInstPrinter::printAddrModeImm12Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1114 of file ARMInstPrinter.cpp.
References llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCOperand::isReg(), llvm::MCInstPrinter::markup(), printOperand(), and printRegName().
void ARMInstPrinter::printAddrModeTBB | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 435 of file ARMInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::markup(), and printRegName().
void ARMInstPrinter::printAddrModeTBH | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 447 of file ARMInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::markup(), and printRegName().
void ARMInstPrinter::printAdrLabelOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 970 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCInstPrinter::MAI, llvm::MCInstPrinter::markup(), llvm::MCExpr::print(), and scale().
|
virtual |
Referenced by printInst().
void llvm::ARMInstPrinter::printAM2PostIndexOp | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
void ARMInstPrinter::printAM2PreOrOffsetIndexOp | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 406 of file ARMInstPrinter.cpp.
References llvm::ARM_AM::getAddrOpcStr(), llvm::ARM_AM::getAM2Offset(), llvm::ARM_AM::getAM2Op(), llvm::ARM_AM::getAM2ShiftOpc(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::markup(), printRegImmShift(), printRegName(), and llvm::MCInstPrinter::UseMarkup.
Referenced by printAddrMode2Operand().
void ARMInstPrinter::printAM3PreOrOffsetIndexOp | ( | const MCInst * | MI, |
unsigned | Op, | ||
raw_ostream & | O, | ||
bool | AlwaysPrintImm0 | ||
) |
Definition at line 504 of file ARMInstPrinter.cpp.
References llvm::ARM_AM::getAddrOpcStr(), llvm::ARM_AM::getAM3Offset(), llvm::ARM_AM::getAM3Op(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::markup(), op, printRegName(), and llvm::ARM_AM::sub.
Referenced by printAddrMode3Operand().
void ARMInstPrinter::printBankedRegOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 897 of file ARMInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and Name.
void ARMInstPrinter::printBitfieldInvMaskImmOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 691 of file ARMInstPrinter.cpp.
References assert(), llvm::countLeadingZeros(), llvm::countTrailingZeros(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isImm(), and llvm::MCInstPrinter::markup().
void ARMInstPrinter::printCImmediate | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 952 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
void ARMInstPrinter::printComplexRotationOp | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1565 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
void ARMInstPrinter::printCoprocOptionImm | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 958 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
void ARMInstPrinter::printCPSIFlag | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 803 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::ARM_PROC::IFlagsToString().
void ARMInstPrinter::printCPSIMod | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 797 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::ARM_PROC::IModToString().
|
virtual |
void ARMInstPrinter::printFBits16 | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1345 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::MCInstPrinter::markup().
void ARMInstPrinter::printFBits32 | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1351 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::MCInstPrinter::markup().
void ARMInstPrinter::printFPImmOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1268 of file ARMInstPrinter.cpp.
References llvm::ARM_AM::getFPImmFloat(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::MCInstPrinter::markup().
void ARMInstPrinter::printGPRPairOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 778 of file ARMInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCRegisterInfo::getSubReg(), llvm::MCInstPrinter::MRI, printRegName(), and Reg.
void ARMInstPrinter::printImmPlusOneOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1287 of file ARMInstPrinter.cpp.
References llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::MCInstPrinter::markup().
|
overridevirtual |
Print the specified MCInst to the specified raw_ostream.
Implements llvm::MCInstPrinter.
Definition at line 80 of file ARMInstPrinter.cpp.
References llvm::MCInst::addOperand(), assert(), llvm::MCRegisterClass::contains(), llvm::MCOperand::createReg(), llvm::MCOperand::getImm(), llvm::MCRegisterInfo::getMatchingSuperReg(), llvm::MCInst::getNumOperands(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCRegisterInfo::getRegClass(), llvm::ARM_AM::getShiftOpcStr(), llvm::ARM_AM::getSORegOffset(), llvm::ARM_AM::getSORegShOp(), isStore(), llvm::MCInstPrinter::markup(), llvm::MCInstPrinter::MRI, printAliasInstr(), llvm::MCInstPrinter::printAnnotation(), printInstruction(), printPredicateOperand(), printRegisterList(), printRegName(), printSBitModifierOperand(), Reg, llvm::ARM_AM::rrx, llvm::MCInst::setOpcode(), and translateShiftImm().
void llvm::ARMInstPrinter::printInstruction | ( | const MCInst * | MI, |
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Referenced by printInst().
void ARMInstPrinter::printInstSyncBOption | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 711 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::ARM_ISB::InstSyncBOptToString().
void ARMInstPrinter::printLdStmModeOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 595 of file ARMInstPrinter.cpp.
References llvm::ARM_AM::getAM4SubMode(), llvm::ARM_AM::getAMSubModeStr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and Mode.
void ARMInstPrinter::printMandatoryPredicateOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 922 of file ARMInstPrinter.cpp.
References llvm::ARMCondCodeToString(), llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
void ARMInstPrinter::printMemBOption | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 704 of file ARMInstPrinter.cpp.
References llvm::MCSubtargetInfo::getFeatureBits(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::ARM_MB::MemBOptToString().
void ARMInstPrinter::printModImmOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1304 of file ARMInstPrinter.cpp.
References llvm::tgtok::Bits, llvm::MCOperand::getImm(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::ARM_AM::getSOImmVal(), llvm::MCOperand::isExpr(), llvm::MCInstPrinter::markup(), printOperand(), and llvm::ARM_AM::rotr32().
void ARMInstPrinter::printMSRMaskOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 815 of file ARMInstPrinter.cpp.
References llvm::MCSubtargetInfo::getFeatureBits(), llvm::MCOperand::getImm(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), llvm_unreachable, llvm::ARMSysReg::lookupMClassSysRegAPSRNonDeprecated(), llvm::ARMSysReg::lookupMClassSysRegBy12bitSYSmValue(), llvm::ARMSysReg::lookupMClassSysRegBy8bitSYSmValue(), and llvm::BitmaskEnumDetail::Mask().
void ARMInstPrinter::printNEONModImmOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1276 of file ARMInstPrinter.cpp.
References llvm::ARM_AM::decodeNEONModImm(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCInstPrinter::markup(), and llvm::raw_ostream::write_hex().
void ARMInstPrinter::printNoHashImmediate | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 940 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
void ARMInstPrinter::printOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 299 of file ARMInstPrinter.cpp.
References assert(), llvm::MCExpr::Binary, llvm::MCExpr::Constant, llvm::MCExpr::evaluateAsAbsolute(), llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), llvm::MCOperand::isReg(), llvm::MCInstPrinter::MAI, llvm::MCInstPrinter::markup(), printRegName(), Reg, and llvm::raw_ostream::write_hex().
Referenced by printAddrMode2Operand(), printAddrMode3Operand(), printAddrMode5FP16Operand(), printAddrMode5Operand(), printAddrModeImm12Operand(), printModImmOperand(), printT2AddrModeImm8s4Operand(), printThumbAddrModeImm5SOperand(), and printThumbAddrModeRROperand().
void ARMInstPrinter::printPCLabel | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 964 of file ARMInstPrinter.cpp.
References llvm_unreachable.
void ARMInstPrinter::printPImmediate | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 946 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
void ARMInstPrinter::printPKHASRShiftImm | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 749 of file ARMInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::MCInstPrinter::markup().
void ARMInstPrinter::printPKHLSLShiftImm | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 739 of file ARMInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::MCInstPrinter::markup().
void ARMInstPrinter::printPostIdxImm8Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 567 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::MCInstPrinter::markup().
void ARMInstPrinter::printPostIdxImm8s4Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 586 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::MCInstPrinter::markup().
void ARMInstPrinter::printPostIdxRegOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 576 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), and printRegName().
void ARMInstPrinter::printPredicateOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 911 of file ARMInstPrinter.cpp.
References llvm::ARMCC::AL, llvm::ARMCondCodeToString(), llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
Referenced by printInst().
void ARMInstPrinter::printRegisterList | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 760 of file ARMInstPrinter.cpp.
References assert(), llvm::MCInst::begin(), llvm::MCInst::end(), llvm::MCRegisterInfo::getEncodingValue(), llvm::MCInst::getNumOperands(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::MRI, and printRegName().
Referenced by printInst().
|
overridevirtual |
Print the assembler register name.
Reimplemented from llvm::MCInstPrinter.
Definition at line 76 of file ARMInstPrinter.cpp.
References getRegisterName(), and llvm::MCInstPrinter::markup().
Referenced by printAddrMode2OffsetOperand(), printAddrMode3OffsetOperand(), printAddrMode5FP16Operand(), printAddrMode5Operand(), printAddrMode6OffsetOperand(), printAddrMode6Operand(), printAddrMode7Operand(), printAddrModeImm12Operand(), printAddrModeTBB(), printAddrModeTBH(), printAM2PreOrOffsetIndexOp(), printAM3PreOrOffsetIndexOp(), printGPRPairOperand(), printInst(), printOperand(), printPostIdxRegOperand(), printRegisterList(), printSORegImmOperand(), printSORegRegOperand(), printT2AddrModeImm0_1020s4Operand(), printT2AddrModeImm8Operand(), printT2AddrModeImm8s4Operand(), printT2AddrModeSoRegOperand(), printT2SOOperand(), printThumbAddrModeImm5SOperand(), printThumbAddrModeRROperand(), printVectorListFour(), printVectorListFourAllLanes(), printVectorListFourSpaced(), printVectorListFourSpacedAllLanes(), printVectorListOne(), printVectorListOneAllLanes(), printVectorListThree(), printVectorListThreeAllLanes(), printVectorListThreeSpaced(), printVectorListThreeSpacedAllLanes(), printVectorListTwo(), printVectorListTwoAllLanes(), printVectorListTwoSpaced(), and printVectorListTwoSpacedAllLanes().
void ARMInstPrinter::printRotImmOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1294 of file ARMInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::MCInstPrinter::markup().
void ARMInstPrinter::printSBitModifierOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 930 of file ARMInstPrinter.cpp.
References assert(), llvm::MCInst::getOperand(), and llvm::MCOperand::getReg().
Referenced by printInst().
void ARMInstPrinter::printSetendOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 787 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
void ARMInstPrinter::printShiftImmOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 725 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::MCInstPrinter::markup().
void ARMInstPrinter::printSORegImmOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 389 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::ARM_AM::getSORegOffset(), llvm::ARM_AM::getSORegShOp(), printRegImmShift(), printRegName(), and llvm::MCInstPrinter::UseMarkup.
void ARMInstPrinter::printSORegRegOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 369 of file ARMInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::ARM_AM::getShiftOpcStr(), llvm::ARM_AM::getSORegOffset(), llvm::ARM_AM::getSORegShOp(), printRegName(), and llvm::ARM_AM::rrx.
void ARMInstPrinter::printT2AddrModeImm0_1020s4Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1197 of file ARMInstPrinter.cpp.
References llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::markup(), and printRegName().
void ARMInstPrinter::printT2AddrModeImm8OffsetOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1212 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::MCInstPrinter::markup().
void ARMInstPrinter::printT2AddrModeImm8Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1142 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::markup(), and printRegName().
void ARMInstPrinter::printT2AddrModeImm8s4OffsetOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1227 of file ARMInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::MCInstPrinter::markup().
void ARMInstPrinter::printT2AddrModeImm8s4Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1166 of file ARMInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCOperand::isReg(), llvm::MCInstPrinter::markup(), printOperand(), and printRegName().
void ARMInstPrinter::printT2AddrModeSoRegOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1245 of file ARMInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::markup(), and printRegName().
void ARMInstPrinter::printT2SOOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1098 of file ARMInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::ARM_AM::getSORegOffset(), llvm::ARM_AM::getSORegShOp(), llvm::MCOperand::isImm(), printRegImmShift(), printRegName(), Reg, and llvm::MCInstPrinter::UseMarkup.
void ARMInstPrinter::printThumbAddrModeImm5S1Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1067 of file ARMInstPrinter.cpp.
References printThumbAddrModeImm5SOperand().
void ARMInstPrinter::printThumbAddrModeImm5S2Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1074 of file ARMInstPrinter.cpp.
References printThumbAddrModeImm5SOperand().
void ARMInstPrinter::printThumbAddrModeImm5S4Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1081 of file ARMInstPrinter.cpp.
References printThumbAddrModeImm5SOperand().
void ARMInstPrinter::printThumbAddrModeImm5SOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O, | ||
unsigned | Scale | ||
) |
Definition at line 1045 of file ARMInstPrinter.cpp.
References llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCOperand::isReg(), llvm::MCInstPrinter::markup(), printOperand(), and printRegName().
Referenced by printThumbAddrModeImm5S1Operand(), printThumbAddrModeImm5S2Operand(), printThumbAddrModeImm5S4Operand(), and printThumbAddrModeSPOperand().
void ARMInstPrinter::printThumbAddrModeRROperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1025 of file ARMInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCOperand::isReg(), llvm::MCInstPrinter::markup(), printOperand(), and printRegName().
void ARMInstPrinter::printThumbAddrModeSPOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1088 of file ARMInstPrinter.cpp.
References printThumbAddrModeImm5SOperand().
void ARMInstPrinter::printThumbITMask | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1007 of file ARMInstPrinter.cpp.
References assert(), llvm::countTrailingZeros(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::BitmaskEnumDetail::Mask().
void ARMInstPrinter::printThumbLdrLabelOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 339 of file ARMInstPrinter.cpp.
References llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCInstPrinter::MAI, llvm::MCInstPrinter::markup(), and llvm::MCExpr::print().
void ARMInstPrinter::printThumbS4ImmOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 992 of file ARMInstPrinter.cpp.
References llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::MCInstPrinter::markup().
void ARMInstPrinter::printThumbSRImm | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 999 of file ARMInstPrinter.cpp.
References llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::MCInstPrinter::markup().
void ARMInstPrinter::printTraceSyncBOption | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 718 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::ARM_TSB::TraceSyncBOptToString().
void ARMInstPrinter::printVectorIndex | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1357 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
void ARMInstPrinter::printVectorListFour | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1412 of file ARMInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), and printRegName().
void ARMInstPrinter::printVectorListFourAllLanes | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1468 of file ARMInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), and printRegName().
void ARMInstPrinter::printVectorListFourSpaced | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1547 of file ARMInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), and printRegName().
void ARMInstPrinter::printVectorListFourSpacedAllLanes | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1514 of file ARMInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), and printRegName().
void ARMInstPrinter::printVectorListOne | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1363 of file ARMInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), and printRegName().
void ARMInstPrinter::printVectorListOneAllLanes | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1429 of file ARMInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), and printRegName().
void ARMInstPrinter::printVectorListThree | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1397 of file ARMInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), and printRegName().
void ARMInstPrinter::printVectorListThreeAllLanes | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1452 of file ARMInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), and printRegName().
void ARMInstPrinter::printVectorListThreeSpaced | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1531 of file ARMInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), and printRegName().
void ARMInstPrinter::printVectorListThreeSpacedAllLanes | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1499 of file ARMInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), and printRegName().
void ARMInstPrinter::printVectorListTwo | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1371 of file ARMInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCRegisterInfo::getSubReg(), llvm::MCInstPrinter::MRI, printRegName(), and Reg.
void ARMInstPrinter::printVectorListTwoAllLanes | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1438 of file ARMInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCRegisterInfo::getSubReg(), llvm::MCInstPrinter::MRI, printRegName(), and Reg.
void ARMInstPrinter::printVectorListTwoSpaced | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1384 of file ARMInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCRegisterInfo::getSubReg(), llvm::MCInstPrinter::MRI, printRegName(), and Reg.
void ARMInstPrinter::printVectorListTwoSpacedAllLanes | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1486 of file ARMInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCRegisterInfo::getSubReg(), llvm::MCInstPrinter::MRI, printRegName(), and Reg.