LLVM: llvm::MCInstPrinter Class Reference (original) (raw)

This is an instance of a target assembly language printer that converts an MCInst to valid target assembly syntax. More...

#include "[llvm/MC/MCInstPrinter.h](MCInstPrinter%5F8h%5Fsource.html)"

Public Types
enum class Markup { Immediate, Register, Target, Memory }
Public Member Functions
MCInstPrinter (const MCAsmInfo &mai, const MCInstrInfo &mii, const MCRegisterInfo &mri)
virtual ~MCInstPrinter ()
virtual bool applyTargetSpecificCLOption (StringRef Opt)
Customize the printer according to a command line option.
void setCommentStream (raw_ostream &OS)
Specify a stream to emit comments to.
virtual std::pair< const char *, uint64_t > getMnemonic (const MCInst &MI) const =0
Returns a pair containing the mnemonic for MI and the number of bits left for further processing by printInstruction (generated by tablegen).
virtual void printInst (const MCInst *MI, uint64_t Address, StringRef Annot, const MCSubtargetInfo &STI, raw_ostream &OS)=0
Print the specified MCInst to the specified raw_ostream.
StringRef getOpcodeName (unsigned Opcode) const
Return the name of the specified opcode enum (e.g.
virtual void printRegName (raw_ostream &OS, MCRegister Reg)
Print the assembler register name.
bool getUseMarkup () const
void setUseMarkup (bool Value)
bool getUseColor () const
void setUseColor (bool Value)
WithMarkup markup (raw_ostream &OS, Markup M)
bool getPrintImmHex () const
void setPrintImmHex (bool Value)
void setPrintHexStyle (HexStyle::Style Value)
void setPrintBranchImmAsAddress (bool Value)
void setSymbolizeOperands (bool Value)
void setMCInstrAnalysis (const MCInstrAnalysis *Value)
format_object< int64_t > formatImm (int64_t Value) const
Utility function to print immediates in decimal or hex.
format_object< int64_t > formatDec (int64_t Value) const
Utility functions to print decimal/hexadecimal values.
format_object< int64_t > formatHex (int64_t Value) const
format_object< uint64_t > formatHex (uint64_t Value) const
Protected Attributes
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.
SmallVector< raw_ostream::Colors, 4 > ColorStack {raw_ostream::Colors::RESET}

This is an instance of a target assembly language printer that converts an MCInst to valid target assembly syntax.

Definition at line 46 of file MCInstPrinter.h.

Markup

Enumerator
Immediate
Register
Target
Memory

Definition at line 95 of file MCInstPrinter.h.

Definition at line 90 of file MCInstPrinter.h.

References MAI, MII, and MRI.

Referenced by llvm::AArch64InstPrinter::AArch64InstPrinter(), llvm::AMDGPUInstPrinter::AMDGPUInstPrinter(), llvm::ARCInstPrinter::ARCInstPrinter(), llvm::ARMInstPrinter::ARMInstPrinter(), llvm::AVRInstPrinter::AVRInstPrinter(), llvm::BPFInstPrinter::BPFInstPrinter(), llvm::CSKYInstPrinter::CSKYInstPrinter(), llvm::HexagonInstPrinter::HexagonInstPrinter(), llvm::LanaiInstPrinter::LanaiInstPrinter(), llvm::LoongArchInstPrinter::LoongArchInstPrinter(), llvm::M68kInstPrinter::M68kInstPrinter(), llvm::MipsInstPrinter::MipsInstPrinter(), llvm::MSP430InstPrinter::MSP430InstPrinter(), llvm::NVPTXInstPrinter::NVPTXInstPrinter(), llvm::PPCInstPrinter::PPCInstPrinter(), llvm::R600InstPrinter::R600InstPrinter(), llvm::RISCVInstPrinter::RISCVInstPrinter(), llvm::SparcInstPrinter::SparcInstPrinter(), llvm::SystemZInstPrinterCommon::SystemZInstPrinterCommon(), llvm::VEInstPrinter::VEInstPrinter(), llvm::WebAssemblyInstPrinter::WebAssemblyInstPrinter(), llvm::MCInstPrinter::WithMarkup::WithMarkup(), llvm::XCoreInstPrinter::XCoreInstPrinter(), and llvm::XtensaInstPrinter::XtensaInstPrinter().

~MCInstPrinter()

MCInstPrinter::~MCInstPrinter ( ) virtualdefault

applyTargetSpecificCLOption()

virtual bool llvm::MCInstPrinter::applyTargetSpecificCLOption ( StringRef Opt) inlinevirtual

formatDec()

format_object< int64_t > MCInstPrinter::formatDec ( int64_t Value ) const

formatHex() [1/2]

format_object< int64_t > MCInstPrinter::formatHex ( int64_t Value ) const

Definition at line 190 of file MCInstPrinter.cpp.

References llvm::HexStyle::Asm, llvm::HexStyle::C, llvm::format(), llvm_unreachable, needsLeadingZero(), and PrintHexStyle.

Referenced by formatImm(), llvm::PPCInstPrinter::printAbsBranchOperand(), llvm::AArch64InstPrinter::printAdrAdrpLabel(), llvm::AArch64InstPrinter::printAlignedLabel(), llvm::PPCInstPrinter::printBranchOperand(), llvm::RISCVInstPrinter::printBranchOperand(), llvm::CSKYInstPrinter::printConstpool(), llvm::CSKYInstPrinter::printCSKYSymbolOperand(), llvm::SparcInstPrinter::printCTILabel(), llvm::AMDGPUInstPrinter::printDepCtr(), llvm::NVPTXInstPrinter::printHexu32imm(), llvm::LanaiInstPrinter::printHi16AndImmOperand(), llvm::LanaiInstPrinter::printHi16ImmOperand(), llvm::AArch64InstPrinter::printImmSVE(), llvm::AArch64InstPrinter::printInst(), llvm::LanaiInstPrinter::printLo16AndImmOperand(), llvm::LanaiInstPrinter::printMemImmOperand(), llvm::ARMInstPrinter::printOperand(), llvm::CSKYInstPrinter::printOperand(), llvm::LanaiInstPrinter::printOperand(), llvm::X86InstPrinterCommon::printPCRelImm(), llvm::SystemZInstPrinterCommon::printPCRelOperand(), and llvm::AArch64InstPrinter::printSVELogicalImm().

formatHex() [2/2]

formatImm()

format_object< int64_t > llvm::MCInstPrinter::formatImm ( int64_t Value) const inline

Utility function to print immediates in decimal or hex.

Definition at line 176 of file MCInstPrinter.h.

References formatDec(), formatHex(), and PrintImmHex.

Referenced by llvm::ARMInstPrinter::printAddrModeImm12Operand(), llvm::AArch64InstPrinter::printAddSubImm(), llvm::AArch64InstPrinter::printAlignedLabel(), llvm::AArch64InstPrinter::printAMIndexedWB(), llvm::RISCVInstPrinter::printBranchOperand(), llvm::BPFInstPrinter::printBrTargetOperand(), llvm::AArch64InstPrinter::printBTIHintOp(), llvm::AArch64InstPrinter::printCMHPriorityHintOp(), llvm::RISCVInstPrinter::printCSRSystemRegister(), llvm::AArch64InstPrinter::printImm(), llvm::BPFInstPrinter::printImm64Operand(), llvm::AArch64InstPrinter::printImm8OptLsl(), llvm::ARMInstPrinter::printImmPlusOneOperand(), llvm::AArch64InstPrinter::printImmRangeScale(), llvm::AArch64InstPrinter::printImmScale(), llvm::AArch64InstPrinter::printInst(), llvm::SPIRVInstPrinter::printInst(), llvm::X86ATTInstPrinter::printMemOffset(), llvm::X86IntelInstPrinter::printMemOffset(), llvm::BPFInstPrinter::printMemOperand(), llvm::X86ATTInstPrinter::printMemReference(), llvm::X86IntelInstPrinter::printMemReference(), llvm::ARMInstPrinter::printOperand(), llvm::ARMInstPrinter::printOperand(), llvm::BPFInstPrinter::printOperand(), llvm::HexagonInstPrinter::printOperand(), llvm::NVPTXInstPrinter::printOperand(), llvm::RISCVInstPrinter::printOperand(), llvm::SparcInstPrinter::printOperand(), llvm::SPIRVInstPrinter::printOperand(), llvm::X86ATTInstPrinter::printOperand(), llvm::X86IntelInstPrinter::printOperand(), llvm::X86InstPrinterCommon::printPCRelImm(), llvm::SystemZInstPrinterCommon::printPCRelOperand(), llvm::AArch64InstPrinter::printPHintOp(), llvm::AArch64InstPrinter::printPrefetchOp(), llvm::AArch64InstPrinter::printPSBHintOp(), llvm::AArch64InstPrinter::printRangePrefetchAlias(), llvm::AArch64InstPrinter::printRPRFMOperand(), llvm::AArch64InstPrinter::printSImm(), llvm::AArch64InstPrinter::printSVEPattern(), llvm::AArch64InstPrinter::printSystemPStateField(), llvm::ARMInstPrinter::printT2AddrModeImm0_1020s4Operand(), llvm::ARMInstPrinter::printThumbAddrModeImm5SOperand(), llvm::ARMInstPrinter::printThumbLdrLabelOperand(), llvm::ARMInstPrinter::printThumbS4ImmOperand(), llvm::ARMInstPrinter::printThumbSRImm(), llvm::AArch64InstPrinter::printTIndexHintOp(), llvm::X86ATTInstPrinter::printU8Imm(), llvm::X86IntelInstPrinter::printU8Imm(), llvm::AArch64InstPrinter::printUImm12Offset(), and llvm::RISCVInstPrinter::printVTypeI().

getMnemonic()

Returns a pair containing the mnemonic for MI and the number of bits left for further processing by printInstruction (generated by tablegen).

Implemented in llvm::AArch64AppleInstPrinter, llvm::AArch64InstPrinter, llvm::AMDGPUInstPrinter, llvm::ARCInstPrinter, llvm::ARMInstPrinter, llvm::BPFInstPrinter, llvm::CSKYInstPrinter, llvm::HexagonInstPrinter, llvm::LanaiInstPrinter, llvm::LoongArchInstPrinter, llvm::M68kInstPrinter, llvm::MipsInstPrinter, llvm::MSP430InstPrinter, llvm::NVPTXInstPrinter, llvm::PPCInstPrinter, llvm::R600InstPrinter, llvm::RISCVInstPrinter, llvm::SparcInstPrinter, llvm::SPIRVInstPrinter, llvm::SystemZGNUInstPrinter, llvm::SystemZHLASMInstPrinter, llvm::VEInstPrinter, llvm::WebAssemblyInstPrinter, llvm::X86ATTInstPrinter, llvm::X86IntelInstPrinter, llvm::XCoreInstPrinter, and llvm::XtensaInstPrinter.

References MI.

getOpcodeName()

Return the name of the specified opcode enum (e.g.

getOpcodeName - Return the name of the specified opcode enum (e.g.

"MOV32ri") or empty if we can't resolve it.

Definition at line 42 of file MCInstPrinter.cpp.

References MII.

getPrintImmHex()

bool llvm::MCInstPrinter::getPrintImmHex ( ) const inline

getUseColor()

bool llvm::MCInstPrinter::getUseColor ( ) const inline

getUseMarkup()

bool llvm::MCInstPrinter::getUseMarkup ( ) const inline

markup()

Definition at line 227 of file MCInstPrinter.cpp.

References getUseColor(), and getUseMarkup().

Referenced by llvm::ARMInstPrinter::printAddrMode2OffsetOperand(), llvm::ARMInstPrinter::printAddrMode3OffsetOperand(), llvm::ARMInstPrinter::printAddrMode5FP16Operand(), llvm::ARMInstPrinter::printAddrMode5Operand(), llvm::ARMInstPrinter::printAddrMode6Operand(), llvm::ARMInstPrinter::printAddrMode7Operand(), llvm::ARMInstPrinter::printAddrModeImm12Operand(), llvm::ARMInstPrinter::printAddrModeTBB(), llvm::ARMInstPrinter::printAddrModeTBH(), llvm::AArch64InstPrinter::printAddSubImm(), llvm::AArch64InstPrinter::printAdrAdrpLabel(), llvm::ARMInstPrinter::printAdrLabelOperand(), llvm::AArch64InstPrinter::printAlignedLabel(), llvm::ARMInstPrinter::printAM2PreOrOffsetIndexOp(), llvm::ARMInstPrinter::printAM3PreOrOffsetIndexOp(), llvm::AArch64InstPrinter::printAMIndexedWB(), llvm::AArch64InstPrinter::printArithExtend(), llvm::AArch64InstPrinter::printBarriernXSOption(), llvm::AArch64InstPrinter::printBarrierOption(), llvm::ARMInstPrinter::printBitfieldInvMaskImmOperand(), llvm::RISCVInstPrinter::printBranchOperand(), llvm::AArch64InstPrinter::printBTIHintOp(), llvm::AArch64InstPrinter::printCMHPriorityHintOp(), llvm::AArch64InstPrinter::printComplexRotationOp(), llvm::RISCVInstPrinter::printCSRSystemRegister(), llvm::X86ATTInstPrinter::printDstIdx(), llvm::X86IntelInstPrinter::printDstIdx(), llvm::AArch64InstPrinter::printExactFPImm(), llvm::ARMInstPrinter::printFBits16(), llvm::ARMInstPrinter::printFBits32(), llvm::AArch64InstPrinter::printFPImmOperand(), llvm::ARMInstPrinter::printFPImmOperand(), llvm::RISCVInstPrinter::printFPImmOperand(), llvm::AArch64InstPrinter::printImm(), llvm::AArch64InstPrinter::printImm8OptLsl(), llvm::AArch64InstPrinter::printImmHex(), llvm::ARMInstPrinter::printImmPlusOneOperand(), llvm::AArch64InstPrinter::printImmScale(), llvm::AArch64InstPrinter::printImmSVE(), llvm::AArch64AppleInstPrinter::printInst(), llvm::AArch64InstPrinter::printInst(), llvm::ARMInstPrinter::printInst(), llvm::AArch64InstPrinter::printLogicalImm(), llvm::AArch64InstPrinter::printMemExtendImpl(), llvm::X86ATTInstPrinter::printMemOffset(), llvm::X86IntelInstPrinter::printMemOffset(), llvm::X86ATTInstPrinter::printMemReference(), llvm::X86IntelInstPrinter::printMemReference(), llvm::ARMInstPrinter::printModImmOperand(), llvm::ARMInstPrinter::printMveAddrModeRQOperand(), llvm::ARMInstPrinter::printOperand(), llvm::NVPTXInstPrinter::printOperand(), llvm::RISCVInstPrinter::printOperand(), llvm::SparcInstPrinter::printOperand(), llvm::SystemZInstPrinterCommon::printOperand(), llvm::X86ATTInstPrinter::printOperand(), llvm::X86IntelInstPrinter::printOperand(), llvm::X86InstPrinterCommon::printPCRelImm(), llvm::SystemZInstPrinterCommon::printPCRelOperand(), llvm::AArch64InstPrinter::printPHintOp(), llvm::ARMInstPrinter::printPKHASRShiftImm(), llvm::ARMInstPrinter::printPKHLSLShiftImm(), llvm::ARMInstPrinter::printPostIdxImm8Operand(), llvm::ARMInstPrinter::printPostIdxImm8s4Operand(), llvm::AArch64InstPrinter::printPostIncOperand(), llvm::AArch64InstPrinter::printPrefetchOp(), llvm::AArch64InstPrinter::printPSBHintOp(), llvm::AArch64InstPrinter::printRegName(), llvm::AArch64InstPrinter::printRegName(), llvm::ARMInstPrinter::printRegName(), llvm::MipsInstPrinter::printRegName(), llvm::RISCVInstPrinter::printRegName(), llvm::X86ATTInstPrinter::printRegName(), llvm::X86IntelInstPrinter::printRegName(), llvm::ARMInstPrinter::printRotImmOperand(), llvm::AArch64InstPrinter::printShifter(), llvm::ARMInstPrinter::printShiftImmOperand(), llvm::AArch64InstPrinter::printSIMDType10Operand(), llvm::AArch64InstPrinter::printSImm(), llvm::SystemZInstPrinterCommon::printSImmOperand(), llvm::X86ATTInstPrinter::printSrcIdx(), llvm::X86IntelInstPrinter::printSrcIdx(), llvm::RISCVInstPrinter::printStackAdj(), llvm::X86ATTInstPrinter::printSTiRegOperand(), llvm::AArch64InstPrinter::printSVELogicalImm(), llvm::AArch64InstPrinter::printSVEPattern(), llvm::ARMInstPrinter::printT2AddrModeImm0_1020s4Operand(), llvm::ARMInstPrinter::printT2AddrModeImm8OffsetOperand(), llvm::ARMInstPrinter::printT2AddrModeImm8Operand(), llvm::ARMInstPrinter::printT2AddrModeImm8s4OffsetOperand(), llvm::ARMInstPrinter::printT2AddrModeImm8s4Operand(), llvm::ARMInstPrinter::printT2AddrModeSoRegOperand(), llvm::ARMInstPrinter::printThumbAddrModeImm5SOperand(), llvm::ARMInstPrinter::printThumbAddrModeRROperand(), llvm::ARMInstPrinter::printThumbLdrLabelOperand(), llvm::ARMInstPrinter::printThumbS4ImmOperand(), llvm::ARMInstPrinter::printThumbSRImm(), llvm::AArch64InstPrinter::printTIndexHintOp(), llvm::X86ATTInstPrinter::printU8Imm(), llvm::X86IntelInstPrinter::printU8Imm(), llvm::AArch64InstPrinter::printUImm12Offset(), llvm::SystemZInstPrinterCommon::printUImmOperand(), and llvm::ARMInstPrinter::printVMOVModImmOperand().

matchAliasPatterns()

printAnnotation()

Utility function for printing annotations.

Definition at line 50 of file MCInstPrinter.cpp.

References CommentStream, llvm::StringRef::empty(), and MAI.

Referenced by llvm::AArch64AppleInstPrinter::printInst(), llvm::AArch64InstPrinter::printInst(), llvm::AMDGPUInstPrinter::printInst(), llvm::ARCInstPrinter::printInst(), llvm::ARMInstPrinter::printInst(), llvm::AVRInstPrinter::printInst(), llvm::BPFInstPrinter::printInst(), llvm::CSKYInstPrinter::printInst(), llvm::LanaiInstPrinter::printInst(), llvm::LoongArchInstPrinter::printInst(), llvm::M68kInstPrinter::printInst(), llvm::MipsInstPrinter::printInst(), llvm::MSP430InstPrinter::printInst(), llvm::NVPTXInstPrinter::printInst(), llvm::PPCInstPrinter::printInst(), llvm::R600InstPrinter::printInst(), llvm::RISCVInstPrinter::printInst(), llvm::SparcInstPrinter::printInst(), llvm::SPIRVInstPrinter::printInst(), llvm::SystemZGNUInstPrinter::printInst(), llvm::SystemZHLASMInstPrinter::printInst(), llvm::VEInstPrinter::printInst(), llvm::WebAssemblyInstPrinter::printInst(), llvm::X86ATTInstPrinter::printInst(), llvm::X86IntelInstPrinter::printInst(), llvm::XCoreInstPrinter::printInst(), llvm::XtensaInstPrinter::printInst(), and llvm::AArch64InstPrinter::printRangePrefetchAlias().

printInst()

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.

Implemented in llvm::AArch64AppleInstPrinter, llvm::AArch64InstPrinter, llvm::AMDGPUInstPrinter, llvm::ARCInstPrinter, llvm::ARMInstPrinter, llvm::AVRInstPrinter, llvm::BPFInstPrinter, llvm::CSKYInstPrinter, llvm::HexagonInstPrinter, llvm::LanaiInstPrinter, llvm::LoongArchInstPrinter, llvm::M68kInstPrinter, llvm::MipsInstPrinter, llvm::MSP430InstPrinter, llvm::NVPTXInstPrinter, llvm::PPCInstPrinter, llvm::R600InstPrinter, llvm::RISCVInstPrinter, llvm::SparcInstPrinter, llvm::SPIRVInstPrinter, llvm::SystemZGNUInstPrinter, llvm::SystemZHLASMInstPrinter, llvm::VEInstPrinter, llvm::WebAssemblyInstPrinter, llvm::X86ATTInstPrinter, llvm::X86IntelInstPrinter, llvm::XCoreInstPrinter, and llvm::XtensaInstPrinter.

References llvm::Address, MI, printRegName(), and Reg.

Referenced by LLVMDisasmInstruction(), and llvm::MCTargetStreamer::prettyPrintAsm().

printRegName()

Print the assembler register name.

Reimplemented in llvm::AArch64InstPrinter, llvm::AMDGPUInstPrinter, llvm::ARCInstPrinter, llvm::ARMInstPrinter, llvm::CSKYInstPrinter, llvm::HexagonInstPrinter, llvm::LanaiInstPrinter, llvm::LoongArchInstPrinter, llvm::M68kInstPrinter, llvm::MipsInstPrinter, llvm::MSP430InstPrinter, llvm::NVPTXInstPrinter, llvm::PPCInstPrinter, llvm::RISCVInstPrinter, llvm::SparcInstPrinter, llvm::SystemZInstPrinterCommon, llvm::VEInstPrinter, llvm::WebAssemblyInstPrinter, llvm::X86ATTInstPrinter, llvm::X86IntelInstPrinter, llvm::XCoreInstPrinter, and llvm::XtensaInstPrinter.

Definition at line 46 of file MCInstPrinter.cpp.

References llvm_unreachable.

Referenced by printInst(), and llvm::X86InstPrinterCommon::printVKPair().

setCommentStream()

void llvm::MCInstPrinter::setCommentStream ( raw_ostream & OS) inline

setMCInstrAnalysis()

setPrintBranchImmAsAddress()

void llvm::MCInstPrinter::setPrintBranchImmAsAddress ( bool Value) inline

setPrintHexStyle()

setPrintImmHex()

void llvm::MCInstPrinter::setPrintImmHex ( bool Value) inline

setSymbolizeOperands()

void llvm::MCInstPrinter::setSymbolizeOperands ( bool Value) inline

setUseColor()

void llvm::MCInstPrinter::setUseColor ( bool Value) inline

setUseMarkup()

void llvm::MCInstPrinter::setUseMarkup ( bool Value) inline

ColorStack

CommentStream

raw_ostream* llvm::MCInstPrinter::CommentStream = nullptr protected

MAI

Definition at line 52 of file MCInstPrinter.h.

Referenced by llvm::AArch64AppleInstPrinter::AArch64AppleInstPrinter(), llvm::AArch64InstPrinter::AArch64InstPrinter(), llvm::AMDGPUInstPrinter::AMDGPUInstPrinter(), llvm::ARCInstPrinter::ARCInstPrinter(), llvm::ARMInstPrinter::ARMInstPrinter(), llvm::AVRInstPrinter::AVRInstPrinter(), llvm::BPFInstPrinter::BPFInstPrinter(), llvm::CSKYInstPrinter::CSKYInstPrinter(), llvm::HexagonInstPrinter::getMAI(), llvm::SystemZGNUInstPrinter::getRegisterName(), llvm::SystemZHLASMInstPrinter::getRegisterName(), llvm::HexagonInstPrinter::HexagonInstPrinter(), llvm::LanaiInstPrinter::LanaiInstPrinter(), llvm::LoongArchInstPrinter::LoongArchInstPrinter(), llvm::M68kInstPrinter::M68kInstPrinter(), MCInstPrinter(), llvm::MipsInstPrinter::MipsInstPrinter(), llvm::MSP430InstPrinter::MSP430InstPrinter(), llvm::NVPTXInstPrinter::NVPTXInstPrinter(), llvm::PPCInstPrinter::PPCInstPrinter(), llvm::SystemZInstPrinterCommon::printAddress(), llvm::AArch64InstPrinter::printAddSubImm(), llvm::AArch64InstPrinter::printAdrAdrpLabel(), llvm::ARMInstPrinter::printAdrLabelOperand(), llvm::AArch64InstPrinter::printAlignedLabel(), llvm::AArch64InstPrinter::printAMIndexedWB(), printAnnotation(), llvm::SystemZInstPrinterCommon::printBDAddrOperand(), llvm::SystemZInstPrinterCommon::printBDLAddrOperand(), llvm::SystemZInstPrinterCommon::printBDRAddrOperand(), llvm::SystemZInstPrinterCommon::printBDVAddrOperand(), llvm::SystemZInstPrinterCommon::printBDXAddrOperand(), llvm::HexagonInstPrinter::printBrtarget(), llvm::BPFInstPrinter::printBrTargetOperand(), llvm::CSKYInstPrinter::printConstpool(), llvm::SparcInstPrinter::printCTILabel(), llvm::CSKYInstPrinter::printDataSymbol(), llvm::X86ATTInstPrinter::printExprOperand(), llvm::X86InstPrinterCommon::printExprOperand(), llvm::SystemZInstPrinterCommon::printFormattedRegName(), llvm::LanaiInstPrinter::printHi16AndImmOperand(), llvm::LanaiInstPrinter::printHi16ImmOperand(), llvm::BPFInstPrinter::printImm64Operand(), llvm::AArch64InstPrinter::printInst(), llvm::PPCInstPrinter::printInst(), llvm::R600InstPrinter::printLiteral(), llvm::LanaiInstPrinter::printLo16AndImmOperand(), llvm::SystemZInstPrinterCommon::printLXAAddrOperand(), llvm::LanaiInstPrinter::printMemImmOperand(), llvm::X86IntelInstPrinter::printMemOffset(), llvm::X86IntelInstPrinter::printMemReference(), llvm::LanaiInstPrinter::printMemRiOperand(), llvm::LanaiInstPrinter::printMemSplsOperand(), llvm::AArch64InstPrinter::printOperand(), llvm::ARMInstPrinter::printOperand(), llvm::BPFInstPrinter::printOperand(), llvm::CSKYInstPrinter::printOperand(), llvm::HexagonInstPrinter::printOperand(), llvm::LanaiInstPrinter::printOperand(), llvm::NVPTXInstPrinter::printOperand(), llvm::PPCInstPrinter::printOperand(), llvm::R600InstPrinter::printOperand(), llvm::RISCVInstPrinter::printOperand(), llvm::SparcInstPrinter::printOperand(), llvm::SPIRVInstPrinter::printOperand(), llvm::SystemZInstPrinterCommon::printOperand(), llvm::SystemZInstPrinterCommon::printOperand(), llvm::VEInstPrinter::printOperand(), llvm::WebAssemblyInstPrinter::printOperand(), llvm::X86ATTInstPrinter::printOperand(), llvm::X86IntelInstPrinter::printOperand(), llvm::X86InstPrinterCommon::printPCRelImm(), llvm::SystemZInstPrinterCommon::printPCRelOperand(), llvm::SystemZInstPrinterCommon::printRegName(), llvm::SystemZInstPrinterCommon::printSImmOperand(), llvm::ARMInstPrinter::printThumbLdrLabelOperand(), llvm::PPCInstPrinter::printTLSCall(), llvm::X86IntelInstPrinter::printU8Imm(), llvm::AArch64InstPrinter::printUImm12Offset(), llvm::SystemZInstPrinterCommon::printUImmOperand(), llvm::R600InstPrinter::R600InstPrinter(), llvm::RISCVInstPrinter::RISCVInstPrinter(), llvm::SparcInstPrinter::SparcInstPrinter(), llvm::SystemZGNUInstPrinter::SystemZGNUInstPrinter(), llvm::SystemZHLASMInstPrinter::SystemZHLASMInstPrinter(), llvm::SystemZInstPrinterCommon::SystemZInstPrinterCommon(), llvm::VEInstPrinter::VEInstPrinter(), llvm::WebAssemblyInstPrinter::WebAssemblyInstPrinter(), llvm::X86ATTInstPrinter::X86ATTInstPrinter(), llvm::X86IntelInstPrinter::X86IntelInstPrinter(), llvm::XCoreInstPrinter::XCoreInstPrinter(), and llvm::XtensaInstPrinter::XtensaInstPrinter().

MIA

MII

Definition at line 53 of file MCInstPrinter.h.

Referenced by llvm::AArch64AppleInstPrinter::AArch64AppleInstPrinter(), llvm::AArch64InstPrinter::AArch64InstPrinter(), llvm::AMDGPUInstPrinter::AMDGPUInstPrinter(), llvm::ARCInstPrinter::ARCInstPrinter(), llvm::ARMInstPrinter::ARMInstPrinter(), llvm::AVRInstPrinter::AVRInstPrinter(), llvm::BPFInstPrinter::BPFInstPrinter(), llvm::CSKYInstPrinter::CSKYInstPrinter(), getOpcodeName(), llvm::LanaiInstPrinter::LanaiInstPrinter(), llvm::LoongArchInstPrinter::LoongArchInstPrinter(), llvm::M68kInstPrinter::M68kInstPrinter(), MCInstPrinter(), llvm::MipsInstPrinter::MipsInstPrinter(), llvm::MSP430InstPrinter::MSP430InstPrinter(), llvm::NVPTXInstPrinter::NVPTXInstPrinter(), llvm::PPCInstPrinter::PPCInstPrinter(), llvm::SPIRVInstPrinter::printInst(), llvm::WebAssemblyInstPrinter::printInst(), llvm::X86ATTInstPrinter::printInst(), llvm::X86IntelInstPrinter::printInst(), llvm::X86InstPrinterCommon::printInstFlags(), llvm::SPIRVInstPrinter::printOpDecorate(), llvm::ARMInstPrinter::printOperand(), llvm::CSKYInstPrinter::printOperand(), llvm::PPCInstPrinter::printOperand(), llvm::WebAssemblyInstPrinter::printOperand(), llvm::SPIRVInstPrinter::printOpExtInst(), llvm::AMDGPUInstPrinter::printRegOperand(), llvm::SPIRVInstPrinter::printUnknownType(), llvm::X86ATTInstPrinter::printVecCompareInstr(), llvm::X86IntelInstPrinter::printVecCompareInstr(), llvm::R600InstPrinter::R600InstPrinter(), llvm::RISCVInstPrinter::RISCVInstPrinter(), llvm::SparcInstPrinter::SparcInstPrinter(), llvm::SystemZGNUInstPrinter::SystemZGNUInstPrinter(), llvm::SystemZHLASMInstPrinter::SystemZHLASMInstPrinter(), llvm::SystemZInstPrinterCommon::SystemZInstPrinterCommon(), llvm::VEInstPrinter::VEInstPrinter(), llvm::WebAssemblyInstPrinter::WebAssemblyInstPrinter(), llvm::X86ATTInstPrinter::X86ATTInstPrinter(), llvm::X86IntelInstPrinter::X86IntelInstPrinter(), llvm::XCoreInstPrinter::XCoreInstPrinter(), and llvm::XtensaInstPrinter::XtensaInstPrinter().

MRI

Definition at line 54 of file MCInstPrinter.h.

Referenced by llvm::AArch64AppleInstPrinter::AArch64AppleInstPrinter(), llvm::AArch64InstPrinter::AArch64InstPrinter(), llvm::AMDGPUInstPrinter::AMDGPUInstPrinter(), llvm::ARCInstPrinter::ARCInstPrinter(), llvm::ARMInstPrinter::ARMInstPrinter(), llvm::AVRInstPrinter::AVRInstPrinter(), llvm::BPFInstPrinter::BPFInstPrinter(), llvm::CSKYInstPrinter::CSKYInstPrinter(), llvm::AVRInstPrinter::getPrettyRegisterName(), llvm::AMDGPUInstPrinter::getRegisterName(), llvm::HexagonInstPrinter::HexagonInstPrinter(), llvm::LanaiInstPrinter::LanaiInstPrinter(), llvm::LoongArchInstPrinter::LoongArchInstPrinter(), llvm::M68kInstPrinter::M68kInstPrinter(), matchAliasPatterns(), MCInstPrinter(), llvm::MipsInstPrinter::MipsInstPrinter(), llvm::MSP430InstPrinter::MSP430InstPrinter(), llvm::NVPTXInstPrinter::NVPTXInstPrinter(), llvm::PPCInstPrinter::PPCInstPrinter(), llvm::AArch64InstPrinter::printGPR64x8(), llvm::ARMInstPrinter::printGPRPairOperand(), llvm::AArch64InstPrinter::printGPRSeqPairsClassOperand(), llvm::ARMInstPrinter::printInst(), llvm::ARMInstPrinter::printMVEVectorList(), llvm::PPCInstPrinter::printOperand(), llvm::AArch64InstPrinter::printRangePrefetchAlias(), llvm::ARMInstPrinter::printRegisterList(), llvm::VEInstPrinter::printRegName(), llvm::AMDGPUInstPrinter::printRegOperand(), llvm::AMDGPUInstPrinter::printRegOperand(), llvm::AArch64InstPrinter::printVectorList(), llvm::ARMInstPrinter::printVectorListTwo(), llvm::ARMInstPrinter::printVectorListTwoAllLanes(), llvm::ARMInstPrinter::printVectorListTwoSpaced(), llvm::ARMInstPrinter::printVectorListTwoSpacedAllLanes(), llvm::R600InstPrinter::R600InstPrinter(), llvm::RISCVInstPrinter::RISCVInstPrinter(), llvm::SparcInstPrinter::SparcInstPrinter(), llvm::SystemZGNUInstPrinter::SystemZGNUInstPrinter(), llvm::SystemZHLASMInstPrinter::SystemZHLASMInstPrinter(), llvm::SystemZInstPrinterCommon::SystemZInstPrinterCommon(), llvm::VEInstPrinter::VEInstPrinter(), llvm::WebAssemblyInstPrinter::WebAssemblyInstPrinter(), llvm::X86ATTInstPrinter::X86ATTInstPrinter(), llvm::X86IntelInstPrinter::X86IntelInstPrinter(), llvm::XCoreInstPrinter::XCoreInstPrinter(), and llvm::XtensaInstPrinter::XtensaInstPrinter().

PrintAliases

bool llvm::MCInstPrinter::PrintAliases = true protected

PrintBranchImmAsAddress

bool llvm::MCInstPrinter::PrintBranchImmAsAddress = false protected

If true, a branch immediate (e.g.

bl 4) will be printed as a hexadecimal address (e.g. bl 0x20004). This is useful for a stream disassembler (llvm-objdump -d).

Definition at line 75 of file MCInstPrinter.h.

Referenced by llvm::AArch64InstPrinter::printAdrAdrpLabel(), llvm::AArch64InstPrinter::printAlignedLabel(), llvm::PPCInstPrinter::printBranchOperand(), llvm::RISCVInstPrinter::printBranchOperand(), llvm::CSKYInstPrinter::printConstpool(), llvm::CSKYInstPrinter::printCSKYSymbolOperand(), llvm::SparcInstPrinter::printCTILabel(), llvm::CSKYInstPrinter::printFPRRegName(), llvm::ARMInstPrinter::printOperand(), llvm::CSKYInstPrinter::printOperand(), llvm::X86InstPrinterCommon::printPCRelImm(), llvm::SystemZInstPrinterCommon::printPCRelOperand(), llvm::CSKYInstPrinter::printRegName(), and setPrintBranchImmAsAddress().

PrintHexStyle

PrintImmHex

bool llvm::MCInstPrinter::PrintImmHex = false protected

SymbolizeOperands

bool llvm::MCInstPrinter::SymbolizeOperands = false protected

UseColor

bool llvm::MCInstPrinter::UseColor = false protected

UseMarkup

bool llvm::MCInstPrinter::UseMarkup = false protected

The documentation for this class was generated from the following files: