ml_switcheroo.compiler.frontends.rdna.lifter¶
RDNA Lifter (Frontend).
This module provides the logic to “lift” low-level RDNA AST nodes back into a high-level LogicalGraph. It relies on semantic comment markers (e.g. ; BEGIN) emitted during compilation to reconstruct the control flow and layer definitions.
Classes¶
Reconstructs a LogicalGraph from a sequence of RDNA AST nodes. |
Module Contents¶
- class ml_switcheroo.compiler.frontends.rdna.lifter.RdnaLifter[source]¶
Reconstructs a LogicalGraph from a sequence of RDNA AST nodes.
- lift(nodes: List[ml_switcheroo.compiler.frontends.rdna.nodes.RdnaNode]) ml_switcheroo.compiler.ir.LogicalGraph[source]¶
Parses a list of RDNA nodes to build a LogicalGraph.