llvm::TargetRegisterInfo::isCallerPreservedPhysReg

Return true if PhysReg is restored before any use after modification.

Synopsis

Declared in <llvm/CodeGen/TargetRegisterInfo.h>

virtual
bool
isCallerPreservedPhysReg(
    MCRegister PhysReg,
    MachineFunction const& MF) const;

Description

Physical registers that may be modified within a function but are guaranteed to be restored before any uses. This is useful for targets that have call sequences where a GOT register may be updated by the caller prior to a call and is guaranteed to be restored (also by the caller) after the call.

Return Value

True if PhysReg is restored before any use after modification.

Parameters

NameDescription
PhysRegPhysical register being tested.
MFFunction in which the register is classified.