LLVM  14.0.0git
Public Types | Public Member Functions | List of all members
llvm::MCInstrInfo Class Reference

Interface to description of machine instruction set. More...

#include "llvm/MC/MCInstrInfo.h"

Inheritance diagram for llvm::MCInstrInfo:
Inheritance graph
[legend]

Public Types

using ComplexDeprecationPredicate = bool(*)(MCInst &, const MCSubtargetInfo &, std::string &)
 

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. More...
 
unsigned getNumOpcodes () const
 
const MCInstrDescget (unsigned Opcode) const
 Return the machine instruction descriptor that corresponds to the specified instruction opcode. More...
 
StringRef getName (unsigned Opcode) const
 Returns the name for the instructions with the given opcode. More...
 
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. More...
 

Detailed Description

Interface to description of machine instruction set.

Definition at line 25 of file MCInstrInfo.h.

Member Typedef Documentation

◆ ComplexDeprecationPredicate

Definition at line 29 of file MCInstrInfo.h.

Member Function Documentation

◆ get()

const MCInstrDesc& llvm::MCInstrInfo::get ( unsigned  Opcode) const
inline

Return the machine instruction descriptor that corresponds to the specified instruction opcode.

Definition at line 62 of file MCInstrInfo.h.

References assert().

Referenced by llvm::CombinerHelper::applyCombineExtendingLoads(), llvm::CombinerHelper::applyCombineMulToShl(), llvm::CombinerHelper::applyFunnelShiftToRotate(), llvm::CombinerHelper::applyNotCmp(), llvm::CombinerHelper::applyXorOfAndWithSameReg(), llvm::X86_MC::X86MCInstrAnalysis::clearsSuperRegisters(), llvm::TargetSchedModel::computeInstrLatency(), llvm::MCSchedModel::computeInstrLatency(), llvm::ScheduleDAGSDNodes::computeOperandLatency(), llvm::TargetSchedModel::computeReciprocalThroughput(), llvm::FastISel::constrainOperandRegClass(), llvm::SwiftErrorValueTracking::createEntriesInEntryBlock(), llvm::PeelingModuloScheduleExpander::CreateLCSSAExitingBlock(), llvm::TargetInstrInfo::createPHIDestinationCopy(), llvm::TargetInstrInfo::createPHISourceCopy(), llvm::InstrEmitter::EmitDbgInstrRef(), llvm::InstrEmitter::EmitDbgLabel(), llvm::InstrEmitter::EmitDbgNoLocation(), llvm::InstrEmitter::EmitDbgValue(), llvm::InstrEmitter::EmitDbgValueFromSingleOp(), llvm::M68kFrameLowering::emitEpilogue(), llvm::NVPTXFrameLowering::emitPrologue(), llvm::M68kFrameLowering::emitPrologue(), llvm::M68kFrameLowering::emitSPUpdate(), llvm::CSKYMCCodeEmitter::encodeInstruction(), llvm::MipsMCCodeEmitter::encodeInstruction(), llvm::MSP430MCCodeEmitter::encodeInstruction(), llvm::X86_MC::X86MCInstrAnalysis::evaluateBranch(), llvm::X86_MC::X86MCInstrAnalysis::evaluateMemoryOperandAddress(), expandPseudoVFMK(), llvm::FastISel::fastEmitInst_(), llvm::FastISel::fastEmitInst_extractsubreg(), llvm::FastISel::fastEmitInst_f(), llvm::FastISel::fastEmitInst_i(), llvm::FastISel::fastEmitInst_r(), llvm::FastISel::fastEmitInst_ri(), llvm::FastISel::fastEmitInst_rii(), llvm::FastISel::fastEmitInst_rr(), llvm::FastISel::fastEmitInst_rri(), llvm::FastISel::fastEmitInst_rrr(), getCondFromBranch(), llvm::HexagonMCInstrInfo::getDesc(), llvm::LLVMDisasmContext::getInstrInfo(), llvm::TargetInstrInfo::getInstrLatency(), llvm::PPCMCCodeEmitter::getInstSizeInBytes(), llvm::PPCMCCodeEmitter::getMachineOpValue(), llvm::AMDGPUDisassembler::getMCII(), llvm::TargetInstrInfo::getOperandLatency(), llvm::MCSchedModel::getReciprocalThroughput(), llvm::HexagonMCInstrInfo::getType(), llvm::ResourcePriorityQueue::initNumRegDefsLeft(), llvm::MCInstrAnalysis::isBranch(), llvm::MCInstrAnalysis::isCall(), llvm::MCInstrAnalysis::isConditionalBranch(), llvm::ARM_MC::isCPSRDefined(), llvm::MCInstrAnalysis::isIndirectBranch(), isPCRel32Branch(), llvm::ARM_MC::isPredicated(), isPrefix(), llvm::ResourcePriorityQueue::isResourceAvailable(), llvm::MCInstrAnalysis::isReturn(), isRIPRelative(), llvm::HexagonMCInstrInfo::isSolo(), llvm::MCInstrAnalysis::isTerminator(), llvm::MCInstrAnalysis::isUnconditionalBranch(), llvm::LegalizerHelper::lowerVectorReduction(), llvm::SelectionDAGISel::mayRaiseFPException(), llvm::PeelingModuloScheduleExpander::moveStageBetweenBlocks(), llvm::WebAssemblyInstPrinter::printInst(), llvm::X86InstPrinterCommon::printInstFlags(), printMasking(), llvm::WebAssemblyInstPrinter::printOperand(), llvm::ARMInstPrinter::printOperand(), llvm::PPCInstPrinter::printOperand(), llvm::X86ATTInstPrinter::printVecCompareInstr(), llvm::X86IntelInstPrinter::printVecCompareInstr(), llvm::SwiftErrorValueTracking::propagateVRegs(), llvm::ResourcePriorityQueue::reserveResources(), llvm::M68kFrameLowering::restoreCalleeSavedRegisters(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::SelectionDAGISel::SelectCodeCommon(), llvm::M68kFrameLowering::spillCalleeSavedRegisters(), llvm::ResourcePriorityQueue::SUSchedulingCost(), llvm::WebAssemblyAsmTypeCheck::typeCheck(), llvm::LegalizerInfo::verify(), llvm::RISCVInstrInfo::verifyInstruction(), and llvm::LegalizerHelper::widenScalar().

◆ getDeprecatedInfo()

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 Info, and MI.

◆ getName()

StringRef llvm::MCInstrInfo::getName ( unsigned  Opcode) const
inline

Returns the name for the instructions with the given opcode.

Definition at line 68 of file MCInstrInfo.h.

References assert().

Referenced by llvm::createMemLibcall(), fuseInstructionPair(), getInstructionID(), llvm::HexagonMCInstrInfo::getName(), llvm::MCInstPrinter::getOpcodeName(), and llvm::LegalizerInfo::verify().

◆ getNumOpcodes()

unsigned llvm::MCInstrInfo::getNumOpcodes ( ) const
inline

Definition at line 58 of file MCInstrInfo.h.

◆ InitMCInstrInfo()

void llvm::MCInstrInfo::InitMCInstrInfo ( const MCInstrDesc D,
const unsigned *  NI,
const char *  ND,
const uint8_t *  DF,
const ComplexDeprecationPredicate CDI,
unsigned  NO 
)
inline

Initialize MCInstrInfo, called by TableGen auto-generated routines.

DO NOT USE.

Definition at line 47 of file MCInstrInfo.h.

References D, and DF.


The documentation for this class was generated from the following files: