dmd.inlinecost

Compute the cost of inlining a function call by counting expressions.

Members

Functions

inlineCostExpression
int inlineCostExpression(Expression e)

Determine cost of inlining Expression

inlineCostFunction
int inlineCostFunction(FuncDeclaration fd, bool hasthis, bool hdrscan)

Determine cost of inlining function

isInlinableNestedAggregate
AggregateDeclaration isInlinableNestedAggregate(DeclarationExp e)

Indicates if a nested aggregate prevents or not a function to be inlined. It's used to compute the cost but also to avoid a copy of the aggregate while the inliner processes.

tooCostly
bool tooCostly(int cost)

Determine if too expensive to inline.

Meta

Suggestion Box / Bug Report