diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-04-22 23:12:05 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-04-22 23:12:05 -0600 |
commit | df648047d1899345dd8b2d82f78b480712d4d8d6 (patch) | |
tree | bb001bc35ad42409287bc1c8bb470255d03bde4c /cfg | |
parent | 110b4f031aea36445250d79c7257a57f15fb7b82 (diff) |
Implement register allocation (no spill)
Diffstat (limited to 'cfg')
-rw-r--r-- | cfg/ControlFlowGraph.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cfg/ControlFlowGraph.java b/cfg/ControlFlowGraph.java index 274482b..c3943a0 100644 --- a/cfg/ControlFlowGraph.java +++ b/cfg/ControlFlowGraph.java @@ -16,6 +16,10 @@ public class ControlFlowGraph { this.nodes = new ArrayList<>(); } + public String getFunction() { + return this.f.ident; + } + public CFGNode getNode(Object a) { CFGNode ret = null; for (CFGNode n : this.nodes) { |