Performs inlining, which is an optimization pass enabled with the -inline flag.
The AST is traversed, and every function call is considered for inlining using inlinecost.d. The function call is then inlined if this cost is below a threshold.
Perform the "inline copying" of a default argument for a function parameter.
Scan function implementations in Module m looking for functions that can be inlined, and inline them in situ.
See Source File _inline.d Documentation: https://dlang.org/phobos/dmd_inline.html Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/inline.d
Walter Bright
Copyright (C) 1999-2021 by The D Language Foundation, All Rights Reserved
Boost License 1.0
Performs inlining, which is an optimization pass enabled with the -inline flag.
The AST is traversed, and every function call is considered for inlining using inlinecost.d. The function call is then inlined if this cost is below a threshold.