Returns true if a certain instruction is deprecated and if so returns the reason in Info.

Synopsis

Declared in <llvm/MC/MCInstrInfo.h>

bool
getDeprecatedInfo(
    MCInst& MI,
    MCSubtargetInfo const& STI,
    std::string& Info) const;

Return Value

True if the instruction is deprecated.

Parameters

Name

Description

MI

‐ Instruction to check for deprecation.

STI

‐ Subtarget info used to evaluate deprecation.

Info

‐ Filled with the deprecation reason when returning true.

Created with MrDocs