LLVM
8.0.1
|
#include "Target/PowerPC/InstPrinter/PPCInstPrinter.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 = 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 PPCInstPrinter.h.
|
inline |
Definition at line 31 of file PPCInstPrinter.h.
References getRegisterName(), MI, llvm::RISCVFenceField::O, printAbsBranchOperand(), printAliasInstr(), printATBitsAsHint(), printBranchOperand(), printcrbitm(), printCustomAliasOperand(), printInst(), printInstruction(), printMemRegImm(), printMemRegReg(), printOperand(), printPredicateOperand(), printRegName(), printS16ImmOperand(), printS5ImmOperand(), printTLSCall(), printU10ImmOperand(), printU12ImmOperand(), printU16ImmOperand(), printU1ImmOperand(), printU2ImmOperand(), printU3ImmOperand(), printU4ImmOperand(), printU5ImmOperand(), printU6ImmOperand(), printU7ImmOperand(), and printU8ImmOperand().
Referenced by PPCInstPrinter(), printOperand(), and printRegName().
void PPCInstPrinter::printAbsBranchOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 392 of file PPCInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isImm(), and printOperand().
Referenced by PPCInstPrinter().
bool llvm::PPCInstPrinter::printAliasInstr | ( | const MCInst * | MI, |
raw_ostream & | OS | ||
) |
Referenced by PPCInstPrinter(), and printInst().
void PPCInstPrinter::printATBitsAsHint | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 274 of file PPCInstPrinter.cpp.
References llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
Referenced by PPCInstPrinter().
void PPCInstPrinter::printBranchOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 378 of file PPCInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isImm(), and printOperand().
Referenced by PPCInstPrinter().
void PPCInstPrinter::printcrbitm | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 401 of file PPCInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), and llvm_unreachable.
Referenced by PPCInstPrinter().
void llvm::PPCInstPrinter::printCustomAliasOperand | ( | const MCInst * | MI, |
unsigned | OpIdx, | ||
unsigned | PrintMethodIdx, | ||
raw_ostream & | OS | ||
) |
Referenced by PPCInstPrinter().
|
overridevirtual |
Print the specified MCInst to the specified raw_ostream.
Implements llvm::MCInstPrinter.
Definition at line 68 of file PPCInstPrinter.cpp.
References llvm::MCSubtargetInfo::getFeatureBits(), llvm::MCOperand::getImm(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), OR, printAliasInstr(), llvm::MCInstPrinter::printAnnotation(), printInstruction(), and printOperand().
Referenced by PPCInstPrinter().
void llvm::PPCInstPrinter::printInstruction | ( | const MCInst * | MI, |
raw_ostream & | O | ||
) |
Referenced by PPCInstPrinter(), and printInst().
void PPCInstPrinter::printMemRegImm | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 419 of file PPCInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), printOperand(), and printS16ImmOperand().
Referenced by PPCInstPrinter().
void PPCInstPrinter::printMemRegReg | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 430 of file PPCInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), and printOperand().
Referenced by PPCInstPrinter().
void PPCInstPrinter::printOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 505 of file PPCInstPrinter.cpp.
References assert(), llvm::MCInstrInfo::get(), llvm::MCRegisterInfo::getEncodingValue(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), getRegisterName(), llvm::PPCInstrInfo::getRegNumForOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), llvm::MCOperand::isReg(), llvm::MCInstPrinter::MAI, llvm::MCInstPrinter::MII, llvm::MCInstPrinter::MRI, llvm::MCExpr::print(), Reg, ShowVSRNumsAsVR, and llvm::PPCRegisterInfo::stripRegisterPrefix().
Referenced by PPCInstPrinter(), printAbsBranchOperand(), printBranchOperand(), printInst(), printMemRegImm(), printMemRegReg(), printPredicateOperand(), printS16ImmOperand(), printTLSCall(), and printU16ImmOperand().
void PPCInstPrinter::printPredicateOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O, | ||
const char * | Modifier = nullptr |
||
) |
Definition at line 177 of file PPCInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm_unreachable, llvm::PPC::PRED_BIT_SET, llvm::PPC::PRED_BIT_UNSET, 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().
Referenced by PPCInstPrinter().
|
overridevirtual |
Print the assembler register name.
Reimplemented from llvm::MCInstPrinter.
Definition at line 51 of file PPCInstPrinter.cpp.
References getRegisterName(), and llvm::NVPTX::PTXCvtMode::RN.
Referenced by PPCInstPrinter().
void PPCInstPrinter::printS16ImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 362 of file PPCInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isImm(), and printOperand().
Referenced by PPCInstPrinter(), and printMemRegImm().
void PPCInstPrinter::printS5ImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 311 of file PPCInstPrinter.cpp.
References llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
Referenced by PPCInstPrinter().
void PPCInstPrinter::printTLSCall | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 443 of file PPCInstPrinter.cpp.
References llvm::Triple::AIX, FullRegNames, FullRegNamesWithPercent, llvm::MCOperand::getExpr(), llvm::MCSymbolRefExpr::getKind(), llvm::MCSymbol::getName(), llvm::MCInst::getOperand(), llvm::Triple::getOS(), llvm::MCSymbolRefExpr::getSymbol(), llvm::MCSymbolRefExpr::getVariantKindName(), llvm::Triple::isOSDarwin(), printOperand(), and llvm::MCSymbolRefExpr::VK_None.
Referenced by PPCInstPrinter().
void PPCInstPrinter::printU10ImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 348 of file PPCInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
Referenced by PPCInstPrinter().
void PPCInstPrinter::printU12ImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 355 of file PPCInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
Referenced by PPCInstPrinter().
void PPCInstPrinter::printU16ImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 370 of file PPCInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isImm(), and printOperand().
Referenced by PPCInstPrinter().
void PPCInstPrinter::printU1ImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 283 of file PPCInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
Referenced by PPCInstPrinter().
void PPCInstPrinter::printU2ImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 290 of file PPCInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
Referenced by PPCInstPrinter().
void PPCInstPrinter::printU3ImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 297 of file PPCInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
Referenced by PPCInstPrinter().
void PPCInstPrinter::printU4ImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 304 of file PPCInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
Referenced by PPCInstPrinter().
void PPCInstPrinter::printU5ImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 318 of file PPCInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
Referenced by PPCInstPrinter().
void PPCInstPrinter::printU6ImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 325 of file PPCInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
Referenced by PPCInstPrinter().
void PPCInstPrinter::printU7ImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 332 of file PPCInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
Referenced by PPCInstPrinter().
void PPCInstPrinter::printU8ImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 342 of file PPCInstPrinter.cpp.
References llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
Referenced by PPCInstPrinter().