LLVM 20.0.0git
Functions | Variables
llvm::InlineConstants Namespace Reference

Functions

int getInstrCost ()
 

Variables

const int OptSizeThreshold = 50
 Use when optsize (-Os) is specified.
 
const int OptMinSizeThreshold = 5
 Use when minsize (-Oz) is specified.
 
const int OptAggressiveThreshold = 250
 Use when -O3 is specified.
 
const int IndirectCallThreshold = 100
 
const int LoopPenalty = 25
 
const int LastCallToStaticBonus = 15000
 
const int ColdccPenalty = 2000
 
const unsigned TotalAllocaSizeRecursiveCaller = 1024
 Do not inline functions which allocate this many bytes on the stack when the caller is recursive.
 
const uint64_t MaxSimplifiedDynamicAllocaToInline = 65536
 Do not inline dynamic allocas that have been constant propagated to be static allocas above this amount in bytes.
 
const char FunctionInlineCostMultiplierAttributeName []
 
const char MaxInlineStackSizeAttributeName [] = "inline-max-stacksize"
 

Function Documentation

◆ getInstrCost()

int llvm::InlineConstants::getInstrCost ( )

Definition at line 195 of file InlineCost.cpp.

References InstrCost.

Referenced by adjustInliningThresholdUsingCallee().

Variable Documentation

◆ ColdccPenalty

const int llvm::InlineConstants::ColdccPenalty = 2000

Definition at line 51 of file InlineCost.h.

◆ FunctionInlineCostMultiplierAttributeName

const char llvm::InlineConstants::FunctionInlineCostMultiplierAttributeName[]
Initial value:
=
"function-inline-cost-multiplier"

Definition at line 59 of file InlineCost.h.

◆ IndirectCallThreshold

const int llvm::InlineConstants::IndirectCallThreshold = 100

Definition at line 48 of file InlineCost.h.

◆ LastCallToStaticBonus

const int llvm::InlineConstants::LastCallToStaticBonus = 15000

Definition at line 50 of file InlineCost.h.

Referenced by shouldBeDeferred().

◆ LoopPenalty

const int llvm::InlineConstants::LoopPenalty = 25

Definition at line 49 of file InlineCost.h.

◆ MaxInlineStackSizeAttributeName

const char llvm::InlineConstants::MaxInlineStackSizeAttributeName[] = "inline-max-stacksize"

Definition at line 62 of file InlineCost.h.

◆ MaxSimplifiedDynamicAllocaToInline

const uint64_t llvm::InlineConstants::MaxSimplifiedDynamicAllocaToInline = 65536

Do not inline dynamic allocas that have been constant propagated to be static allocas above this amount in bytes.

Definition at line 57 of file InlineCost.h.

◆ OptAggressiveThreshold

const int llvm::InlineConstants::OptAggressiveThreshold = 250

Use when -O3 is specified.

Definition at line 44 of file InlineCost.h.

Referenced by computeThresholdFromOptLevels().

◆ OptMinSizeThreshold

const int llvm::InlineConstants::OptMinSizeThreshold = 5

Use when minsize (-Oz) is specified.

Definition at line 41 of file InlineCost.h.

Referenced by computeThresholdFromOptLevels(), and llvm::getInlineParams().

◆ OptSizeThreshold

const int llvm::InlineConstants::OptSizeThreshold = 50

Use when optsize (-Os) is specified.

Definition at line 38 of file InlineCost.h.

Referenced by computeThresholdFromOptLevels(), and llvm::getInlineParams().

◆ TotalAllocaSizeRecursiveCaller

const unsigned llvm::InlineConstants::TotalAllocaSizeRecursiveCaller = 1024

Do not inline functions which allocate this many bytes on the stack when the caller is recursive.

Definition at line 54 of file InlineCost.h.