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

Functions

int getInstrCost ()
 

Variables

const int OptSizeThreshold = 50
 Use when optsize (-Os) is specified. More...
 
const int OptMinSizeThreshold = 5
 Use when minsize (-Oz) is specified. More...
 
const int OptAggressiveThreshold = 250
 Use when -O3 is specified. More...
 
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. More...
 
const uint64_t MaxSimplifiedDynamicAllocaToInline = 65536
 Do not inline dynamic allocas that have been constant propagated to be static allocas above this amount in bytes. More...
 
const char FunctionInlineCostMultiplierAttributeName []
 
const char MaxInlineStackSizeAttributeName [] = "inline-max-stacksize"
 

Function Documentation

◆ getInstrCost()

int llvm::InlineConstants::getInstrCost ( )

Definition at line 183 of file InlineCost.cpp.

References InstrCost.

Variable Documentation

◆ ColdccPenalty

const int llvm::InlineConstants::ColdccPenalty = 2000

Definition at line 52 of file InlineCost.h.

◆ FunctionInlineCostMultiplierAttributeName

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

Definition at line 60 of file InlineCost.h.

◆ IndirectCallThreshold

const int llvm::InlineConstants::IndirectCallThreshold = 100

Definition at line 49 of file InlineCost.h.

◆ LastCallToStaticBonus

const int llvm::InlineConstants::LastCallToStaticBonus = 15000

Definition at line 51 of file InlineCost.h.

Referenced by shouldBeDeferred().

◆ LoopPenalty

const int llvm::InlineConstants::LoopPenalty = 25

Definition at line 50 of file InlineCost.h.

◆ MaxInlineStackSizeAttributeName

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

Definition at line 63 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 58 of file InlineCost.h.

◆ OptAggressiveThreshold

const int llvm::InlineConstants::OptAggressiveThreshold = 250

Use when -O3 is specified.

Definition at line 45 of file InlineCost.h.

Referenced by computeThresholdFromOptLevels().

◆ OptMinSizeThreshold

const int llvm::InlineConstants::OptMinSizeThreshold = 5

Use when minsize (-Oz) is specified.

Definition at line 42 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 39 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 55 of file InlineCost.h.