|
LLVM
4.0.0
|
Thresholds to tune inline cost analysis. More...
#include <InlineCost.h>
Public Attributes | |
| int | DefaultThreshold |
| 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... | |
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 122 of file InlineCost.h.
| Optional<int> llvm::InlineParams::ColdThreshold |
Threshold to use for cold callees.
Definition at line 130 of file InlineCost.h.
Referenced by llvm::getInlineParams().
| int llvm::InlineParams::DefaultThreshold |
The default threshold to start with for a callee.
Definition at line 124 of file InlineCost.h.
Referenced by llvm::getInlineParams().
| Optional<int> llvm::InlineParams::HintThreshold |
Threshold to use for callees with inline hint.
Definition at line 127 of file InlineCost.h.
Referenced by llvm::getInlineParams().
| Optional<int> llvm::InlineParams::HotCallSiteThreshold |
Threshold to use when the callsite is considered hot.
Definition at line 139 of file InlineCost.h.
Referenced by llvm::getInlineParams().
| Optional<int> llvm::InlineParams::OptMinSizeThreshold |
Threshold to use when the caller is optimized for minsize.
Definition at line 136 of file InlineCost.h.
Referenced by llvm::getInlineParams().
| Optional<int> llvm::InlineParams::OptSizeThreshold |
Threshold to use when the caller is optimized for size.
Definition at line 133 of file InlineCost.h.
Referenced by llvm::getInlineParams().
1.8.6