-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Extract CFG building logic to CFGBuilder - Add helper methods in CFG for graph algorithms - Add data members in BasicBlock for dataflow analysis
- Loading branch information
Showing
4 changed files
with
68 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 10 additions & 1 deletion
11
ep20/src/main/java/org/teachfx/antlr4/ep20/pass/cfg/CFGBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
package org.teachfx.antlr4.ep20.pass.cfg;public class CFGBuilder { | ||
package org.teachfx.antlr4.ep20.pass.cfg; | ||
|
||
import org.teachfx.antlr4.ep20.ir.IRNode; | ||
|
||
import java.util.List; | ||
|
||
public class CFGBuilder<I extends IRNode> { | ||
public CFGBuilder(List<I> instrs){ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters