llvm::InlineConstants

Thresholds and magic constants used by inline cost analysis.

Functions

NameDescription
getInstrCost Return the cost assigned to a single instruction during inlining.

Variables

NameDescription
ColdccPenalty Extra cost charged when inlining a callee that uses coldcc.
FunctionInlineCostMultiplierAttributeName Function attribute that multiplies the computed inline cost of a callsite.
IndirectCallThreshold Threshold used when estimating the benefit of inlining an indirect call.
LoopPenalty Extra cost charged for each loop when the caller is optimized for minsize.
MaxInlineStackSizeAttributeName Function attribute that caps the callee stack size allowed when inlining.
MaxSimplifiedDynamicAllocaToInline Do not inline dynamic allocas that have been constant propagated to be static allocas above this amount in bytes.
OptAggressiveThreshold Use when -O3 is specified.
OptMinSizeThreshold Use when minsize (-Oz) is specified.
OptSizeThreshold Use when optsize (-Os) is specified.
TotalAllocaSizeRecursiveCaller Do not inline functions which allocate this many bytes on the stack when the caller is recursive.