Movatterモバイル変換


[0]ホーム

URL:


D Logo
Menu
Search

Library Reference

version 2.112.0

overview

Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.Requires a signed-in GitHub account. This works well for small changes.If you'd like to make larger changes you may want to consider usinga local clone.

dmd.inlinecost

Compute the cost of inlining a function call by counting expressions.
Authors:
Walter Bright
License:
Boost License 1.0

Sourceinlinecost.d

Documentationhttps://dlang.org/phobos/dmd_inlinecost.html

Coveragehttps://codecov.io/gh/dlang/dmd/src/master/compiler/src/dmd/inlinecost.d

pure nothrow @safe booltooCostly(intcost);
Determine if too expensive to inline.
Parameters:
intcostcost of inlining
Returns:
true if too costly
intinlineCostExpression(Expressione);
Determine cost of inlining Expression
Parameters:
ExpressioneExpression to determine cost of
Returns:
cost of inlining e
intinlineCostFunction(FuncDeclarationfd, boolhasthis, boolhdrscan);
Determine cost of inlining function
Parameters:
FuncDeclarationfdfunction to determine cost of
boolhasthisif the function call has explicit 'this' expression
boolhdrscanif generating a header file
Returns:
cost of inlining fd
AggregateDeclarationisInlinableNestedAggregate(DeclarationExpe);
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.
Parameters:
DeclarationExpethe declaration expression that may represent an aggregate.
Returns:
null ife is not an aggregate or if it is an aggregate that doesn't permit inlining, and the aggregate otherwise.
Copyright © 1999-2026 by theD Language Foundation | Page generated byDdoc on Fri Feb 20 17:56:30 2026

[8]ページ先頭

©2009-2026 Movatter.jp