llvm::TargetRegisterInfo::explainReservedReg

Return an explanation for why PhysReg is reserved, if available.

Synopsis

Declared in <llvm/CodeGen/TargetRegisterInfo.h>

virtual
std::optional<std::string>
explainReservedReg(
    MachineFunction const& MF,
    MCRegister PhysReg) const;

Description

Returns either a string explaining why the given register is reserved for this function, or an empty optional if no explanation has been written. The absence of an explanation does not mean that the register is not reserved (meaning, you should check that PhysReg is in fact reserved before calling this).

Return Value

An explanation string if available, or an empty optional.

Parameters

NameDescription
MFFunction whose reserved-register explanation is queried.
PhysRegPhysical register whose reservation is explained.