Go to the documentation of this file.
13 #ifndef LLVM_MC_MCINSTRINFO_H
14 #define LLVM_MC_MCINSTRINFO_H
22 class MCSubtargetInfo;
34 const unsigned *InstrNameIndices;
35 const char *InstrNameData;
39 const uint8_t *DeprecatedFeatures;
52 InstrNameIndices = NI;
54 DeprecatedFeatures =
DF;
55 ComplexDeprecationInfos = CDI;
64 assert(Opcode < NumOpcodes &&
"Invalid opcode!");
70 assert(Opcode < NumOpcodes &&
"Invalid opcode!");
71 return StringRef(&InstrNameData[InstrNameIndices[Opcode]]);
77 std::string &
Info)
const;
This is an optimization pass for GlobalISel generic memory operations.
Instances of this class represent a single low-level machine instruction.
bool(*)(MCInst &, const MCSubtargetInfo &, std::string &) ComplexDeprecationPredicate
Describe properties that are true of each instruction in the target description file.
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.
Analysis containing CSE Info
static RegisterPass< DebugifyFunctionPass > DF("debugify-function", "Attach debug info to a function")
static GCRegistry::Add< StatepointGC > D("statepoint-example", "an example strategy for statepoint")
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
StringRef getName(unsigned Opcode) const
Returns the name for the instructions with the given opcode.
StringRef - Represent a constant reference to a string, i.e.
Interface to description of machine instruction set.
unsigned getNumOpcodes() const
const MCInstrDesc & get(unsigned Opcode) const
Return the machine instruction descriptor that corresponds to the specified instruction 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.