14 #ifndef LLVM_MC_MCINSTRINFO_H
15 #define LLVM_MC_MCINSTRINFO_H
26 const unsigned *InstrNameIndices;
27 const char *InstrNameData;
36 InstrNameIndices = NI;
46 assert(Opcode < NumOpcodes &&
"Invalid opcode!");
51 const char *
getName(
unsigned Opcode)
const {
52 assert(Opcode < NumOpcodes &&
"Invalid opcode!");
53 return &InstrNameData[InstrNameIndices[Opcode]];
Describe properties that are true of each instruction in the target description file.
const char * getName(unsigned Opcode) const
Returns the name for the instructions with the given opcode.
Interface to description of machine instruction set.
void InitMCInstrInfo(const MCInstrDesc *D, const unsigned *NI, const char *ND, unsigned NO)
Initialize MCInstrInfo, called by TableGen auto-generated routines.
unsigned getNumOpcodes() const