LLVM 20.0.0git
|
#include "Target/ARM/MCTargetDesc/ARMInstPrinter.h"
Static Public Member Functions | |
static const char * | getRegisterName (MCRegister Reg, unsigned AltIdx=ARM::NoRegAltName) |
Additional Inherited Members | |
Public Types inherited from llvm::MCInstPrinter | |
enum class | Markup { Immediate , Register , Target , Memory } |
Protected Member Functions inherited from llvm::MCInstPrinter | |
void | printAnnotation (raw_ostream &OS, StringRef Annot) |
Utility function for printing annotations. | |
const char * | matchAliasPatterns (const MCInst *MI, const MCSubtargetInfo *STI, const AliasMatchingData &M) |
Helper for matching MCInsts to alias patterns when printing instructions. | |
Protected Attributes inherited from llvm::MCInstPrinter | |
raw_ostream * | CommentStream = nullptr |
A stream that comments can be emitted to if desired. | |
const MCAsmInfo & | MAI |
const MCInstrInfo & | MII |
const MCRegisterInfo & | MRI |
const MCInstrAnalysis * | MIA = nullptr |
bool | UseMarkup = false |
True if we are printing marked up assembly. | |
bool | UseColor = false |
True if we are printing colored assembly. | |
bool | PrintAliases = true |
True if we prefer aliases (e.g. nop) to raw mnemonics. | |
bool | PrintImmHex = false |
True if we are printing immediates as hex. | |
HexStyle::Style | PrintHexStyle = HexStyle::C |
Which style to use for printing hexadecimal values. | |
bool | PrintBranchImmAsAddress = false |
If true, a branch immediate (e.g. | |
bool | SymbolizeOperands = false |
If true, symbolize branch target and memory reference operands. | |
Definition at line 21 of file ARMInstPrinter.h.
ARMInstPrinter::ARMInstPrinter | ( | const MCAsmInfo & | MAI, |
const MCInstrInfo & | MII, | ||
const MCRegisterInfo & | MRI | ||
) |
Definition at line 68 of file ARMInstPrinter.cpp.
Customize the printer according to a command line option.
Reimplemented from llvm::MCInstPrinter.
Definition at line 72 of file ARMInstPrinter.cpp.
|
overridevirtual |
Returns a pair containing the mnemonic for MI
and the number of bits left for further processing by printInstruction (generated by tablegen).
Implements llvm::MCInstPrinter.
|
static |
void ARMInstPrinter::printAddrMode2OffsetOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 542 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::MCOperand::getReg(), llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), MI, printRegImmShift(), and printRegName().
void ARMInstPrinter::printAddrMode2Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 523 of file ARMInstPrinter.cpp.
References assert(), llvm::ARM_AM::getAM2IdxMode(), llvm::MCOperand::getImm(), llvm::ARMII::IndexModePost, llvm::MCOperand::isReg(), MI, printAM2PreOrOffsetIndexOp(), and printOperand().
void ARMInstPrinter::printAddrMode3OffsetOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 613 of file ARMInstPrinter.cpp.
References llvm::ARM_AM::getAddrOpcStr(), llvm::ARM_AM::getAM3Offset(), llvm::ARM_AM::getAM3Op(), llvm::MCOperand::getImm(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), MI, and printRegName().
void ARMInstPrinter::printAddrMode3Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 598 of file ARMInstPrinter.cpp.
References assert(), llvm::ARM_AM::getAM3IdxMode(), llvm::ARMII::IndexModePost, llvm::MCOperand::isReg(), MI, printAM3PreOrOffsetIndexOp(), and printOperand().
void ARMInstPrinter::printAddrMode5FP16Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 714 of file ARMInstPrinter.cpp.
References llvm::ARM_AM::getAddrOpcStr(), llvm::ARM_AM::getAM5FP16Offset(), llvm::ARM_AM::getAM5FP16Op(), llvm::MCOperand::getImm(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::Immediate, llvm::MCOperand::isReg(), llvm::MCInstPrinter::markup(), llvm::MCInstPrinter::Memory, MI, printOperand(), printRegName(), and llvm::ARM_AM::sub.
void ARMInstPrinter::printAddrMode5Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 688 of file ARMInstPrinter.cpp.
References llvm::ARM_AM::getAddrOpcStr(), llvm::ARM_AM::getAM5Offset(), llvm::ARM_AM::getAM5Op(), llvm::MCOperand::getImm(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::Immediate, llvm::MCOperand::isReg(), llvm::MCInstPrinter::markup(), llvm::MCInstPrinter::Memory, MI, printOperand(), printRegName(), and llvm::ARM_AM::sub.
void ARMInstPrinter::printAddrMode6OffsetOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 765 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getReg(), MI, and printRegName().
void ARMInstPrinter::printAddrMode6Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 740 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::markup(), llvm::MCInstPrinter::Memory, MI, and printRegName().
void ARMInstPrinter::printAddrMode7Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 755 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getReg(), llvm::MCInstPrinter::markup(), llvm::MCInstPrinter::Memory, MI, and printRegName().
void ARMInstPrinter::printAddrModeImm12Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1221 of file ARMInstPrinter.cpp.
References llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getImm(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::Immediate, llvm::MCOperand::isReg(), llvm::MCInstPrinter::markup(), llvm::MCInstPrinter::Memory, MI, printOperand(), and printRegName().
void ARMInstPrinter::printAddrModeTBB | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 494 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getReg(), llvm::MCInstPrinter::markup(), llvm::MCInstPrinter::Memory, MI, and printRegName().
void ARMInstPrinter::printAddrModeTBH | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 508 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getReg(), llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), llvm::MCInstPrinter::Memory, MI, and printRegName().
|
inline |
Definition at line 116 of file ARMInstPrinter.h.
References MI.
void ARMInstPrinter::printAdrLabelOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1080 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInstPrinter::Immediate, llvm::MCOperand::isExpr(), llvm::MCInstPrinter::MAI, llvm::MCInstPrinter::markup(), MI, 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 463 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::MCOperand::getReg(), llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), llvm::MCInstPrinter::Memory, MI, printRegImmShift(), and printRegName().
Referenced by printAddrMode2Operand().
void ARMInstPrinter::printAM3PreOrOffsetIndexOp | ( | const MCInst * | MI, |
unsigned | Op, | ||
raw_ostream & | O, | ||
bool | AlwaysPrintImm0 | ||
) |
Definition at line 568 of file ARMInstPrinter.cpp.
References llvm::ARM_AM::getAddrOpcStr(), llvm::ARM_AM::getAM3Offset(), llvm::ARM_AM::getAM3Op(), llvm::MCOperand::getImm(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), llvm::MCInstPrinter::Memory, MI, 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 990 of file ARMInstPrinter.cpp.
void ARMInstPrinter::printBitfieldInvMaskImmOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 778 of file ARMInstPrinter.cpp.
References assert(), llvm::bit_width(), llvm::countr_zero(), llvm::MCInstPrinter::Immediate, llvm::MCOperand::isImm(), llvm::MCInstPrinter::markup(), and MI.
void ARMInstPrinter::printCImmediate | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1062 of file ARMInstPrinter.cpp.
References MI.
void ARMInstPrinter::printComplexRotationOp | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1698 of file ARMInstPrinter.cpp.
References MI.
void ARMInstPrinter::printCoprocOptionImm | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1068 of file ARMInstPrinter.cpp.
References MI.
void ARMInstPrinter::printCPSIFlag | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 896 of file ARMInstPrinter.cpp.
References llvm::ARM_PROC::IFlagsToString(), and MI.
void ARMInstPrinter::printCPSIMod | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 890 of file ARMInstPrinter.cpp.
References llvm::ARM_PROC::IModToString(), and MI.
|
virtual |
void ARMInstPrinter::printFBits16 | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1466 of file ARMInstPrinter.cpp.
References llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), and MI.
void ARMInstPrinter::printFBits32 | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1471 of file ARMInstPrinter.cpp.
References llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), and MI.
void ARMInstPrinter::printFPImmOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1387 of file ARMInstPrinter.cpp.
References llvm::ARM_AM::getFPImmFloat(), llvm::MCOperand::getImm(), llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), and MI.
void ARMInstPrinter::printGPRPairOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 871 of file ARMInstPrinter.cpp.
References llvm::MCRegisterInfo::getSubReg(), MI, llvm::MCInstPrinter::MRI, and printRegName().
void ARMInstPrinter::printImmPlusOneOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1406 of file ARMInstPrinter.cpp.
References llvm::MCInstPrinter::formatImm(), llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), and MI.
|
overridevirtual |
Print the specified MCInst to the specified raw_ostream.
Address
the address of current instruction on most targets, used to print a PC relative immediate as the target address. On targets where a PC relative immediate is relative to the next instruction and the length of a MCInst is difficult to measure (e.g. x86), this is the address of the next instruction. If Address is 0, the immediate will be printed.
Implements llvm::MCInstPrinter.
Definition at line 88 of file ARMInstPrinter.cpp.
References llvm::MCInst::addOperand(), llvm::Address, assert(), llvm::MCRegisterClass::contains(), llvm::MCOperand::createReg(), llvm::MCOperand::getImm(), llvm::MCRegisterInfo::getMatchingSuperReg(), llvm::MCOperand::getReg(), llvm::MCRegisterInfo::getRegClass(), llvm::ARM_AM::getShiftOpcStr(), llvm::ARM_AM::getSORegOffset(), llvm::ARM_AM::getSORegShOp(), llvm::MCInstPrinter::Immediate, isStore(), llvm::MCInstPrinter::markup(), MI, llvm::MCInstPrinter::MRI, printAliasInstr(), llvm::MCInstPrinter::printAnnotation(), printInstruction(), printPredicateOperand(), printRegisterList(), printRegName(), printSBitModifierOperand(), llvm::ARM_AM::rrx, llvm::MCInst::setOpcode(), and translateShiftImm().
void llvm::ARMInstPrinter::printInstruction | ( | const MCInst * | MI, |
uint64_t | Address, | ||
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 799 of file ARMInstPrinter.cpp.
References llvm::ARM_ISB::InstSyncBOptToString(), and MI.
void ARMInstPrinter::printLdStmModeOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 679 of file ARMInstPrinter.cpp.
References llvm::ARM_AM::getAM4SubMode(), llvm::ARM_AM::getAMSubModeStr(), and MI.
void ARMInstPrinter::printMandatoryInvertedPredicateOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1032 of file ARMInstPrinter.cpp.
References llvm::ARMCondCodeToString(), CC, llvm::ARMCC::getOppositeCondition(), and MI.
void ARMInstPrinter::printMandatoryPredicateOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1024 of file ARMInstPrinter.cpp.
References llvm::ARMCondCodeToString(), CC, and MI.
Referenced by printMandatoryRestrictedPredicateOperand().
void ARMInstPrinter::printMandatoryRestrictedPredicateOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1015 of file ARMInstPrinter.cpp.
References llvm::ARMCC::HS, MI, and printMandatoryPredicateOperand().
void ARMInstPrinter::printMemBOption | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 792 of file ARMInstPrinter.cpp.
References llvm::MCSubtargetInfo::hasFeature(), llvm::ARM_MB::MemBOptToString(), and MI.
void ARMInstPrinter::printModImmOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1424 of file ARMInstPrinter.cpp.
References llvm::ARM_AM::getSOImmVal(), llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), MI, and printOperand().
void ARMInstPrinter::printMSRMaskOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
void ARMInstPrinter::printMveAddrModeRQOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 661 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getReg(), llvm::MCInstPrinter::markup(), llvm::MCInstPrinter::Memory, MI, printRegImmShift(), printRegName(), and llvm::ARM_AM::uxtw.
void ARMInstPrinter::printMveSaturateOp | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1729 of file ARMInstPrinter.cpp.
void ARMInstPrinter::printMVEVectorList | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1684 of file ARMInstPrinter.cpp.
References llvm::MCRegisterInfo::getSubReg(), MI, llvm::MCInstPrinter::MRI, and printRegName().
void ARMInstPrinter::printNoHashImmediate | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1050 of file ARMInstPrinter.cpp.
References MI.
void ARMInstPrinter::printOperand | ( | const MCInst * | MI, |
uint64_t | Address, | ||
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 381 of file ARMInstPrinter.cpp.
References llvm::Address, llvm::MCInstPrinter::CommentStream, llvm::ARM_MC::evaluateBranchTarget(), llvm::MCInstPrinter::formatHex(), llvm::MCInstPrinter::formatImm(), llvm::MCInstrInfo::get(), llvm::MCInstPrinter::getUseMarkup(), MI, llvm::MCInstPrinter::MII, llvm::MCInstPrinter::PrintBranchImmAsAddress, and printOperand().
void ARMInstPrinter::printOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 341 of file ARMInstPrinter.cpp.
References assert(), llvm::MCExpr::Binary, llvm::MCExpr::Constant, llvm::MCInstPrinter::formatImm(), llvm::MCExpr::getKind(), llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::MAI, llvm::MCInstPrinter::markup(), MI, llvm::MCExpr::print(), and printRegName().
Referenced by printAddrMode2Operand(), printAddrMode3Operand(), printAddrMode5FP16Operand(), printAddrMode5Operand(), printAddrModeImm12Operand(), printModImmOperand(), printOperand(), printT2AddrModeImm8s4Operand(), printThumbAddrModeImm5SOperand(), and printThumbAddrModeRROperand().
void ARMInstPrinter::printPCLabel | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1074 of file ARMInstPrinter.cpp.
References llvm_unreachable.
void ARMInstPrinter::printPImmediate | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1056 of file ARMInstPrinter.cpp.
References MI.
void ARMInstPrinter::printPKHASRShiftImm | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 839 of file ARMInstPrinter.cpp.
References assert(), llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), and MI.
void ARMInstPrinter::printPKHLSLShiftImm | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 828 of file ARMInstPrinter.cpp.
References assert(), llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), and MI.
void ARMInstPrinter::printPostIdxImm8Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 632 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), and MI.
void ARMInstPrinter::printPostIdxImm8s4Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 651 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), and MI.
void ARMInstPrinter::printPostIdxRegOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 641 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCOperand::getReg(), MI, and printRegName().
void ARMInstPrinter::printPredicateOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1004 of file ARMInstPrinter.cpp.
References llvm::ARMCC::AL, llvm::ARMCondCodeToString(), CC, and MI.
Referenced by printInst().
void ARMInstPrinter::printRegisterList | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 851 of file ARMInstPrinter.cpp.
References assert(), llvm::drop_begin(), llvm::MCRegisterInfo::getEncodingValue(), llvm::is_sorted(), LHS, MI, llvm::MCInstPrinter::MRI, printRegName(), and RHS.
Referenced by printInst().
|
overridevirtual |
Print the assembler register name.
Reimplemented from llvm::MCInstPrinter.
Definition at line 84 of file ARMInstPrinter.cpp.
References getRegisterName(), llvm::MCInstPrinter::markup(), OS, and llvm::MCInstPrinter::Register.
Referenced by printAddrMode2OffsetOperand(), printAddrMode3OffsetOperand(), printAddrMode5FP16Operand(), printAddrMode5Operand(), printAddrMode6OffsetOperand(), printAddrMode6Operand(), printAddrMode7Operand(), printAddrModeImm12Operand(), printAddrModeTBB(), printAddrModeTBH(), printAM2PreOrOffsetIndexOp(), printAM3PreOrOffsetIndexOp(), printGPRPairOperand(), printInst(), printMveAddrModeRQOperand(), printMVEVectorList(), 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 1413 of file ARMInstPrinter.cpp.
References assert(), llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), and MI.
void ARMInstPrinter::printSBitModifierOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1040 of file ARMInstPrinter.cpp.
Referenced by printInst().
void ARMInstPrinter::printSetendOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 880 of file ARMInstPrinter.cpp.
References MI.
void ARMInstPrinter::printShiftImmOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 813 of file ARMInstPrinter.cpp.
References llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), and MI.
void ARMInstPrinter::printSORegImmOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 446 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCOperand::getReg(), llvm::ARM_AM::getSORegOffset(), llvm::ARM_AM::getSORegShOp(), MI, printRegImmShift(), and printRegName().
void ARMInstPrinter::printSORegRegOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 426 of file ARMInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCOperand::getReg(), llvm::ARM_AM::getShiftOpcStr(), llvm::ARM_AM::getSORegOffset(), llvm::ARM_AM::getSORegShOp(), MI, printRegName(), and llvm::ARM_AM::rrx.
void ARMInstPrinter::printT2AddrModeImm0_1020s4Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1313 of file ARMInstPrinter.cpp.
References llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getImm(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), llvm::MCInstPrinter::Memory, MI, and printRegName().
void ARMInstPrinter::printT2AddrModeImm8OffsetOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1329 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), and MI.
void ARMInstPrinter::printT2AddrModeImm8Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1252 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), llvm::MCInstPrinter::Memory, MI, and printRegName().
void ARMInstPrinter::printT2AddrModeImm8s4OffsetOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1344 of file ARMInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), and MI.
void ARMInstPrinter::printT2AddrModeImm8s4Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1279 of file ARMInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::Immediate, llvm::MCOperand::isReg(), llvm::MCInstPrinter::markup(), llvm::MCInstPrinter::Memory, MI, printOperand(), and printRegName().
void ARMInstPrinter::printT2AddrModeSoRegOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1362 of file ARMInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), llvm::MCInstPrinter::Memory, MI, and printRegName().
void ARMInstPrinter::printT2SOOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1205 of file ARMInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCOperand::getReg(), llvm::ARM_AM::getSORegOffset(), llvm::ARM_AM::getSORegShOp(), llvm::MCOperand::isImm(), MI, printRegImmShift(), and printRegName().
void ARMInstPrinter::printThumbAddrModeImm5S1Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1174 of file ARMInstPrinter.cpp.
References MI, and printThumbAddrModeImm5SOperand().
void ARMInstPrinter::printThumbAddrModeImm5S2Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1181 of file ARMInstPrinter.cpp.
References MI, and printThumbAddrModeImm5SOperand().
void ARMInstPrinter::printThumbAddrModeImm5S4Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1188 of file ARMInstPrinter.cpp.
References MI, and printThumbAddrModeImm5SOperand().
void ARMInstPrinter::printThumbAddrModeImm5SOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O, | ||
unsigned | Scale | ||
) |
Definition at line 1151 of file ARMInstPrinter.cpp.
References llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getImm(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::Immediate, llvm::MCOperand::isReg(), llvm::MCInstPrinter::markup(), llvm::MCInstPrinter::Memory, MI, 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 1130 of file ARMInstPrinter.cpp.
References llvm::MCOperand::getReg(), llvm::MCOperand::isReg(), llvm::MCInstPrinter::markup(), llvm::MCInstPrinter::Memory, MI, printOperand(), and printRegName().
void ARMInstPrinter::printThumbAddrModeSPOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1195 of file ARMInstPrinter.cpp.
References MI, and printThumbAddrModeImm5SOperand().
void ARMInstPrinter::printThumbITMask | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1115 of file ARMInstPrinter.cpp.
References assert(), llvm::countr_zero(), and MI.
|
inline |
Definition at line 218 of file ARMInstPrinter.h.
References MI, and printThumbLdrLabelOperand().
void ARMInstPrinter::printThumbLdrLabelOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 395 of file ARMInstPrinter.cpp.
References llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInstPrinter::Immediate, llvm::MCOperand::isExpr(), llvm::MCInstPrinter::MAI, llvm::MCInstPrinter::markup(), llvm::MCInstPrinter::Memory, MI, and llvm::MCExpr::print().
Referenced by printThumbLdrLabelOperand().
void ARMInstPrinter::printThumbS4ImmOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1101 of file ARMInstPrinter.cpp.
References llvm::MCInstPrinter::formatImm(), llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), and MI.
void ARMInstPrinter::printThumbSRImm | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1108 of file ARMInstPrinter.cpp.
References llvm::MCInstPrinter::formatImm(), llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), and MI.
void ARMInstPrinter::printTraceSyncBOption | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 806 of file ARMInstPrinter.cpp.
References MI, and llvm::ARM_TSB::TraceSyncBOptToString().
void ARMInstPrinter::printVectorIndex | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1476 of file ARMInstPrinter.cpp.
References MI.
void ARMInstPrinter::printVectorListFour | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1531 of file ARMInstPrinter.cpp.
References MI, and printRegName().
void ARMInstPrinter::printVectorListFourAllLanes | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1587 of file ARMInstPrinter.cpp.
References MI, and printRegName().
void ARMInstPrinter::printVectorListFourSpaced | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1666 of file ARMInstPrinter.cpp.
References MI, and printRegName().
void ARMInstPrinter::printVectorListFourSpacedAllLanes | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1633 of file ARMInstPrinter.cpp.
References MI, and printRegName().
void ARMInstPrinter::printVectorListOne | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1482 of file ARMInstPrinter.cpp.
References MI, and printRegName().
void ARMInstPrinter::printVectorListOneAllLanes | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1548 of file ARMInstPrinter.cpp.
References MI, and printRegName().
void ARMInstPrinter::printVectorListThree | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1516 of file ARMInstPrinter.cpp.
References MI, and printRegName().
void ARMInstPrinter::printVectorListThreeAllLanes | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1571 of file ARMInstPrinter.cpp.
References MI, and printRegName().
void ARMInstPrinter::printVectorListThreeSpaced | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1650 of file ARMInstPrinter.cpp.
References MI, and printRegName().
void ARMInstPrinter::printVectorListThreeSpacedAllLanes | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1618 of file ARMInstPrinter.cpp.
References MI, and printRegName().
void ARMInstPrinter::printVectorListTwo | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1490 of file ARMInstPrinter.cpp.
References llvm::MCRegisterInfo::getSubReg(), MI, llvm::MCInstPrinter::MRI, and printRegName().
void ARMInstPrinter::printVectorListTwoAllLanes | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1557 of file ARMInstPrinter.cpp.
References llvm::MCRegisterInfo::getSubReg(), MI, llvm::MCInstPrinter::MRI, and printRegName().
void ARMInstPrinter::printVectorListTwoSpaced | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1503 of file ARMInstPrinter.cpp.
References llvm::MCRegisterInfo::getSubReg(), MI, llvm::MCInstPrinter::MRI, and printRegName().
void ARMInstPrinter::printVectorListTwoSpacedAllLanes | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1605 of file ARMInstPrinter.cpp.
References llvm::MCRegisterInfo::getSubReg(), MI, llvm::MCInstPrinter::MRI, and printRegName().
void ARMInstPrinter::printVMOVModImmOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1394 of file ARMInstPrinter.cpp.
References llvm::ARM_AM::decodeVMOVModImm(), llvm::MCInstPrinter::Immediate, llvm::MCInstPrinter::markup(), and MI.
void ARMInstPrinter::printVPTMask | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1713 of file ARMInstPrinter.cpp.
References assert(), llvm::countr_zero(), and MI.
void ARMInstPrinter::printVPTPredicateOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 1705 of file ARMInstPrinter.cpp.
References llvm::ARMVPTPredToString(), CC, MI, and llvm::ARMVCC::None.