Return an explanation for why PhysReg is reserved, if available.
Declared in <llvm/CodeGen/TargetRegisterInfo.h>
virtual
std::optional<std::string>
explainReservedReg(
MachineFunction const& MF,
MCRegister PhysReg) const;
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).
An explanation string if available, or an empty optional.
| Name | Description |
|---|---|
| MF | Function whose reserved-register explanation is queried. |
| PhysReg | Physical register whose reservation is explained. |