class MCInstrInfo

Declaration

class MCInstrInfo { /* full declaration omitted */ };

Description

Interface to description of machine instruction set.

Declared at: llvm/include/llvm/MC/MCInstrInfo.h:26

Member Variables

private const llvm::MCInstrDesc* Desc
private const unsigned int* InstrNameIndices
private const char* InstrNameData
private const uint8_t* DeprecatedFeatures
private const llvm::MCInstrInfo:: ComplexDeprecationPredicate* ComplexDeprecationInfos
private unsigned int NumOpcodes

Method Overview

  • public void InitMCInstrInfo(const llvm::MCInstrDesc * D, const unsigned int * NI, const char * ND, const uint8_t * DF, const llvm::MCInstrInfo::ComplexDeprecationPredicate * CDI, unsigned int NO)
  • public const llvm::MCInstrDesc & get(unsigned int Opcode) const
  • public bool getDeprecatedInfo(llvm::MCInst & MI, const llvm::MCSubtargetInfo & STI, std::string & Info) const
  • public llvm::StringRef getName(unsigned int Opcode) const
  • public unsigned int getNumOpcodes() const

Methods

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

Description

Initialize MCInstrInfo, called by TableGen auto-generated routines. *DO NOT USE*.

Declared at: llvm/include/llvm/MC/MCInstrInfo.h:48

Parameters

const llvm::MCInstrDesc* D
const unsigned int* NI
const char* ND
const uint8_t* DF
const llvm::MCInstrInfo:: ComplexDeprecationPredicate* CDI
unsigned int NO

const llvm::MCInstrDesc& get(
    unsigned int Opcode) const

Description

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

Declared at: llvm/include/llvm/MC/MCInstrInfo.h:63

Parameters

unsigned int Opcode

bool getDeprecatedInfo(
    llvm::MCInst& MI,
    const llvm::MCSubtargetInfo& STI,
    std::string& Info) const

Description

Returns true if a certain instruction is deprecated and if so returns the reason in \p Info.

Declared at: llvm/include/llvm/MC/MCInstrInfo.h:76

Parameters

llvm::MCInst& MI
const llvm::MCSubtargetInfo& STI
std::string& Info

llvm::StringRef getName(unsigned int Opcode) const

Description

Returns the name for the instructions with the given opcode.

Declared at: llvm/include/llvm/MC/MCInstrInfo.h:69

Parameters

unsigned int Opcode

unsigned int getNumOpcodes() const

Declared at: llvm/include/llvm/MC/MCInstrInfo.h:59