Generate the parameters to tune the inline cost analysis based on command line options.

Synopsis

Declared in <llvm/Analysis/InlineCost.h>

InlineParams
getInlineParamsFromOptLevel(unsigned int OptLevel);

Description

If ‐inline‐threshold option is not explicitly passed, the default threshold is computed from OptLevel. An OptLevel value above 3 is considered an aggressive optimization mode. Optimization for size is handled via separate thresholds for optsize/minsize, rather than changes to the default threshold.

Return Value

InlineParams with a default threshold derived from OptLevel.

Parameters

Name

Description

OptLevel

Optimization level used to pick the default threshold.

Created with MrDocs