LLVM 22.0.0git
|
#include "Target/SystemZ/MCTargetDesc/SystemZInstPrinterCommon.h"
Additional Inherited Members | |
Public Types inherited from llvm::MCInstPrinter | |
enum class | Markup { Immediate , Register , Target , Memory } |
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. | |
SmallVector< raw_ostream::Colors, 4 > | ColorStack {raw_ostream::Colors::RESET} |
Definition at line 25 of file SystemZInstPrinterCommon.h.
|
inline |
Definition at line 27 of file SystemZInstPrinterCommon.h.
References llvm::MCInstPrinter::MAI, llvm::MCInstPrinter::MCInstPrinter(), llvm::MCInstPrinter::MII, and llvm::MCInstPrinter::MRI.
Referenced by llvm::SystemZGNUInstPrinter::SystemZGNUInstPrinter(), and llvm::SystemZHLASMInstPrinter::SystemZHLASMInstPrinter().
void SystemZInstPrinterCommon::printAddress | ( | const MCAsmInfo * | MAI, |
MCRegister | Base, | ||
const MCOperand & | DispMO, | ||
MCRegister | Index, | ||
raw_ostream & | O ) |
Definition at line 26 of file SystemZInstPrinterCommon.cpp.
References llvm::sampleprof::Base, llvm::MCInstPrinter::MAI, printOperand(), and printRegName().
Referenced by printBDAddrOperand(), printBDVAddrOperand(), printBDXAddrOperand(), and printLXAAddrOperand().
|
protected |
Definition at line 207 of file SystemZInstPrinterCommon.cpp.
References llvm::MCInstPrinter::MAI, MI, and printAddress().
|
protected |
Definition at line 219 of file SystemZInstPrinterCommon.cpp.
References llvm::sampleprof::Base, llvm::Length, llvm::MCInstPrinter::MAI, MI, printOperand(), and printRegName().
|
protected |
Definition at line 233 of file SystemZInstPrinterCommon.cpp.
References llvm::sampleprof::Base, llvm::Length, llvm::MCInstPrinter::MAI, MI, printOperand(), and printRegName().
|
protected |
Definition at line 248 of file SystemZInstPrinterCommon.cpp.
References llvm::MCInstPrinter::MAI, MI, and printAddress().
|
protected |
Definition at line 213 of file SystemZInstPrinterCommon.cpp.
References llvm::MCInstPrinter::MAI, MI, and printAddress().
|
protected |
Definition at line 260 of file SystemZInstPrinterCommon.cpp.
|
inlinevirtual |
Definition at line 38 of file SystemZInstPrinterCommon.h.
References llvm::MCInstPrinter::MAI, and Reg.
Referenced by printRegName().
|
protected |
Definition at line 254 of file SystemZInstPrinterCommon.cpp.
References llvm::MCInstPrinter::MAI, MI, and printAddress().
|
protected |
Definition at line 202 of file SystemZInstPrinterCommon.cpp.
References llvm::MCInstPrinter::MAI, MI, and printOperand().
|
inlineprotected |
Definition at line 52 of file SystemZInstPrinterCommon.h.
References MI, and printOperand().
void SystemZInstPrinterCommon::printOperand | ( | const MCOperand & | MO, |
const MCAsmInfo * | MAI, | ||
raw_ostream & | O ) |
Definition at line 45 of file SystemZInstPrinterCommon.cpp.
References llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::Immediate, llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), llvm::MCOperand::isReg(), llvm_unreachable, llvm::MCInstPrinter::MAI, llvm::MCInstPrinter::markup(), and printRegName().
Referenced by printAddress(), printBDLAddrOperand(), printBDRAddrOperand(), printOperand(), and printOperand().
|
protected |
Definition at line 151 of file SystemZInstPrinterCommon.cpp.
References llvm::Address, llvm::dyn_cast(), llvm::MCInstPrinter::formatHex(), llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInstPrinter::Immediate, llvm::MCOperand::isImm(), llvm::MCInstPrinter::MAI, llvm::MCInstPrinter::markup(), MI, llvm::Offset, llvm::MCInstPrinter::PrintBranchImmAsAddress, and llvm::MCInstPrinter::Target.
Referenced by printPCRelTLSOperand().
|
protected |
Definition at line 178 of file SystemZInstPrinterCommon.cpp.
References llvm::Address, llvm::cast(), llvm::MCOperand::getExpr(), llvm::MCSymbol::getName(), llvm::MCSymbolRefExpr::getSpecifier(), llvm::MCSymbolRefExpr::getSymbol(), llvm_unreachable, MI, printPCRelOperand(), llvm::SystemZ::S_TLSGD, and llvm::SystemZ::S_TLSLDM.
|
overridevirtual |
Print the assembler register name.
Reimplemented from llvm::MCInstPrinter.
Definition at line 61 of file SystemZInstPrinterCommon.cpp.
References llvm::MCInstPrinter::MAI, and printFormattedRegName().
Referenced by printAddress(), printBDLAddrOperand(), printBDRAddrOperand(), and printOperand().
|
protected |
Definition at line 126 of file SystemZInstPrinterCommon.cpp.
References MI, and printSImmOperand().
|
protected |
Definition at line 136 of file SystemZInstPrinterCommon.cpp.
References MI, and printSImmOperand().
|
protected |
Definition at line 111 of file SystemZInstPrinterCommon.cpp.
References MI, and printSImmOperand().
|
protected |
Definition at line 79 of file SystemZInstPrinterCommon.cpp.
References assert(), llvm::MCOperand::getExpr(), llvm::MCInstPrinter::Immediate, llvm::MCOperand::isExpr(), llvm::isInt(), llvm::MCInstPrinter::MAI, llvm::MCInstPrinter::markup(), and MI.
Referenced by printS16ImmOperand(), printS32ImmOperand(), and printS8ImmOperand().
|
protected |
Definition at line 121 of file SystemZInstPrinterCommon.cpp.
References MI, and printUImmOperand().
|
protected |
Definition at line 131 of file SystemZInstPrinterCommon.cpp.
References MI, and printUImmOperand().
|
protected |
Definition at line 91 of file SystemZInstPrinterCommon.cpp.
References MI, and printUImmOperand().
|
protected |
Definition at line 96 of file SystemZInstPrinterCommon.cpp.
References MI, and printUImmOperand().
|
protected |
Definition at line 141 of file SystemZInstPrinterCommon.cpp.
References MI, and printUImmOperand().
|
protected |
Definition at line 101 of file SystemZInstPrinterCommon.cpp.
References MI, and printUImmOperand().
|
protected |
Definition at line 146 of file SystemZInstPrinterCommon.cpp.
References MI, and printUImmOperand().
|
protected |
Definition at line 106 of file SystemZInstPrinterCommon.cpp.
References MI, and printUImmOperand().
|
protected |
Definition at line 116 of file SystemZInstPrinterCommon.cpp.
References MI, and printUImmOperand().
|
protected |
Definition at line 66 of file SystemZInstPrinterCommon.cpp.
References assert(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInstPrinter::Immediate, llvm::MCOperand::isExpr(), llvm::isUInt(), llvm::MCInstPrinter::MAI, llvm::MCInstPrinter::markup(), and MI.
Referenced by printU12ImmOperand(), printU16ImmOperand(), printU1ImmOperand(), printU2ImmOperand(), printU32ImmOperand(), printU3ImmOperand(), printU48ImmOperand(), printU4ImmOperand(), and printU8ImmOperand().