ソースを参照

implementing new optimization strategy

Nicolas Winkler 6 年 前
コミット
bd20c8a243
1 ファイル変更13 行追加0 行削除
  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)