Expand description
Function inlining.
Function inlining is pretty hairy so these passes must be maintained with care.
Enums§
- Inline
- This is a copy of sway_core::inline::Inline. TODO: Reuse: Depend on sway_core? Move it to sway_types?
Constants§
Functions§
- create_
fn_ inline_ pass - fn_
inline - inline_
all_ function_ calls - Inline all calls made from a specific function, effectively removing all
Call
instructions. - inline_
function_ call - Inline a function to a specific call site within another function.
- inline_
some_ function_ calls - Inline function calls based on a provided heuristic predicate.
- is_
small_ fn - A utility to get a predicate which can be passed to inline_some_function_calls() based on certain sizes of the function. If a constraint is None then any size is assumed to be acceptable.
- metadata_
to_ inline