LLVM 22.0.0git
|
Interface to description of machine instruction set. More...
#include "llvm/MC/MCInstrInfo.h"
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) |
Initialize MCInstrInfo, called by TableGen auto-generated routines. | |
unsigned | getNumOpcodes () const |
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 . |
Interface to description of machine instruction set.
Definition at line 27 of file MCInstrInfo.h.
Definition at line 29 of file MCInstrInfo.h.
|
inline |
Return the machine instruction descriptor that corresponds to the specified instruction opcode.
Definition at line 64 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().
bool MCInstrInfo::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
.
Definition at line 15 of file MCInstrInfo.cpp.
References llvm::MCSubtargetInfo::getFeatureBits(), and MI.
Returns the name for the instructions with the given opcode.
Definition at line 71 of file MCInstrInfo.h.
References assert().
Referenced by createAtomicLibcall(), llvm::createMemLibcall(), llvm::fuseInstructionPair(), getInstructionID(), llvm::HexagonMCInstrInfo::getName(), and llvm::LegalizerInfo::verify().
|
inline |
Definition at line 60 of file MCInstrInfo.h.
|
inline |
Initialize MCInstrInfo, called by TableGen auto-generated routines.
DO NOT USE.
Definition at line 49 of file MCInstrInfo.h.