LLVM
8.0.1
|
#include "Target/RISCV/InstPrinter/RISCVInstPrinter.h"
Static Public Member Functions | |
static const char * | getRegisterName (unsigned RegNo, unsigned AltIdx=RISCV::ABIRegAltName) |
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 23 of file RISCVInstPrinter.h.
|
inline |
Definition at line 25 of file RISCVInstPrinter.h.
References getRegisterName(), MI, llvm::RISCVFenceField::O, printAliasInstr(), printCSRSystemRegister(), printCustomAliasOperand(), printFenceArg(), printFRMArg(), printInst(), printInstruction(), printOperand(), and printRegName().
|
static |
Referenced by printRegName(), and RISCVInstPrinter().
bool llvm::RISCVInstPrinter::printAliasInstr | ( | const MCInst * | MI, |
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Referenced by printInst(), and RISCVInstPrinter().
void RISCVInstPrinter::printCSRSystemRegister | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 81 of file RISCVInstPrinter.cpp.
References llvm::MCSubtargetInfo::getFeatureBits(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::AArch64SysReg::lookupSysRegByEncoding().
Referenced by RISCVInstPrinter().
void llvm::RISCVInstPrinter::printCustomAliasOperand | ( | const MCInst * | MI, |
unsigned | OpIdx, | ||
unsigned | PrintMethodIdx, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Referenced by RISCVInstPrinter().
void RISCVInstPrinter::printFenceArg | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 92 of file RISCVInstPrinter.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::RISCVFenceField::I, llvm::RISCVFenceField::O, llvm::RISCVFenceField::R, and llvm::RISCVFenceField::W.
Referenced by RISCVInstPrinter().
void RISCVInstPrinter::printFRMArg | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 110 of file RISCVInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::RISCVFPRndMode::roundingModeToString().
Referenced by RISCVInstPrinter().
|
overridevirtual |
Print the specified MCInst to the specified raw_ostream.
Implements llvm::MCInstPrinter.
Definition at line 43 of file RISCVInstPrinter.cpp.
References MI, llvm::MCInstPrinter::MRI, NoAliases, printAliasInstr(), llvm::MCInstPrinter::printAnnotation(), and printInstruction().
Referenced by RISCVInstPrinter().
void llvm::RISCVInstPrinter::printInstruction | ( | const MCInst * | MI, |
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Referenced by printInst(), and RISCVInstPrinter().
void RISCVInstPrinter::printOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O, | ||
const char * | Modifier = nullptr |
||
) |
Definition at line 61 of file RISCVInstPrinter.cpp.
References assert(), 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::MCExpr::print(), and printRegName().
Referenced by RISCVInstPrinter().
|
overridevirtual |
Print the assembler register name.
Reimplemented from llvm::MCInstPrinter.
Definition at line 57 of file RISCVInstPrinter.cpp.
References getRegisterName().
Referenced by printOperand(), and RISCVInstPrinter().