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]]);
This class represents lattice values for constants.
Describe properties that are true of each instruction in the target description file.
Interface to description of machine instruction set.
StringRef getName(unsigned Opcode) const
Returns the name for the instructions with the given opcode.
void InitMCInstrInfo(const MCInstrDesc *D, const unsigned *NI, const char *ND, unsigned NO)
Initialize MCInstrInfo, called by TableGen auto-generated routines.
static GCRegistry::Add< StatepointGC > D("statepoint-example", "an example strategy for statepoint")
unsigned getNumOpcodes() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
StringRef - Represent a constant reference to a string, i.e.