LLVM API Documentation
#include <NVPTXInstPrinter.h>
Public Member Functions | |
NVPTXInstPrinter (const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI, const MCSubtargetInfo &STI) | |
void | printRegName (raw_ostream &OS, unsigned RegNo) const override |
printRegName - Print the assembler register name. | |
void | printInst (const MCInst *MI, raw_ostream &OS, StringRef Annot) override |
void | printInstruction (const MCInst *MI, raw_ostream &O) |
void | printOperand (const MCInst *MI, unsigned OpNo, raw_ostream &O) |
void | printCvtMode (const MCInst *MI, int OpNum, raw_ostream &O, const char *Modifier=nullptr) |
void | printCmpMode (const MCInst *MI, int OpNum, raw_ostream &O, const char *Modifier=nullptr) |
void | printLdStCode (const MCInst *MI, int OpNum, raw_ostream &O, const char *Modifier=nullptr) |
void | printMemOperand (const MCInst *MI, int OpNum, raw_ostream &O, const char *Modifier=nullptr) |
void | printProtoIdent (const MCInst *MI, int OpNum, raw_ostream &O, const char *Modifier=nullptr) |
Static Public Member Functions | |
static const char * | getRegisterName (unsigned RegNo) |
Definition at line 25 of file NVPTXInstPrinter.h.
NVPTXInstPrinter::NVPTXInstPrinter | ( | const MCAsmInfo & | MAI, |
const MCInstrInfo & | MII, | ||
const MCRegisterInfo & | MRI, | ||
const MCSubtargetInfo & | STI | ||
) |
Definition at line 32 of file NVPTXInstPrinter.cpp.
References llvm::MCSubtargetInfo::getFeatureBits(), and llvm::MCInstPrinter::setAvailableFeatures().
static const char* llvm::NVPTXInstPrinter::getRegisterName | ( | unsigned | RegNo | ) | [static] |
Referenced by printRegName().
void NVPTXInstPrinter::printCmpMode | ( | const MCInst * | MI, |
int | OpNum, | ||
raw_ostream & | O, | ||
const char * | Modifier = nullptr |
||
) |
Definition at line 146 of file NVPTXInstPrinter.cpp.
References llvm::NVPTX::PTXCmpMode::BASE_MASK, llvm::NVPTX::PTXCmpMode::EQ, llvm::NVPTX::PTXCmpMode::EQU, llvm::NVPTX::PTXCmpMode::FTZ_FLAG, llvm::NVPTX::PTXCmpMode::GE, llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::NVPTX::PTXCmpMode::GEU, llvm::NVPTX::PTXCmpMode::GT, llvm::NVPTX::PTXCmpMode::GTU, llvm::NVPTX::PTXCmpMode::HI, llvm::NVPTX::PTXCmpMode::HS, llvm::NVPTX::PTXCmpMode::LE, llvm::NVPTX::PTXCmpMode::LEU, llvm_unreachable, llvm::NVPTX::PTXCmpMode::LO, llvm::NVPTX::PTXCmpMode::LS, llvm::NVPTX::PTXCmpMode::LT, llvm::NVPTX::PTXCmpMode::LTU, llvm::NVPTX::PTXCmpMode::NE, llvm::NVPTX::PTXCmpMode::NEU, llvm::NVPTX::PTXCmpMode::NotANumber, llvm::NVPTX::PTXCmpMode::NUM, and llvm::LibFunc::strcmp.
void NVPTXInstPrinter::printCvtMode | ( | const MCInst * | MI, |
int | OpNum, | ||
raw_ostream & | O, | ||
const char * | Modifier = nullptr |
||
) |
Definition at line 96 of file NVPTXInstPrinter.cpp.
References llvm::NVPTX::PTXCvtMode::BASE_MASK, llvm::NVPTX::PTXCvtMode::FTZ_FLAG, llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm_unreachable, llvm::NVPTX::PTXCvtMode::NONE, llvm::NVPTX::PTXCvtMode::RM, llvm::NVPTX::PTXCvtMode::RMI, llvm::NVPTX::PTXCvtMode::RN, llvm::NVPTX::PTXCvtMode::RNI, llvm::NVPTX::PTXCvtMode::RP, llvm::NVPTX::PTXCvtMode::RPI, llvm::NVPTX::PTXCvtMode::RZ, llvm::NVPTX::PTXCvtMode::RZI, llvm::NVPTX::PTXCvtMode::SAT_FLAG, and llvm::LibFunc::strcmp.
void NVPTXInstPrinter::printInst | ( | const MCInst * | MI, |
raw_ostream & | OS, | ||
StringRef | Annot | ||
) | [override, virtual] |
printInst - Print the specified MCInst to the specified raw_ostream.
Implements llvm::MCInstPrinter.
Definition at line 74 of file NVPTXInstPrinter.cpp.
References llvm::MCInstPrinter::printAnnotation(), and printInstruction().
void llvm::NVPTXInstPrinter::printInstruction | ( | const MCInst * | MI, |
raw_ostream & | O | ||
) |
Referenced by printInst().
void NVPTXInstPrinter::printLdStCode | ( | const MCInst * | MI, |
int | OpNum, | ||
raw_ostream & | O, | ||
const char * | Modifier = nullptr |
||
) |
Definition at line 219 of file NVPTXInstPrinter.cpp.
References llvm::NVPTX::PTXLdStInstCode::CONSTANT, llvm::NVPTX::PTXLdStInstCode::GENERIC, llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::NVPTX::PTXLdStInstCode::GLOBAL, llvm_unreachable, llvm::NVPTX::PTXLdStInstCode::LOCAL, llvm::NVPTX::PTXLdStInstCode::PARAM, llvm::NVPTX::PTXLdStInstCode::SHARED, llvm::NVPTX::PTXLdStInstCode::Signed, llvm::LibFunc::strcmp, llvm::NVPTX::PTXLdStInstCode::Unsigned, llvm::NVPTX::PTXLdStInstCode::V2, and llvm::NVPTX::PTXLdStInstCode::V4.
void NVPTXInstPrinter::printMemOperand | ( | const MCInst * | MI, |
int | OpNum, | ||
raw_ostream & | O, | ||
const char * | Modifier = nullptr |
||
) |
Definition at line 267 of file NVPTXInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isImm(), printOperand(), and llvm::LibFunc::strcmp.
void NVPTXInstPrinter::printOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) |
Definition at line 82 of file NVPTXInstPrinter.cpp.
References llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), llvm::MCOperand::isReg(), llvm::MCInstPrinter::markup(), and printRegName().
Referenced by printMemOperand().
void NVPTXInstPrinter::printProtoIdent | ( | const MCInst * | MI, |
int | OpNum, | ||
raw_ostream & | O, | ||
const char * | Modifier = nullptr |
||
) |
Definition at line 283 of file NVPTXInstPrinter.cpp.
References llvm::MCOperand::getExpr(), llvm::MCSymbol::getName(), llvm::MCInst::getOperand(), and llvm::MCOperand::isExpr().
void NVPTXInstPrinter::printRegName | ( | raw_ostream & | OS, |
unsigned | RegNo | ||
) | const [override, virtual] |
printRegName - Print the assembler register name.
Reimplemented from llvm::MCInstPrinter.
Definition at line 39 of file NVPTXInstPrinter.cpp.
References getRegisterName(), and llvm::report_fatal_error().
Referenced by printOperand().