LLVM  8.0.1
Variables
llvm::InlineConstants Namespace Reference

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 InstrCost = 5
 
const int IndirectCallThreshold = 100
 
const int CallPenalty = 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...
 

Variable Documentation

◆ CallPenalty

const int llvm::InlineConstants::CallPenalty = 25

Definition at line 46 of file InlineCost.h.

Referenced by llvm::getCallsiteCost().

◆ ColdccPenalty

const int llvm::InlineConstants::ColdccPenalty = 2000

Definition at line 48 of file InlineCost.h.

◆ IndirectCallThreshold

const int llvm::InlineConstants::IndirectCallThreshold = 100

Definition at line 45 of file InlineCost.h.

◆ InstrCost

const int llvm::InlineConstants::InstrCost = 5

Definition at line 44 of file InlineCost.h.

Referenced by llvm::getCallsiteCost(), and hasProfileData().

◆ LastCallToStaticBonus

const int llvm::InlineConstants::LastCallToStaticBonus = 15000

Definition at line 47 of file InlineCost.h.

Referenced by shouldBeDeferred().

◆ OptAggressiveThreshold

const int llvm::InlineConstants::OptAggressiveThreshold = 250

Use when -O3 is specified.

Definition at line 41 of file InlineCost.h.

Referenced by computeThresholdFromOptLevels().

◆ OptMinSizeThreshold

const int llvm::InlineConstants::OptMinSizeThreshold = 5

Use when minsize (-Oz) is specified.

Definition at line 38 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 35 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 51 of file InlineCost.h.