ml_switcheroo.core.rewriter.pipeline¶
Orchestration logic for executing sequential rewriter passes.
This module provides the RewriterPipeline, which manages the sequential
execution of multiple RewriterPass instances over a shared Context.
Classes¶
Manages a sequence of rewriting passes and executes them in order. |
Module Contents¶
- class ml_switcheroo.core.rewriter.pipeline.RewriterPipeline(passes: List[ml_switcheroo.core.rewriter.interface.RewriterPass])[source]¶
Manages a sequence of rewriting passes and executes them in order.
- passes¶
- run(module: libcst.Module, context: ml_switcheroo.core.rewriter.context.RewriterContext) libcst.Module[source]¶
Executes all registered passes sequentially on the module.
- Parameters:
module – The source AST to transform.
context – The shared execution state containing semantics and config.
- Returns:
The fully transformed AST.