LLVM  14.0.0git
llvm::InlineParams Struct Reference

Thresholds to tune inline cost analysis. More...

#include "llvm/Analysis/InlineCost.h"

Collaboration diagram for llvm::InlineParams:
[legend]

## Public Attributes

int DefaultThreshold = -1

Optional< intHintThreshold
Threshold to use for callees with inline hint. More...

Optional< intColdThreshold
Threshold to use for cold callees. More...

Optional< intOptSizeThreshold
Threshold to use when the caller is optimized for size. More...

Optional< intOptMinSizeThreshold
Threshold to use when the caller is optimized for minsize. More...

Optional< intHotCallSiteThreshold
Threshold to use when the callsite is considered hot. More...

Optional< intLocallyHotCallSiteThreshold
Threshold to use when the callsite is considered hot relative to function entry. More...

Optional< intColdCallSiteThreshold
Threshold to use when the callsite is considered cold. More...

Optional< bool > ComputeFullInlineCost
Compute inline cost even when the cost has exceeded the threshold. More...

Optional< bool > EnableDeferral = true
Indicate whether we should allow inline deferral. More...

Optional< bool > AllowRecursiveCall = false
Indicate whether we allow inlining for recursive call. 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 185 of file InlineCost.h.

## ◆ AllowRecursiveCall

 Optional llvm::InlineParams::AllowRecursiveCall = false

Indicate whether we allow inlining for recursive call.

Definition at line 218 of file InlineCost.h.

## ◆ ColdCallSiteThreshold

 Optional llvm::InlineParams::ColdCallSiteThreshold

Threshold to use when the callsite is considered cold.

Definition at line 209 of file InlineCost.h.

Referenced by llvm::getInlineParams().

## ◆ ColdThreshold

 Optional llvm::InlineParams::ColdThreshold

Threshold to use for cold callees.

Definition at line 193 of file InlineCost.h.

Referenced by llvm::getInlineParams().

## ◆ ComputeFullInlineCost

 Optional llvm::InlineParams::ComputeFullInlineCost

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

Definition at line 212 of file InlineCost.h.

## ◆ DefaultThreshold

 int llvm::InlineParams::DefaultThreshold = -1

Definition at line 187 of file InlineCost.h.

Referenced by llvm::getInlineParams().

## ◆ EnableDeferral

 Optional llvm::InlineParams::EnableDeferral = true

Indicate whether we should allow inline deferral.

Definition at line 215 of file InlineCost.h.

## ◆ HintThreshold

 Optional llvm::InlineParams::HintThreshold

Threshold to use for callees with inline hint.

Definition at line 190 of file InlineCost.h.

Referenced by llvm::getInlineParams().

## ◆ HotCallSiteThreshold

 Optional llvm::InlineParams::HotCallSiteThreshold

Threshold to use when the callsite is considered hot.

Definition at line 202 of file InlineCost.h.

Referenced by llvm::getInlineParams().

## ◆ LocallyHotCallSiteThreshold

 Optional llvm::InlineParams::LocallyHotCallSiteThreshold

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

Definition at line 206 of file InlineCost.h.

Referenced by llvm::getInlineParams().

## ◆ OptMinSizeThreshold

 Optional llvm::InlineParams::OptMinSizeThreshold

Threshold to use when the caller is optimized for minsize.

Definition at line 199 of file InlineCost.h.

Referenced by llvm::getInlineParams().

## ◆ OptSizeThreshold

 Optional llvm::InlineParams::OptSizeThreshold

Threshold to use when the caller is optimized for size.

Definition at line 196 of file InlineCost.h.

Referenced by llvm::getInlineParams().

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