LLVM
8.0.1
|
#include "Target/Sparc/InstPrinter/SparcInstPrinter.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 21 of file SparcInstPrinter.h.
|
inline |
Definition at line 23 of file SparcInstPrinter.h.
References getRegisterName(), isV9(), MI, llvm::RISCVFenceField::O, printAliasInstr(), printCCOperand(), printCustomAliasOperand(), printGetPCX(), printInst(), printInstruction(), printMembarTag(), printMemOperand(), printOperand(), printRegName(), and printSparcAliasInstr().
bool SparcInstPrinter::isV9 | ( | const MCSubtargetInfo & | STI | ) | const |
Definition at line 38 of file SparcInstPrinter.cpp.
References llvm::MCSubtargetInfo::getFeatureBits().
Referenced by SparcInstPrinter().
bool llvm::SparcInstPrinter::printAliasInstr | ( | const MCInst * | MI, |
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Referenced by SparcInstPrinter().
void SparcInstPrinter::printCCOperand | ( | const MCInst * | MI, |
int | opNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | OS | ||
) |
Definition at line 163 of file SparcInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), and llvm::SPARCCondCodeToString().
Referenced by SparcInstPrinter().
void llvm::SparcInstPrinter::printCustomAliasOperand | ( | const MCInst * | MI, |
unsigned | OpIdx, | ||
unsigned | PrintMethodIdx, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Referenced by SparcInstPrinter().
bool SparcInstPrinter::printGetPCX | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | OS | ||
) |
Definition at line 192 of file SparcInstPrinter.cpp.
References llvm_unreachable.
Referenced by SparcInstPrinter().
|
overridevirtual |
Print the specified MCInst to the specified raw_ostream.
Implements llvm::MCInstPrinter.
Definition at line 47 of file SparcInstPrinter.cpp.
Referenced by SparcInstPrinter().
void llvm::SparcInstPrinter::printInstruction | ( | const MCInst * | MI, |
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Referenced by SparcInstPrinter().
void SparcInstPrinter::printMembarTag | ( | const MCInst * | MI, |
int | opNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | O | ||
) |
Definition at line 199 of file SparcInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and TagNames.
Referenced by SparcInstPrinter().
void SparcInstPrinter::printMemOperand | ( | const MCInst * | MI, |
int | opNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | OS, | ||
const char * | Modifier = nullptr |
||
) |
Definition at line 140 of file SparcInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCOperand::isImm(), llvm::MCOperand::isReg(), and printOperand().
Referenced by SparcInstPrinter().
void SparcInstPrinter::printOperand | ( | const MCInst * | MI, |
int | opNum, | ||
const MCSubtargetInfo & | STI, | ||
raw_ostream & | OS | ||
) |
Definition at line 108 of file SparcInstPrinter.cpp.
References assert(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), llvm::MCOperand::isReg(), and llvm::MCExpr::print().
Referenced by SparcInstPrinter().
|
overridevirtual |
Print the assembler register name.
Reimplemented from llvm::MCInstPrinter.
Definition at line 42 of file SparcInstPrinter.cpp.
References getRegisterName(), and llvm::StringRef::lower().
Referenced by SparcInstPrinter().
bool SparcInstPrinter::printSparcAliasInstr | ( | const MCInst * | MI, |
const MCSubtargetInfo & | STI, | ||
raw_ostream & | OS | ||
) |
Definition at line 54 of file SparcInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getNumOperands(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCOperand::isImm(), llvm::MCOperand::isReg(), printMemOperand(), and printOperand().
Referenced by SparcInstPrinter().