LLVM  6.0.0svn
Public Attributes | List of all members
llvm::InlineParams Struct Reference

Thresholds to tune inline cost analysis. More...

#include "llvm/Analysis/InlineCost.h"

Collaboration diagram for llvm::InlineParams:
Collaboration graph
[legend]

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...
 
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< boolComputeFullInlineCost
 Compute inline cost even when the cost has exceeded the threshold. More...
 

Detailed 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 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 130 of file InlineCost.h.

Member Data Documentation

◆ ColdCallSiteThreshold

Optional<int> llvm::InlineParams::ColdCallSiteThreshold

Threshold to use when the callsite is considered cold.

Definition at line 154 of file InlineCost.h.

Referenced by llvm::getInlineParams().

◆ ColdThreshold

Optional<int> llvm::InlineParams::ColdThreshold

Threshold to use for cold callees.

Definition at line 138 of file InlineCost.h.

Referenced by llvm::getInlineParams().

◆ ComputeFullInlineCost

Optional<bool> llvm::InlineParams::ComputeFullInlineCost

Compute inline cost even when the cost has exceeded the threshold.

Definition at line 157 of file InlineCost.h.

Referenced by callsiteIsHot().

◆ DefaultThreshold

int llvm::InlineParams::DefaultThreshold

◆ HintThreshold

Optional<int> llvm::InlineParams::HintThreshold

Threshold to use for callees with inline hint.

Definition at line 135 of file InlineCost.h.

Referenced by llvm::PassBuilder::buildFunctionSimplificationPipeline(), llvm::getInlineParams(), and llvm::PassManagerBuilder::populateFunctionPassManager().

◆ HotCallSiteThreshold

Optional<int> llvm::InlineParams::HotCallSiteThreshold

Threshold to use when the callsite is considered hot.

Definition at line 147 of file InlineCost.h.

Referenced by llvm::PassBuilder::buildModuleSimplificationPipeline(), and llvm::getInlineParams().

◆ LocallyHotCallSiteThreshold

Optional<int> llvm::InlineParams::LocallyHotCallSiteThreshold

Threshold to use when the callsite is considered hot relative to function entry.

Definition at line 151 of file InlineCost.h.

Referenced by llvm::getInlineParams().

◆ OptMinSizeThreshold

Optional<int> llvm::InlineParams::OptMinSizeThreshold

Threshold to use when the caller is optimized for minsize.

Definition at line 144 of file InlineCost.h.

Referenced by llvm::getInlineParams().

◆ OptSizeThreshold

Optional<int> llvm::InlineParams::OptSizeThreshold

Threshold to use when the caller is optimized for size.

Definition at line 141 of file InlineCost.h.

Referenced by llvm::getInlineParams().


The documentation for this struct was generated from the following file: