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.inline

Performs inlining, which is an optimization pass enabled with the-inline flag.
The AST is traversed, and every function call is considered for inlining usinginlinecost.d. The function call is then inlined if this cost is below a threshold.
Authors:
Walter Bright
License:
Boost License 1.0

Sourceinline.d

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

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

voidinlineScanModule(Modulem, ErrorSinkeSink);
Scan function implementations in Module m looking for functions that can be inlined, and inline them in situ.
Parameters:
Modulemmodule to scan
ErrorSinkeSinkwhere to report errors
ExpressioninlineCopy(Expressione, Scope*sc);
Perform the "inline copying" of a default argument for a function parameter.

TodoThe hack forhttps://issues.dlang.org/show_bug.cgi?id=4820 case is still questionable. Perhaps would have to handle a delegate expression with 'null' context properly in front-end.

Copyright © 1999-2026 by theD Language Foundation | Page generated byDdoc on Mon Feb 23 21:46:34 2026

[8]ページ先頭

©2009-2026 Movatter.jp