llvm::TargetLowering::parametersInCSRMatch

Return true if arguments passed in callee-saved registers match those of the calling function.

Synopsis

Declared in <llvm/CodeGen/TargetLowering.h>

bool
parametersInCSRMatch(
    MachineRegisterInfo const& MRI,
    uint32_t const* CallerPreservedMask,
    SmallVectorImpl<CCValAssign> const& ArgLocs,
    SmallVectorImpl<SDValue> const& OutVals) const;

Description

Check whether parameters to a call that are passed in callee saved registers are the same as from the calling function. This needs to be checked for tail call eligibility.

Return Value

True if arguments passed in callee-saved registers match those of the calling function.

Parameters

NameDescription
MRIMachine register info.
CallerPreservedMaskCallee-saved register mask of the caller.
ArgLocsArgument locations of the call.
OutValsOutgoing return or argument values.