LLVM API Documentation
#include <X86ATTInstPrinter.h>
Static Public Member Functions | |
static const char * | getRegisterName (unsigned RegNo) |
Additional Inherited Members | |
![]() | |
void | printAnnotation (raw_ostream &OS, StringRef Annot) |
Utility function for printing annotations. More... | |
![]() | |
raw_ostream * | CommentStream |
const MCAsmInfo & | MAI |
const MCInstrInfo & | MII |
const MCRegisterInfo & | MRI |
uint64_t | AvailableFeatures |
The current set of available features. More... | |
bool | UseMarkup |
True if we are printing marked up assembly. More... | |
bool | PrintImmHex |
True if we are printing immediates as hex. More... | |
HexStyle::Style | PrintHexStyle |
Which style to use for printing hexadecimal values. More... | |
Definition at line 23 of file X86ATTInstPrinter.h.
|
inline |
Definition at line 25 of file X86ATTInstPrinter.h.
|
static |
bool llvm::X86ATTInstPrinter::printAliasInstr | ( | const MCInst * | MI, |
raw_ostream & | OS | ||
) |
Referenced by printInst().
void X86ATTInstPrinter::printAVXCC | ( | const MCInst * | MI, |
unsigned | Op, | ||
raw_ostream & | OS | ||
) |
Definition at line 86 of file X86ATTInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm_unreachable.
|
inline |
Definition at line 81 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 84 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 72 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 87 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 75 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 78 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 63 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 54 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 66 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 57 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 69 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 60 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 51 of file X86ATTInstPrinter.h.
References printMemReference().
|
virtual |
printInst - 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::MCInstrInfo::get(), llvm::MCInst::getOpcode(), getRegisterName(), llvm::X86II::LOCK, llvm::MCInstPrinter::MII, printAliasInstr(), llvm::MCInstPrinter::printAnnotation(), printInstruction(), and llvm::MCInstrDesc::TSFlags.
void llvm::X86ATTInstPrinter::printInstruction | ( | const MCInst * | MI, |
raw_ostream & | OS | ||
) |
Referenced by printInst().
|
inline |
Definition at line 94 of file X86ATTInstPrinter.h.
References printMemOffset().
|
inline |
Definition at line 97 of file X86ATTInstPrinter.h.
References printMemOffset().
|
inline |
Definition at line 100 of file X86ATTInstPrinter.h.
References printMemOffset().
|
inline |
Definition at line 91 of file X86ATTInstPrinter.h.
References printMemOffset().
void X86ATTInstPrinter::printMemOffset | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | OS | ||
) |
Definition at line 219 of file X86ATTInstPrinter.cpp.
References llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and llvm::MCInstPrinter::markup().
Referenced by printMemOffs16(), printMemOffs32(), printMemOffs64(), and printMemOffs8().
void X86ATTInstPrinter::printMemReference | ( | const MCInst * | MI, |
unsigned | Op, | ||
raw_ostream & | OS | ||
) |
Definition at line 173 of file X86ATTInstPrinter.cpp.
References llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), llvm::MCInstPrinter::markup(), and printOperand().
Referenced by printf128mem(), printf256mem(), printf32mem(), printf512mem(), printf64mem(), printf80mem(), printi128mem(), printi16mem(), printi256mem(), printi32mem(), printi512mem(), printi64mem(), printi8mem(), and printopaquemem().
|
inline |
Definition at line 47 of file X86ATTInstPrinter.h.
References printMemReference().
void X86ATTInstPrinter::printOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | OS | ||
) |
Definition at line 151 of file X86ATTInstPrinter.cpp.
References 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::markup(), and printRegName().
Referenced by printMemReference().
void X86ATTInstPrinter::printPCRelImm | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
printPCRelImm - This is used to print an immediate value that ends up being encoded as a pc-relative value (e.g. for jumps and calls). These print slightly differently than normal immediates. For example, a $ is not emitted.
Definition at line 130 of file X86ATTInstPrinter.cpp.
References llvm::dyn_cast(), llvm::MCInstPrinter::formatHex(), llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), and llvm::MCOperand::isImm().
|
virtual |
printRegName - Print the assembler register name.
Reimplemented from llvm::MCInstPrinter.
Definition at line 35 of file X86ATTInstPrinter.cpp.
References getRegisterName(), and llvm::MCInstPrinter::markup().
Referenced by printOperand().
void X86ATTInstPrinter::printSSECC | ( | const MCInst * | MI, |
unsigned | Op, | ||
raw_ostream & | OS | ||
) |
Definition at line 62 of file X86ATTInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm_unreachable.