14 #ifndef LLVM_MC_MCINSTRINFO_H
15 #define LLVM_MC_MCINSTRINFO_H
28 const unsigned *InstrNameIndices;
29 const char *InstrNameData;
38 InstrNameIndices = NI;
49 assert(Opcode < NumOpcodes &&
"Invalid opcode!");
54 const char *
getName(
unsigned Opcode)
const {
55 assert(Opcode < NumOpcodes &&
"Invalid opcode!");
56 return &InstrNameData[InstrNameIndices[Opcode]];
const char * getName(unsigned Opcode) const
getName - Returns the name for the instructions with the given opcode.
void InitMCInstrInfo(const MCInstrDesc *D, const unsigned *NI, const char *ND, unsigned NO)
unsigned getNumOpcodes() const