Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var InlineCall = oldInlineCall
InlineCall allows the inliner implementation to be overridden. If it returns nil, the function will not be inlined.
var SSADumpInline = func(*ir.Func) {}
SSADumpInline gives the SSA back end a chance to dump the function when producing output for debugging the compiler itself.
Functions ¶
func CalleeEffects ¶ added in go1.18
CalleeEffects appends any side effects from evaluating callee to init.
func CanInline ¶
CanInline determines whether fn is inlineable. If so, CanInline saves copies of fn.Body and fn.Dcl in fn.Inl. fn and fn.Body will already have been typechecked.
func InlineCalls ¶
InlineCalls/inlnode walks fn's statements and expressions and substitutes any calls made to inlineable functions. This is the external entry point.
func InlineDecls ¶ added in go1.20
InlineDecls applies inlining to the given batch of declarations.
func InlinePackage ¶
InlinePackage finds functions that can be inlined and clones them before walk expands them.
Types ¶
This section is empty.