LLVM: llvm::MCInstrInfo Class Reference (original) (raw)
Interface to description of machine instruction set. More...
#include "[llvm/MC/MCInstrInfo.h](MCInstrInfo%5F8h%5Fsource.html)"
| Public Types | |
|---|---|
| using | ComplexDeprecationPredicate |
| Public Member Functions | |
|---|---|
| void | InitMCInstrInfo (const MCInstrDesc *D, const unsigned *NI, const char *ND, const uint8_t *DF, const ComplexDeprecationPredicate *CDI, unsigned NO, const int16_t *RCHWTables=nullptr, int16_t NumRegClassByHwMode=0) |
| Initialize MCInstrInfo, called by TableGen auto-generated routines. | |
| unsigned | getNumOpcodes () const |
| const int16_t * | getRegClassByHwModeTable (unsigned ModeId) const |
| int16_t | getOpRegClassID (const MCOperandInfo &OpInfo, unsigned HwModeId) const |
| Return the ID of the register class to use for OpInfo, for the active HwMode HwModeId. | |
| const MCInstrDesc & | get (unsigned Opcode) const |
| Return the machine instruction descriptor that corresponds to the specified instruction opcode. | |
| StringRef | getName (unsigned Opcode) const |
| Returns the name for the instructions with the given opcode. | |
| LLVM_ABI bool | getDeprecatedInfo (MCInst &MI, const MCSubtargetInfo &STI, std::string &Info) const |
| Returns true if a certain instruction is deprecated and if so returns the reason in Info. |
| Protected Attributes | |
|---|---|
| const int16_t * | RegClassByHwModeTables |
| int16_t | NumRegClassByHwModes |
Interface to description of machine instruction set.
Definition at line 27 of file MCInstrInfo.h.
◆ ComplexDeprecationPredicate
Initial value:
std::string &)
Instances of this class represent a single low-level machine instruction.
Generic base class for all target subtargets.
Definition at line 29 of file MCInstrInfo.h.
◆ get()
Return the machine instruction descriptor that corresponds to the specified instruction opcode.
Definition at line 90 of file MCInstrInfo.h.
References assert().
Referenced by llvm::CombinerHelper::applyCombineMulToShl(), llvm::MachineIRBuilder::buildInstrNoInsert(), llvm::MCSchedModel::computeInstrLatency(), llvm::TargetInstrInfo::createPHIDestinationCopy(), llvm::TargetInstrInfo::createPHISourceCopy(), DecodePredicateOperand(), llvm::NVPTXFrameLowering::emitPrologue(), expandPseudoVFMK(), llvm::TargetInstrInfo::foldMemoryOperand(), getCondFromBranch(), llvm::HexagonMCInstrInfo::getDesc(), llvm::LLVMDisasmContext::getInstrInfo(), llvm::TargetInstrInfo::getInstrLatency(), llvm::AMDGPUDisassembler::getMCII(), llvm::TargetInstrInfo::getOperandLatency(), llvm::MCSchedModel::getReciprocalThroughput(), llvm::HexagonMCInstrInfo::getType(), hasType(), llvm::ARM_MC::isCPSRDefined(), isPCRel32Branch(), llvm::ARM_MC::isPredicated(), isPrefix(), isRIPRelative(), llvm::HexagonMCInstrInfo::isSolo(), llvm::RISCVLegalizerInfo::legalizeCustom(), llvm::TargetInstrInfo::lowerCopy(), printMasking(), llvm::AMDGPU::supportsScaleOffset(), and llvm::LegalizerInfo::verify().
◆ getDeprecatedInfo()
◆ getName()
◆ getNumOpcodes()
| unsigned llvm::MCInstrInfo::getNumOpcodes ( ) const | inline |
|---|
◆ getOpRegClassID()
◆ getRegClassByHwModeTable()
| const int16_t * llvm::MCInstrInfo::getRegClassByHwModeTable ( unsigned ModeId) const | inline |
|---|
◆ InitMCInstrInfo()
◆ NumRegClassByHwModes
| int16_t llvm::MCInstrInfo::NumRegClassByHwModes | protected |
|---|
◆ RegClassByHwModeTables
| const int16_t* llvm::MCInstrInfo::RegClassByHwModeTables | protected |
|---|
The documentation for this class was generated from the following files:
- include/llvm/MC/MCInstrInfo.h
- lib/MC/MCInstrInfo.cpp