ΒΆOptional<llvm::InlineCost> shouldInline(
llvm::CallBase& CB,
function_ref<llvm::InlineCost(
llvm::CallBase&)> GetInlineCost,
llvm::OptimizationRemarkEmitter& ORE,
bool EnableDeferral = true)
Optional<llvm::InlineCost> shouldInline(
llvm::CallBase& CB,
function_ref<llvm::InlineCost(
llvm::CallBase&)> GetInlineCost,
llvm::OptimizationRemarkEmitter& ORE,
bool EnableDeferral = true)
Description
Return the cost only if the inliner should attempt to inline at the given CallSite. If we return the cost, we will emit an optimisation remark later using that cost, so we won't do so from this function. Return None if inlining should not be attempted.
Declared at: llvm/include/llvm/Analysis/InlineAdvisor.h:299
Parameters
- llvm::CallBase& CB
- function_ref<llvm::InlineCost(llvm::CallBase&)> GetInlineCost
- llvm::OptimizationRemarkEmitter& ORE
- bool EnableDeferral = true