LLVM: lib/MC/MCInstrInfo.cpp Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
12
13using namespace llvm;
14
16 std::string &Info) const {
17 unsigned Opcode = MI.getOpcode();
18 if (ComplexDeprecationInfos && ComplexDeprecationInfos[Opcode])
19 return ComplexDeprecationInfos[Opcode](MI, STI, Info);
20 if (DeprecatedFeatures && DeprecatedFeatures[Opcode] != uint8_t(-1U) &&
22
23 Info = "deprecated";
24 return true;
25 }
26 return false;
27}
Instances of this class represent a single low-level machine instruction.
LLVM_ABI 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.
Definition MCInstrInfo.cpp:15
Generic base class for all target subtargets.
const FeatureBitset & getFeatureBits() const
This is an optimization pass for GlobalISel generic memory operations.