LLVM
8.0.1
|
#include "Target/X86/InstPrinter/X86IntelInstPrinter.h"
Static Public Member Functions | |
static const char * | getRegisterName (unsigned RegNo) |
Additional Inherited Members | |
Protected Member Functions inherited from llvm::X86InstPrinterCommon | |
void | printInstFlags (const MCInst *MI, raw_ostream &O) |
void | printOptionalSegReg (const MCInst *MI, unsigned OpNo, raw_ostream &O) |
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 22 of file X86IntelInstPrinter.h.
|
inline |
Definition at line 24 of file X86IntelInstPrinter.h.
References getRegisterName(), MI, llvm::RISCVFenceField::O, printDstIdx(), printInst(), printInstruction(), printMemOffset(), printMemReference(), printOperand(), printRegName(), printSrcIdx(), printSTiRegOperand(), and printU8Imm().
Referenced by llvm::X86Operand::print(), printRegName(), and X86IntelInstPrinter().
|
inline |
Definition at line 44 of file X86IntelInstPrinter.h.
References printMemReference().
void X86IntelInstPrinter::printDstIdx | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 129 of file X86IntelInstPrinter.cpp.
References printOperand().
Referenced by printDstIdx16(), printDstIdx32(), printDstIdx64(), printDstIdx8(), and X86IntelInstPrinter().
|
inline |
Definition at line 126 of file X86IntelInstPrinter.h.
References printDstIdx().
|
inline |
Definition at line 130 of file X86IntelInstPrinter.h.
References printDstIdx().
|
inline |
Definition at line 134 of file X86IntelInstPrinter.h.
References printDstIdx().
|
inline |
Definition at line 122 of file X86IntelInstPrinter.h.
References printDstIdx().
|
inline |
Definition at line 92 of file X86IntelInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 96 of file X86IntelInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 80 of file X86IntelInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 100 of file X86IntelInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 84 of file X86IntelInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 88 of file X86IntelInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 68 of file X86IntelInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 56 of file X86IntelInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 72 of file X86IntelInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 60 of file X86IntelInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 76 of file X86IntelInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 64 of file X86IntelInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 52 of file X86IntelInstPrinter.h.
References printMemReference().
|
overridevirtual |
Print the specified MCInst to the specified raw_ostream.
Implements llvm::MCInstPrinter.
Definition at line 38 of file X86IntelInstPrinter.cpp.
References llvm::MCInstPrinter::CommentStream, llvm::EmitAnyX86InstComments(), llvm::MCSubtargetInfo::getFeatureBits(), llvm::MCInst::getOpcode(), llvm::MCInstPrinter::MII, llvm::MCInstPrinter::printAnnotation(), llvm::X86InstPrinterCommon::printInstFlags(), and printInstruction().
Referenced by X86IntelInstPrinter().
void llvm::X86IntelInstPrinter::printInstruction | ( | const MCInst * | MI, |
raw_ostream & | O | ||
) |
Referenced by printInst(), and X86IntelInstPrinter().
|
inline |
Definition at line 142 of file X86IntelInstPrinter.h.
References printMemOffset().
|
inline |
Definition at line 146 of file X86IntelInstPrinter.h.
References printMemOffset().
|
inline |
Definition at line 150 of file X86IntelInstPrinter.h.
References printMemOffset().
|
inline |
Definition at line 138 of file X86IntelInstPrinter.h.
References printMemOffset().
void X86IntelInstPrinter::printMemOffset | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 137 of file X86IntelInstPrinter.cpp.
References assert(), llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), llvm::MCInstPrinter::MAI, llvm::MCExpr::print(), and llvm::X86InstPrinterCommon::printOptionalSegReg().
Referenced by printMemOffs16(), printMemOffs32(), printMemOffs64(), printMemOffs8(), and X86IntelInstPrinter().
void X86IntelInstPrinter::printMemReference | ( | const MCInst * | MI, |
unsigned | Op, | ||
raw_ostream & | O | ||
) |
Definition at line 72 of file X86IntelInstPrinter.cpp.
References llvm::X86::AddrBaseReg, llvm::X86::AddrDisp, llvm::X86::AddrIndexReg, llvm::X86::AddrScaleAmt, llvm::X86::AddrSegmentReg, assert(), llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), llvm::MCInstPrinter::MAI, llvm::MCExpr::print(), printOperand(), and llvm::X86InstPrinterCommon::printOptionalSegReg().
Referenced by printanymem(), printf128mem(), printf256mem(), printf32mem(), printf512mem(), printf64mem(), printf80mem(), printi128mem(), printi16mem(), printi256mem(), printi32mem(), printi512mem(), printi64mem(), printi8mem(), printopaquemem(), and X86IntelInstPrinter().
|
inline |
Definition at line 48 of file X86IntelInstPrinter.h.
References printMemReference().
|
overridevirtual |
Implements llvm::X86InstPrinterCommon.
Definition at line 58 of file X86IntelInstPrinter.cpp.
References assert(), 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::MCExpr::print(), and printRegName().
Referenced by printDstIdx(), printMemReference(), printSrcIdx(), and X86IntelInstPrinter().
|
overridevirtual |
Print the assembler register name.
Reimplemented from llvm::MCInstPrinter.
Definition at line 34 of file X86IntelInstPrinter.cpp.
References getRegisterName().
Referenced by printOperand(), printSTiRegOperand(), and X86IntelInstPrinter().
void X86IntelInstPrinter::printSrcIdx | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 120 of file X86IntelInstPrinter.cpp.
References printOperand(), and llvm::X86InstPrinterCommon::printOptionalSegReg().
Referenced by printSrcIdx16(), printSrcIdx32(), printSrcIdx64(), printSrcIdx8(), and X86IntelInstPrinter().
|
inline |
Definition at line 110 of file X86IntelInstPrinter.h.
References printSrcIdx().
|
inline |
Definition at line 114 of file X86IntelInstPrinter.h.
References printSrcIdx().
|
inline |
Definition at line 118 of file X86IntelInstPrinter.h.
References printSrcIdx().
|
inline |
Definition at line 106 of file X86IntelInstPrinter.h.
References printSrcIdx().
void X86IntelInstPrinter::printSTiRegOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | OS | ||
) |
Definition at line 164 of file X86IntelInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), printRegName(), and Reg.
Referenced by X86IntelInstPrinter().
void X86IntelInstPrinter::printU8Imm | ( | const MCInst * | MI, |
unsigned | Op, | ||
raw_ostream & | O | ||
) |
Definition at line 156 of file X86IntelInstPrinter.cpp.
References llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCInstPrinter::MAI, and llvm::MCExpr::print().
Referenced by X86IntelInstPrinter().