Get the expanded cost features. The features are returned unconditionally, even if inlining is impossible.
Declared in <llvm/Analysis/InlineCost.h>
std::optional<InlineCostFeatures>
getInliningCostFeatures(
CallBase& Call,
TargetTransformInfo& CalleeTTI,
function_ref<AssumptionCache&(Function&)> GetAssumptionCache,
function_ref<BlockFrequencyInfo&(Function&)> GetBFI = nullptr,
function_ref<TargetLibraryInfo const&(Function&)> GetTLI = nullptr,
ProfileSummaryInfo* PSI = nullptr,
OptimizationRemarkEmitter* ORE = nullptr);
The expanded cost features for Call.
| Name | Description |
|---|---|
| Call | Call site whose cost features are collected. |
| CalleeTTI | Target transform info for the callee. |
| GetAssumptionCache | Callback returning the assumption cache for a function. |
| GetBFI | Optional callback returning block frequency info, or null. |
| GetTLI | Optional callback returning target library info, or null. |
| PSI | Optional profile summary used for hot/cold callsite thresholds. |
| ORE | Optional remark emitter for inlining diagnostics. |