13#ifndef LLVM_MC_MCINSTRINFO_H
14#define LLVM_MC_MCINSTRINFO_H
34 const unsigned *InstrNameIndices;
35 const char *InstrNameData;
39 const uint8_t *DeprecatedFeatures;
51 LastDesc =
D + NO - 1;
52 InstrNameIndices = NI;
54 DeprecatedFeatures =
DF;
55 ComplexDeprecationInfos = CDI;
64 assert(Opcode < NumOpcodes &&
"Invalid opcode!");
66 return *(LastDesc - Opcode);
71 assert(Opcode < NumOpcodes &&
"Invalid opcode!");
72 return StringRef(&InstrNameData[InstrNameIndices[Opcode]]);
78 std::string &
Info)
const;
static GCRegistry::Add< StatepointGC > D("statepoint-example", "an example strategy for statepoint")
Analysis containing CSE Info
static RegisterPass< DebugifyFunctionPass > DF("debugify-function", "Attach debug info to a function")
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Instances of this class represent a single low-level machine instruction.
Describe properties that are true of each instruction in the target description file.
Interface to description of machine instruction set.
const MCInstrDesc & get(unsigned Opcode) const
Return the machine instruction descriptor that corresponds to the specified instruction opcode.
bool(*)(MCInst &, const MCSubtargetInfo &, std::string &) ComplexDeprecationPredicate
bool getDeprecatedInfo(MCInst &MI, const MCSubtargetInfo &STI, std::string &Info) const
Returns true if a certain instruction is deprecated and if so returns the reason in Info.
unsigned getNumOpcodes() const
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, const uint8_t *DF, const ComplexDeprecationPredicate *CDI, unsigned NO)
Initialize MCInstrInfo, called by TableGen auto-generated routines.
Generic base class for all target subtargets.
StringRef - Represent a constant reference to a string, i.e.
This is an optimization pass for GlobalISel generic memory operations.