ΒΆllvm::InlineCost getInlineCost(
    llvm::CallBase& Call,
    llvm::Function* Callee,
    const llvm::InlineParams& Params,
    llvm::TargetTransformInfo& CalleeTTI,
    std::function<AssumptionCache&(Function&)>&
        GetAssumptionCache,
    Optional<
        function_ref<llvm::BlockFrequencyInfo&(
            llvm::Function&)>> GetBFI,
    llvm::ProfileSummaryInfo* PSI,
    llvm::OptimizationRemarkEmitter* ORE)

Description

Get an InlineCost with the callee explicitly specified. This allows you to calculate the cost of inlining a function via a pointer. This behaves exactly as the version with no explicit callee parameter in all other respects.

Declared at: llvm/include/llvm/Analysis/InlineCost.h:227

Parameters

llvm::CallBase& Call
llvm::Function* Callee
const llvm::InlineParams& Params
llvm::TargetTransformInfo& CalleeTTI
std::function<AssumptionCache&(Function&)>& GetAssumptionCache
Optional<function_ref<llvm::BlockFrequencyInfo&( llvm::Function&)>> GetBFI
llvm::ProfileSummaryInfo* PSI
llvm::OptimizationRemarkEmitter* ORE