LLVM API Documentation
#include <HexagonInstPrinter.h>
Definition at line 23 of file HexagonInstPrinter.h.
llvm::HexagonInstPrinter::HexagonInstPrinter | ( | const MCAsmInfo & | MAI, |
const MCInstrInfo & | MII, | ||
const MCRegisterInfo & | MRI | ||
) | [inline, explicit] |
Definition at line 25 of file HexagonInstPrinter.h.
const MCInstrInfo& llvm::HexagonInstPrinter::getMII | ( | ) | const [inline] |
Definition at line 70 of file HexagonInstPrinter.h.
StringRef HexagonInstPrinter::getOpcodeName | ( | unsigned | Opcode | ) | const [virtual] |
getOpcodeName - Return the name of the specified opcode enum (e.g. "MOV32ri") or empty if we can't resolve it.
Reimplemented from llvm::MCInstPrinter.
Definition at line 33 of file HexagonInstPrinter.cpp.
References llvm::MCInstrInfo::getName().
static const char* llvm::HexagonInstPrinter::getRegisterName | ( | unsigned | RegNo | ) | [static] |
Referenced by getRegName(), printFrameIndexOperand(), printMEMriOperand(), and printOperand().
StringRef HexagonInstPrinter::getRegName | ( | unsigned | RegNo | ) | const |
Definition at line 37 of file HexagonInstPrinter.cpp.
References getRegisterName().
void HexagonInstPrinter::printAbsAddrOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) | const |
Definition at line 189 of file HexagonInstPrinter.cpp.
void HexagonInstPrinter::printBranchOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) | const |
Definition at line 178 of file HexagonInstPrinter.cpp.
References llvm_unreachable.
void HexagonInstPrinter::printCallOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) | const |
Definition at line 185 of file HexagonInstPrinter.cpp.
void HexagonInstPrinter::printConstantPool | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) | const |
Definition at line 171 of file HexagonInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), and printOperand().
void HexagonInstPrinter::printExtOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) | const |
Definition at line 117 of file HexagonInstPrinter.cpp.
References llvm::HexagonMCInst::isConstExtended(), llvm::AArch64CC::MI, and printOperand().
void HexagonInstPrinter::printFrameIndexOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) | const |
Definition at line 149 of file HexagonInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), and getRegisterName().
void HexagonInstPrinter::printGlobalOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) | const |
Definition at line 157 of file HexagonInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), and printOperand().
void HexagonInstPrinter::printImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) | const |
Definition at line 104 of file HexagonInstPrinter.cpp.
References llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and llvm_unreachable.
Referenced by printOperand().
void HexagonInstPrinter::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 41 of file HexagonInstPrinter.cpp.
Referenced by printInst().
void HexagonInstPrinter::printInst | ( | const HexagonMCInst * | MI, |
raw_ostream & | O, | ||
StringRef | Annot | ||
) |
Definition at line 46 of file HexagonInstPrinter.cpp.
References llvm::MCInst::getOpcode(), llvm::HexagonMCInst::isPacketEnd(), llvm::HexagonMCInst::isPacketStart(), PacketPadding, llvm::MCInstPrinter::printAnnotation(), printInst(), printInstruction(), llvm::MCInst::setOpcode(), and llvm::HexagonMCInst::setPacketStart().
void llvm::HexagonInstPrinter::printInstruction | ( | const MCInst * | MI, |
raw_ostream & | O | ||
) |
Referenced by printInst().
void HexagonInstPrinter::printJumpTable | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) | const |
Definition at line 164 of file HexagonInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), and printOperand().
void HexagonInstPrinter::printMEMriOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) | const |
Definition at line 140 of file HexagonInstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), and getRegisterName().
void HexagonInstPrinter::printNegImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) | const |
Definition at line 130 of file HexagonInstPrinter.cpp.
References llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
void HexagonInstPrinter::printNOneImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) | const |
Definition at line 135 of file HexagonInstPrinter.cpp.
void HexagonInstPrinter::printOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) | const |
Definition at line 89 of file HexagonInstPrinter.cpp.
References llvm::MCOperand::getExpr(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), getRegisterName(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), llvm::MCOperand::isReg(), llvm_unreachable, and printImmOperand().
Referenced by printConstantPool(), printExtOperand(), printGlobalOperand(), printJumpTable(), and printSymbol().
void HexagonInstPrinter::printPredicateOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) | const |
Definition at line 193 of file HexagonInstPrinter.cpp.
void HexagonInstPrinter::printSymbol | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O, | ||
bool | hi | ||
) | const [protected] |
Definition at line 197 of file HexagonInstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::isImm(), and printOperand().
Referenced by printSymbolHi(), and printSymbolLo().
void llvm::HexagonInstPrinter::printSymbolHi | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) | const [inline] |
Definition at line 65 of file HexagonInstPrinter.h.
References printSymbol().
void llvm::HexagonInstPrinter::printSymbolLo | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) | const [inline] |
Definition at line 67 of file HexagonInstPrinter.h.
References printSymbol().
void HexagonInstPrinter::printUnsignedImmOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) | const |
Definition at line 125 of file HexagonInstPrinter.cpp.
References llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
const char HexagonInstPrinter::PacketPadding = '\t' [static, protected] |
Definition at line 78 of file HexagonInstPrinter.h.
Referenced by printInst().