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);
Class template for optional values.
| Name | Description |
|---|---|
| Call | Base class for all callable instructions (InvokeInst and CallInst) Holds everything related to calling a function. |
| CalleeTTI | This pass provides access to the codegen interfaces that are needed for IR-level transformations. |
| GetAssumptionCache | An efficient, type-erasing, non-owning reference to a callable. This is intended for use as the type of a function parameter that is not used after the function in question returns. |
| GetBFI | An efficient, type-erasing, non-owning reference to a callable. This is intended for use as the type of a function parameter that is not used after the function in question returns. |
| GetTLI | An efficient, type-erasing, non-owning reference to a callable. This is intended for use as the type of a function parameter that is not used after the function in question returns. |
| PSI | Analysis providing profile information. |
| ORE | The optimization diagnostic interface. |