Expand description
MIR to Dataflow Graph Extraction
This module converts MIR (basic block form) to a dataflow graph representation. The extraction process:
- Creates channels for each MIR local variable
- Converts statements to Compute/Memory operators
- Converts terminators to control-flow operators (Steer, Stream, etc.)
- Detects loop patterns and generates Stream operators where beneficial
§Example
ⓘ
let mir = ...; // MIR for a function
let dfg = DfgExtractor::extract(&mir);Structs§
- DfgExtractor
- Extracts a dataflow graph from MIR