|
LLVM
4.0.0
|
#include <X86ATTInstPrinter.h>
Static Public Member Functions | |
| static const char * | getRegisterName (unsigned RegNo) |
Additional Inherited Members | |
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 |
| A stream that comments can be emitted to if desired. More... | |
| const MCAsmInfo & | MAI |
| const MCInstrInfo & | MII |
| const MCRegisterInfo & | MRI |
| 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 21 of file X86ATTInstPrinter.h.
|
inline |
Definition at line 23 of file X86ATTInstPrinter.h.
Referenced by llvm::X86AsmPrinter::EmitInstruction(), getShuffleComment(), printAsmMRegister(), printInst(), printOperand(), and printRegName().
| bool llvm::X86ATTInstPrinter::printAliasInstr | ( | const MCInst * | MI, |
| raw_ostream & | OS | ||
| ) |
Referenced by printInst().
|
inline |
Definition at line 52 of file X86ATTInstPrinter.h.
References printMemReference().
| void llvm::X86ATTInstPrinter::printCustomAliasOperand | ( | const MCInst * | MI, |
| unsigned | OpIdx, | ||
| unsigned | PrintMethodIdx, | ||
| raw_ostream & | O | ||
| ) |
| void X86ATTInstPrinter::printDstIdx | ( | const MCInst * | MI, |
| unsigned | OpNo, | ||
| raw_ostream & | OS | ||
| ) |
Definition at line 258 of file X86ATTInstPrinter.cpp.
References llvm::MCInstPrinter::markup(), and printOperand().
Referenced by printDstIdx16(), printDstIdx32(), printDstIdx64(), and printDstIdx8().
|
inline |
Definition at line 115 of file X86ATTInstPrinter.h.
References printDstIdx().
|
inline |
Definition at line 118 of file X86ATTInstPrinter.h.
References printDstIdx().
|
inline |
Definition at line 121 of file X86ATTInstPrinter.h.
References printDstIdx().
|
inline |
Definition at line 112 of file X86ATTInstPrinter.h.
References printDstIdx().
|
inline |
Definition at line 90 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 93 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 81 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 96 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 84 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 87 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 72 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 63 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 75 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 66 of file X86ATTInstPrinter.h.
References printMemReference().
|
inline |
Definition at line 78 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().
|
overridevirtual |
Print the specified MCInst to the specified raw_ostream.
Implements llvm::MCInstPrinter.
Definition at line 40 of file X86ATTInstPrinter.cpp.
References llvm::MCInstPrinter::CommentStream, Desc, llvm::EmitAnyX86InstComments(), llvm::MCInstrInfo::get(), llvm::MCSubtargetInfo::getFeatureBits(), llvm::MCInst::getOpcode(), getRegisterName(), llvm::X86II::LOCK, llvm::MCInstPrinter::MII, printAliasInstr(), llvm::MCInstPrinter::printAnnotation(), printInstruction(), printPCRelImm(), and llvm::MCInstrDesc::TSFlags.
| void llvm::X86ATTInstPrinter::printInstruction | ( | const MCInst * | MI, |
| raw_ostream & | OS | ||
| ) |
Referenced by printInst().
|
inline |
Definition at line 127 of file X86ATTInstPrinter.h.
References printMemOffset().
|
inline |
Definition at line 130 of file X86ATTInstPrinter.h.
References printMemOffset().
|
inline |
Definition at line 133 of file X86ATTInstPrinter.h.
References printMemOffset().
|
inline |
Definition at line 124 of file X86ATTInstPrinter.h.
References printMemOffset().
| void X86ATTInstPrinter::printMemOffset | ( | const MCInst * | MI, |
| unsigned | OpNo, | ||
| raw_ostream & | OS | ||
| ) |
Definition at line 269 of file X86ATTInstPrinter.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::MCInstPrinter::MAI, llvm::MCInstPrinter::markup(), llvm::MCExpr::print(), and printOperand().
Referenced by printMemOffs16(), printMemOffs32(), printMemOffs64(), and printMemOffs8().
| void X86ATTInstPrinter::printMemReference | ( | const MCInst * | MI, |
| unsigned | Op, | ||
| raw_ostream & | OS | ||
| ) |
Definition at line 195 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(), and printOperand().
Referenced by printanymem(), printf128mem(), printf256mem(), printf32mem(), printf512mem(), printf64mem(), printf80mem(), printi128mem(), printi16mem(), printi256mem(), printi32mem(), printi512mem(), printi64mem(), printi8mem(), and printopaquemem().
|
inline |
Definition at line 56 of file X86ATTInstPrinter.h.
References printMemReference().
| void X86ATTInstPrinter::printOperand | ( | const MCInst * | MI, |
| unsigned | OpNo, | ||
| raw_ostream & | OS | ||
| ) |
Definition at line 162 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(), printMemOffset(), printMemReference(), printSrcIdx(), and printU8Imm().
| 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 142 of file X86ATTInstPrinter.cpp.
References llvm::dwarf::syntax::Address, assert(), llvm::dyn_cast(), llvm::MCInstPrinter::formatHex(), llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), llvm::MCInstPrinter::MAI, and llvm::MCExpr::print().
Referenced by printInst().
|
overridevirtual |
Print the assembler register name.
Reimplemented from llvm::MCInstPrinter.
Definition at line 36 of file X86ATTInstPrinter.cpp.
References getRegisterName(), and llvm::MCInstPrinter::markup().
Referenced by printOperand().
| void X86ATTInstPrinter::printRoundingControl | ( | const MCInst * | MI, |
| unsigned | Op, | ||
| raw_ostream & | OS | ||
| ) |
Definition at line 128 of file X86ATTInstPrinter.cpp.
References llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
| void X86ATTInstPrinter::printSrcIdx | ( | const MCInst * | MI, |
| unsigned | OpNo, | ||
| raw_ostream & | OS | ||
| ) |
Definition at line 239 of file X86ATTInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCInstPrinter::markup(), and printOperand().
Referenced by printSrcIdx16(), printSrcIdx32(), printSrcIdx64(), and printSrcIdx8().
|
inline |
Definition at line 103 of file X86ATTInstPrinter.h.
References printSrcIdx().
|
inline |
Definition at line 106 of file X86ATTInstPrinter.h.
References printSrcIdx().
|
inline |
Definition at line 109 of file X86ATTInstPrinter.h.
References printSrcIdx().
|
inline |
Definition at line 100 of file X86ATTInstPrinter.h.
References printSrcIdx().
| void X86ATTInstPrinter::printSSEAVXCC | ( | const MCInst * | MI, |
| unsigned | Op, | ||
| raw_ostream & | OS | ||
| ) |
Definition at line 72 of file X86ATTInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm_unreachable.
| void X86ATTInstPrinter::printU8Imm | ( | const MCInst * | MI, |
| unsigned | Op, | ||
| raw_ostream & | OS | ||
| ) |
Definition at line 292 of file X86ATTInstPrinter.cpp.
References llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCInstPrinter::markup(), and printOperand().
| void X86ATTInstPrinter::printXOPCC | ( | const MCInst * | MI, |
| unsigned | Op, | ||
| raw_ostream & | OS | ||
| ) |
Definition at line 112 of file X86ATTInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm_unreachable.
1.8.6