LLVM
15.0.0git
|
Thresholds to tune inline cost analysis. More...
#include "llvm/Analysis/InlineCost.h"
Public Attributes | |
int | DefaultThreshold = -1 |
The default threshold to start with for a callee. More... | |
Optional< int > | HintThreshold |
Threshold to use for callees with inline hint. More... | |
Optional< int > | ColdThreshold |
Threshold to use for cold callees. More... | |
Optional< int > | OptSizeThreshold |
Threshold to use when the caller is optimized for size. More... | |
Optional< int > | OptMinSizeThreshold |
Threshold to use when the caller is optimized for minsize. More... | |
Optional< int > | HotCallSiteThreshold |
Threshold to use when the callsite is considered hot. More... | |
Optional< int > | LocallyHotCallSiteThreshold |
Threshold to use when the callsite is considered hot relative to function entry. More... | |
Optional< int > | ColdCallSiteThreshold |
Threshold to use when the callsite is considered cold. More... | |
Optional< bool > | ComputeFullInlineCost |
Compute inline cost even when the cost has exceeded the threshold. More... | |
Optional< bool > | EnableDeferral |
Indicate whether we should allow inline deferral. More... | |
Optional< bool > | AllowRecursiveCall = false |
Indicate whether we allow inlining for recursive call. More... | |
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 getInlineParams
methods and pass it to getInlineCost
. Some specialized versions of inliner (such as the pre-inliner) might have custom logic to compute InlineParams
object.
Definition at line 190 of file InlineCost.h.
Indicate whether we allow inlining for recursive call.
Definition at line 223 of file InlineCost.h.
Threshold to use when the callsite is considered cold.
Definition at line 214 of file InlineCost.h.
Referenced by llvm::getInlineParams().
Threshold to use for cold callees.
Definition at line 198 of file InlineCost.h.
Referenced by llvm::getInlineParams().
Optional<bool> llvm::InlineParams::ComputeFullInlineCost |
Compute inline cost even when the cost has exceeded the threshold.
Definition at line 217 of file InlineCost.h.
int llvm::InlineParams::DefaultThreshold = -1 |
The default threshold to start with for a callee.
Definition at line 192 of file InlineCost.h.
Referenced by llvm::getInlineParams().
Optional<bool> llvm::InlineParams::EnableDeferral |
Indicate whether we should allow inline deferral.
Definition at line 220 of file InlineCost.h.
Referenced by getDefaultInlineAdvice().
Threshold to use for callees with inline hint.
Definition at line 195 of file InlineCost.h.
Referenced by llvm::getInlineParams().
Threshold to use when the callsite is considered hot.
Definition at line 207 of file InlineCost.h.
Referenced by llvm::getInlineParams().
Threshold to use when the callsite is considered hot relative to function entry.
Definition at line 211 of file InlineCost.h.
Referenced by llvm::getInlineParams().
Threshold to use when the caller is optimized for minsize.
Definition at line 204 of file InlineCost.h.
Referenced by llvm::getInlineParams().
Threshold to use when the caller is optimized for size.
Definition at line 201 of file InlineCost.h.
Referenced by llvm::getInlineParams().