Explorar o código

implementing new optimization strategy

Nicolas Winkler %!s(int64=6) %!d(string=hai) anos
pai
achega
bd20c8a243
Modificáronse 1 ficheiros con 13 adicións e 0 borrados
  1. 13 0
      src/optimize.rs

+ 13 - 0
src/optimize.rs

@@ -3,6 +3,19 @@ use std::collections::BTreeMap;
 use super::ir;
 use super::ir::Instruction;
 
+
+
+
+pub struct DfgOptimizer {
+    dfg: DataflowGraph,
+    tape_state: TapeState,
+}
+
+struct DataflowGraph {
+    
+}
+
+
 enum CellState {
     Value(i64),
     Added(i64)