LLVM API Documentation
#include <PPCInstPrinter.h>
Public Member Functions | |
PPCInstPrinter (const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI, bool isDarwin) | |
bool | isDarwinSyntax () const |
virtual void | printRegName (raw_ostream &OS, unsigned RegNo) const |
printRegName - Print the assembler register name. More... | |
virtual void | printInst (const MCInst *MI, raw_ostream &O, StringRef Annot) |
void | printInstruction (const MCInst *MI, raw_ostream &O) |
void | printOperand (const MCInst *MI, unsigned OpNo, raw_ostream &O) |
void | printPredicateOperand (const MCInst *MI, unsigned OpNo, raw_ostream &O, const char *Modifier=0) |
void | printS5ImmOperand (const MCInst *MI, unsigned OpNo, raw_ostream &O) |
void | printU5ImmOperand (const MCInst *MI, unsigned OpNo, raw_ostream &O) |
void | printU6ImmOperand (const MCInst *MI, unsigned OpNo, raw_ostream &O) |
void | printS16ImmOperand (const MCInst *MI, unsigned OpNo, raw_ostream &O) |
void | printU16ImmOperand (const MCInst *MI, unsigned OpNo, raw_ostream &O) |
void | printBranchOperand (const MCInst *MI, unsigned OpNo, raw_ostream &O) |
void | printAbsBranchOperand (const MCInst *MI, unsigned OpNo, raw_ostream &O) |
void | printTLSCall (const MCInst *MI, unsigned OpNo, raw_ostream &O) |
void | printcrbitm (const MCInst *MI, unsigned OpNo, raw_ostream &O) |
void | printMemRegImm (const MCInst *MI, unsigned OpNo, raw_ostream &O) |
void | printMemRegReg (const MCInst *MI, unsigned OpNo, raw_ostream &O) |
![]() | |
MCInstPrinter (const MCAsmInfo &mai, const MCInstrInfo &mii, const MCRegisterInfo &mri) | |
virtual | ~MCInstPrinter () |
void | setCommentStream (raw_ostream &OS) |
setCommentStream - Specify a stream to emit comments to. More... | |
StringRef | getOpcodeName (unsigned Opcode) const |
uint64_t | getAvailableFeatures () const |
void | setAvailableFeatures (uint64_t Value) |
bool | getUseMarkup () const |
void | setUseMarkup (bool Value) |
StringRef | markup (StringRef s) const |
Utility functions to make adding mark ups simpler. More... | |
StringRef | markup (StringRef a, StringRef b) const |
bool | getPrintImmHex () const |
void | setPrintImmHex (bool Value) |
HexStyle::Style | getPrintHexStyleHex () const |
void | setPrintImmHex (HexStyle::Style Value) |
format_object1< int64_t > | formatImm (const int64_t Value) const |
Utility function to print immediates in decimal or hex. More... | |
format_object1< int64_t > | formatDec (const int64_t Value) const |
Utility functions to print decimal/hexadecimal values. More... | |
format_object1< int64_t > | formatHex (const int64_t Value) const |
format_object1< uint64_t > | formatHex (const uint64_t Value) const |
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 PPCInstPrinter.h.
|
inline |
Definition at line 26 of file PPCInstPrinter.h.
|
static |
Referenced by printOperand(), and printRegName().
|
inline |
Definition at line 30 of file PPCInstPrinter.h.
Referenced by printOperand().
void PPCInstPrinter::printAbsBranchOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 244 of file PPCInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isImm(), and printOperand().
Referenced by printBranchOperand().
void PPCInstPrinter::printBranchOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 233 of file PPCInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::isImm(), printAbsBranchOperand(), and printOperand().
Referenced by printTLSCall().
void PPCInstPrinter::printcrbitm | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 253 of file PPCInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), and llvm_unreachable.
|
virtual |
printInst - Print the specified MCInst to the specified raw_ostream.
Implements llvm::MCInstPrinter.
Definition at line 38 of file PPCInstPrinter.cpp.
References llvm::TargetOpcode::COPY_TO_REGCLASS, llvm::MCOperand::getImm(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), OR, llvm::MCInstPrinter::printAnnotation(), printInstruction(), and printOperand().
void llvm::PPCInstPrinter::printInstruction | ( | const MCInst * | MI, |
raw_ostream & | O | ||
) |
Referenced by printInst().
void PPCInstPrinter::printMemRegImm | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 271 of file PPCInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), printOperand(), and printS16ImmOperand().
void PPCInstPrinter::printMemRegReg | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 282 of file PPCInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), and printOperand().
void PPCInstPrinter::printOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 320 of file PPCInstPrinter.cpp.
References llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), getRegisterName(), isDarwinSyntax(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), llvm::MCOperand::isReg(), and stripRegisterPrefix().
Referenced by printAbsBranchOperand(), printBranchOperand(), printInst(), printMemRegImm(), printMemRegReg(), printPredicateOperand(), printS16ImmOperand(), printTLSCall(), and printU16ImmOperand().
void PPCInstPrinter::printPredicateOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O, | ||
const char * | Modifier = 0 |
||
) |
Definition at line 105 of file PPCInstPrinter.cpp.
References llvm::tgtok::Code, llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm_unreachable, llvm::PPC::PRED_EQ, llvm::PPC::PRED_EQ_MINUS, llvm::PPC::PRED_EQ_PLUS, llvm::PPC::PRED_GE, llvm::PPC::PRED_GE_MINUS, llvm::PPC::PRED_GE_PLUS, llvm::PPC::PRED_GT, llvm::PPC::PRED_GT_MINUS, llvm::PPC::PRED_GT_PLUS, llvm::PPC::PRED_LE, llvm::PPC::PRED_LE_MINUS, llvm::PPC::PRED_LE_PLUS, llvm::PPC::PRED_LT, llvm::PPC::PRED_LT_MINUS, llvm::PPC::PRED_LT_PLUS, llvm::PPC::PRED_NE, llvm::PPC::PRED_NE_MINUS, llvm::PPC::PRED_NE_PLUS, llvm::PPC::PRED_NU, llvm::PPC::PRED_NU_MINUS, llvm::PPC::PRED_NU_PLUS, llvm::PPC::PRED_UN, llvm::PPC::PRED_UN_MINUS, llvm::PPC::PRED_UN_PLUS, and printOperand().
|
virtual |
printRegName - Print the assembler register name.
Reimplemented from llvm::MCInstPrinter.
Definition at line 34 of file PPCInstPrinter.cpp.
References getRegisterName().
void PPCInstPrinter::printS16ImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 217 of file PPCInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isImm(), and printOperand().
Referenced by printMemRegImm().
void PPCInstPrinter::printS5ImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 196 of file PPCInstPrinter.cpp.
References llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
void PPCInstPrinter::printTLSCall | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 295 of file PPCInstPrinter.cpp.
References printBranchOperand(), and printOperand().
void PPCInstPrinter::printU16ImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 225 of file PPCInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isImm(), and printOperand().
void PPCInstPrinter::printU5ImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 203 of file PPCInstPrinter.cpp.
References llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
void PPCInstPrinter::printU6ImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 210 of file PPCInstPrinter.cpp.
References llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().