llvm::TargetTransformInfoImplBase::getInlineCallPenalty

Return the call penalty used when evaluating inlining of a call.

Synopsis

Declared in <llvm/Analysis/TargetTransformInfoImpl.h>

virtual
unsigned int
getInlineCallPenalty(
    Function const* F,
    CallBase const& Call,
    unsigned int DefaultCallPenalty) const;

Return Value

A penalty for invoking call Call from function F.

Parameters

NameDescription
FFunction being queried.
CallCall being evaluated for inlining.
DefaultCallPenaltyDefault call penalty before target adjustment.