struct InlineParams
Declaration
struct InlineParams { /* full declaration omitted */ };
Description
Thresholds to tune inline cost analysis. The inline cost analysis decides the condition to apply a threshold and applies it. Otherwise, DefaultThreshold is used. If a threshold is Optional, it is applied only when it has a valid value. Typically, users of inline cost analysis obtain an InlineParams object through one of the \c getInlineParams methods and pass it to \c getInlineCost. Some specialized versions of inliner (such as the pre-inliner) might have custom logic to compute \c InlineParams object.
Declared at: llvm/include/llvm/Analysis/InlineCost.h:153
Member Variables
- public int DefaultThreshold
- The default threshold to start with for a callee.
- public Optional<int> HintThreshold
- Threshold to use for callees with inline hint.
- public Optional<int> ColdThreshold
- Threshold to use for cold callees.
- public Optional<int> OptSizeThreshold
- Threshold to use when the caller is optimized for size.
- public Optional<int> OptMinSizeThreshold
- Threshold to use when the caller is optimized for minsize.
- public Optional<int> HotCallSiteThreshold
- Threshold to use when the callsite is considered hot.
- public Optional<int> LocallyHotCallSiteThreshold
- Threshold to use when the callsite is considered hot relative to function entry.
- public Optional<int> ColdCallSiteThreshold
- Threshold to use when the callsite is considered cold.
- public Optional<bool> ComputeFullInlineCost
- Compute inline cost even when the cost has exceeded the threshold.