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!");
52 assert(Opcode < NumOpcodes &&
"Invalid opcode!");
53 return StringRef(&InstrNameData[InstrNameIndices[Opcode]]);
Describe properties that are true of each instruction in the target description file.
static GCRegistry::Add< StatepointGC > D("statepoint-example","an example strategy for statepoint")
StringRef 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
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
StringRef - Represent a constant reference to a string, i.e.