Skip to main content

Crate datalove_datafun_inline

Crate datalove_datafun_inline 

Source
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§

CallSite
Information about a call site to inline.
CrossModuleInlineContext
Context for cross-module inlining operations.
CrossModuleInlineRequest
Request to inline specific calls (cross-module).
CrossModuleInlineResult
Result of cross-module inlining.
GlobalFuncId
Global function identifier (module + function).
InlineRequest
Request to inline specific calls (single-module).
InlineResult
Result of the inlining pass.

Enums§

CallSiteFilter
Specifies which call sites to inline.
InlineDirective
Directive specifying which function calls to inline.
InlineSkipReason
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.