llvm::TargetTransformInfoImplBase::getRegisterClassSpillCost

Estimate the cost of spilling a register from the class.

Synopsis

Declared in <llvm/Analysis/TargetTransformInfoImpl.h>

virtual
InstructionCost
getRegisterClassSpillCost(
    unsigned int ClassID,
    TTI::TargetCostKind CostKind) const;

Return Value

The cost of spilling a register in the given class to the stack.

Parameters

NameDescription
ClassIDRegister class identifier.
CostKindKind of cost to compute.