LLVM
8.0.1
|
#include "Target/X86/InstPrinter/X86ATTInstPrinter.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 21 of file X86ATTInstPrinter.h.
|
inline |
Definition at line 23 of file X86ATTInstPrinter.h.
References getRegisterName(), MI, llvm::RISCVFenceField::O, printAliasInstr(), printCustomAliasOperand(), printDstIdx(), printInst(), printInstruction(), printMemOffset(), printMemReference(), printOperand(), printRegName(), printSrcIdx(), printSTiRegOperand(), and printU8Imm().
bool llvm::X86ATTInstPrinter::printAliasInstr | ( | const MCInst * | MI, |
raw_ostream & | OS | ||
) |
Referenced by printInst(), and X86ATTInstPrinter().
|
inline |
Definition at line 49 of file X86ATTInstPrinter.h.
References printMemReference().
void llvm::X86ATTInstPrinter::printCustomAliasOperand | ( | const MCInst * | MI, |
unsigned | OpIdx, | ||
unsigned | PrintMethodIdx, | ||
raw_ostream & | O | ||
) |
Referenced by X86ATTInstPrinter().
void X86ATTInstPrinter::printDstIdx | ( | const MCInst * | MI, |
unsigned | Op, | ||
raw_ostream & | O | ||
) |
Definition at line 165 of file X86ATTInstPrinter.cpp.
References llvm::MCInstPrinter::markup(), and printOperand().
Referenced by printDstIdx16(), printDstIdx32(), printDstIdx64(), printDstIdx8(), and X86ATTInstPrinter().
|
inline |
Definition at line 111 of file X86ATTInstPrinter.h.
References printDstIdx().
|
inline |
Definition at line 114 of file X86ATTInstPrinter.h.
References printDstIdx().
|
inline |
Definition at line 117 of file X86ATTInstPrinter.h.
References printDstIdx().
|
inline |
Definition at line 108 of file X86ATTInstPrinter.h.
References printDstIdx().
|
inline |
Definition at line 86 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 89 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 77 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 92 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 80 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 83 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 68 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 59 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 71 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 62 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 74 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 65 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 56 of file X86ATTInstPrinter.h.
References printMemReference().
|
overridevirtual |
Print the specified MCInst to the specified raw_ostream.
Implements llvm::MCInstPrinter.
Definition at line 42 of file X86ATTInstPrinter.cpp.
References llvm::MCInstPrinter::CommentStream, llvm::EmitAnyX86InstComments(), llvm::MCSubtargetInfo::getFeatureBits(), llvm::MCInst::getOpcode(), llvm::MCInstPrinter::MII, printAliasInstr(), llvm::MCInstPrinter::printAnnotation(), llvm::X86InstPrinterCommon::printInstFlags(), printInstruction(), and llvm::X86InstPrinterCommon::printPCRelImm().
Referenced by X86ATTInstPrinter().
void llvm::X86ATTInstPrinter::printInstruction | ( | const MCInst * | MI, |
raw_ostream & | OS | ||
) |
Referenced by printInst(), and X86ATTInstPrinter().
|
inline |
Definition at line 123 of file X86ATTInstPrinter.h.
References printMemOffset().
|
inline |
Definition at line 126 of file X86ATTInstPrinter.h.
References printMemOffset().
|
inline |
Definition at line 129 of file X86ATTInstPrinter.h.
References printMemOffset().
|
inline |
Definition at line 120 of file X86ATTInstPrinter.h.
References printMemOffset().
void X86ATTInstPrinter::printMemOffset | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | OS | ||
) |
Definition at line 176 of file X86ATTInstPrinter.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::MCInstPrinter::markup(), llvm::MCExpr::print(), and llvm::X86InstPrinterCommon::printOptionalSegReg().
Referenced by printMemOffs16(), printMemOffs32(), printMemOffs64(), printMemOffs8(), and X86ATTInstPrinter().
void X86ATTInstPrinter::printMemReference | ( | const MCInst * | MI, |
unsigned | Op, | ||
raw_ostream & | OS | ||
) |
Definition at line 111 of file X86ATTInstPrinter.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::MCInstPrinter::markup(), 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 X86ATTInstPrinter().
|
inline |
Definition at line 52 of file X86ATTInstPrinter.h.
References printMemReference().
|
overridevirtual |
Implements llvm::X86InstPrinterCommon.
Definition at line 78 of file X86ATTInstPrinter.cpp.
References assert(), llvm::MCInstPrinter::CommentStream, llvm::format(), 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(), llvm::MCExpr::print(), and printRegName().
Referenced by printDstIdx(), printMemReference(), printSrcIdx(), printU8Imm(), and X86ATTInstPrinter().
|
overridevirtual |
Print the assembler register name.
Reimplemented from llvm::MCInstPrinter.
Definition at line 38 of file X86ATTInstPrinter.cpp.
References getRegisterName(), and llvm::MCInstPrinter::markup().
Referenced by printOperand(), printSTiRegOperand(), and X86ATTInstPrinter().
void X86ATTInstPrinter::printSrcIdx | ( | const MCInst * | MI, |
unsigned | Op, | ||
raw_ostream & | O | ||
) |
Definition at line 151 of file X86ATTInstPrinter.cpp.
References llvm::MCInstPrinter::markup(), printOperand(), and llvm::X86InstPrinterCommon::printOptionalSegReg().
Referenced by printSrcIdx16(), printSrcIdx32(), printSrcIdx64(), printSrcIdx8(), and X86ATTInstPrinter().
|
inline |
Definition at line 99 of file X86ATTInstPrinter.h.
References printSrcIdx().
|
inline |
Definition at line 102 of file X86ATTInstPrinter.h.
References printSrcIdx().
|
inline |
Definition at line 105 of file X86ATTInstPrinter.h.
References printSrcIdx().
|
inline |
Definition at line 96 of file X86ATTInstPrinter.h.
References printSrcIdx().
void X86ATTInstPrinter::printSTiRegOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | OS | ||
) |
Definition at line 204 of file X86ATTInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::markup(), printRegName(), and Reg.
Referenced by X86ATTInstPrinter().
void X86ATTInstPrinter::printU8Imm | ( | const MCInst * | MI, |
unsigned | Op, | ||
raw_ostream & | OS | ||
) |
Definition at line 195 of file X86ATTInstPrinter.cpp.
References llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCInstPrinter::markup(), and printOperand().
Referenced by X86ATTInstPrinter().