LLVM
8.0.1
|
#include "Target/Lanai/InstPrinter/LanaiInstPrinter.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 LanaiInstPrinter.h.
|
inline |
Definition at line 24 of file LanaiInstPrinter.h.
References getRegisterName(), MI, llvm::RISCVFenceField::O, printAliasInstr(), printAluOperand(), printCCOperand(), printCustomAliasOperand(), printHi16AndImmOperand(), printHi16ImmOperand(), printInst(), printInstruction(), printLo16AndImmOperand(), printMemImmOperand(), printMemRiOperand(), printMemRrOperand(), printMemSplsOperand(), printOperand(), printPredicateOperand(), and printRegName().
Referenced by decIncOperator(), LanaiInstPrinter(), printMemoryBaseRegister(), printMemRrOperand(), printOperand(), and printRegName().
bool llvm::LanaiInstPrinter::printAliasInstr | ( | const MCInst * | MI, |
raw_ostream & | OS | ||
) |
Referenced by LanaiInstPrinter(), and printInst().
void llvm::LanaiInstPrinter::printAluOperand | ( | const MCInst * | MI, |
int | OpNo, | ||
raw_ostream & | O | ||
) |
Referenced by LanaiInstPrinter().
void LanaiInstPrinter::printCCOperand | ( | const MCInst * | MI, |
int | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 285 of file LanaiInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::LPCC::lanaiCondCodeToString(), and llvm::LPCC::UNKNOWN.
Referenced by LanaiInstPrinter().
void llvm::LanaiInstPrinter::printCustomAliasOperand | ( | const MCInst * | MI, |
unsigned | OpIdx, | ||
unsigned | PrintMethodIdx, | ||
raw_ostream & | O | ||
) |
Referenced by LanaiInstPrinter().
void LanaiInstPrinter::printHi16AndImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 186 of file LanaiInstPrinter.cpp.
References assert(), llvm::MCInstPrinter::formatHex(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), llvm::MCInstPrinter::MAI, and llvm::MCExpr::print().
Referenced by LanaiInstPrinter().
void LanaiInstPrinter::printHi16ImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 174 of file LanaiInstPrinter.cpp.
References assert(), llvm::MCInstPrinter::formatHex(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), llvm::MCInstPrinter::MAI, and llvm::MCExpr::print().
Referenced by LanaiInstPrinter().
|
overridevirtual |
Print the specified MCInst to the specified raw_ostream.
Implements llvm::MCInstPrinter.
Definition at line 138 of file LanaiInstPrinter.cpp.
References printAliasInstr(), llvm::MCInstPrinter::printAnnotation(), and printInstruction().
Referenced by LanaiInstPrinter(), and printRegName().
void llvm::LanaiInstPrinter::printInstruction | ( | const MCInst * | MI, |
raw_ostream & | O | ||
) |
Referenced by LanaiInstPrinter(), and printInst().
void LanaiInstPrinter::printLo16AndImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 198 of file LanaiInstPrinter.cpp.
References assert(), llvm::MCInstPrinter::formatHex(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), llvm::MCInstPrinter::MAI, and llvm::MCExpr::print().
Referenced by LanaiInstPrinter().
void LanaiInstPrinter::printMemImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 160 of file LanaiInstPrinter.cpp.
References assert(), llvm::MCInstPrinter::formatHex(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), llvm::MCInstPrinter::MAI, and llvm::MCExpr::print().
Referenced by LanaiInstPrinter().
void LanaiInstPrinter::printMemRiOperand | ( | const MCInst * | MI, |
int | OpNo, | ||
raw_ostream & | O, | ||
const char * | Modifier = nullptr |
||
) |
Definition at line 234 of file LanaiInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCInstPrinter::MAI, and printMemoryBaseRegister().
Referenced by LanaiInstPrinter().
void LanaiInstPrinter::printMemRrOperand | ( | const MCInst * | MI, |
int | OpNo, | ||
raw_ostream & | O, | ||
const char * | Modifier = nullptr |
||
) |
Definition at line 249 of file LanaiInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), getRegisterName(), llvm::LPAC::isPostOp(), llvm::LPAC::isPreOp(), llvm::MCOperand::isReg(), and llvm::LPAC::lanaiAluCodeToString().
Referenced by LanaiInstPrinter().
void LanaiInstPrinter::printMemSplsOperand | ( | const MCInst * | MI, |
int | OpNo, | ||
raw_ostream & | O, | ||
const char * | Modifier = nullptr |
||
) |
Definition at line 270 of file LanaiInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCInstPrinter::MAI, and printMemoryBaseRegister().
Referenced by LanaiInstPrinter().
void LanaiInstPrinter::printOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O, | ||
const char * | Modifier = nullptr |
||
) |
Definition at line 146 of file LanaiInstPrinter.cpp.
References assert(), llvm::MCInstPrinter::formatHex(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), getRegisterName(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), llvm::MCOperand::isReg(), llvm::MCInstPrinter::MAI, and llvm::MCExpr::print().
Referenced by LanaiInstPrinter(), and printRegName().
void LanaiInstPrinter::printPredicateOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) |
Definition at line 296 of file LanaiInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::LPCC::ICC_T, llvm::LPCC::lanaiCondCodeToString(), and llvm::LPCC::UNKNOWN.
Referenced by LanaiInstPrinter().
|
overridevirtual |
Print the assembler register name.
Reimplemented from llvm::MCInstPrinter.
Definition at line 32 of file LanaiInstPrinter.cpp.
References getRegisterName(), llvm::StringRef::lower(), MI, printInst(), and printOperand().
Referenced by LanaiInstPrinter().