Expand description
Function inlining pass for datafun IR.
This crate provides:
- Inline directive types for specifying which functions to inline
- Function inlining transformation on IR modules
- Cross-module inlining support
- Dynamic inlining for interpreter optimization
Structs§
- Call
Site - Information about a call site to inline.
- Cross
Module Inline Context - Context for cross-module inlining operations.
- Cross
Module Inline Request - Request to inline specific calls (cross-module).
- Cross
Module Inline Result - Result of cross-module inlining.
- Global
Func Id - Global function identifier (module + function).
- Inline
Request - Request to inline specific calls (single-module).
- Inline
Result - Result of the inlining pass.
Enums§
- Call
Site Filter - Specifies which call sites to inline.
- Inline
Directive - Directive specifying which function calls to inline.
- Inline
Skip Reason - Reason why an inlining was skipped.
Functions§
- inline_
call_ site - Inline a single call site in a function.
- inline_
cross_ module - Perform cross-module function inlining according to the given directives.
- inline_
module - Perform function inlining on a module according to the given directives.
- parse_
inline_ directives - Parse inline directives from source text.
- resolve_
cross_ module_ directives - Resolve cross-module inline directives using the context.
- resolve_
directives - Resolve inline directives to concrete requests using the module’s symbol table.