Expand description
Function inlining.
Function inlining is pretty hairy so these passes must be maintained with care.
Enums§
- This is a copy of sway_core::inline::Inline. TODO: Reuse: Depend on sway_core? Move it to sway_types?
Constants§
Functions§
- Inline all calls made from a specific function, effectively removing all
Call
instructions. - Inline a function to a specific call site within another function.
- Inline function calls based on a provided heuristic predicate.
- 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.