summaryrefslogtreecommitdiff
path: root/cfg/ControlFlowGraph.java
diff options
context:
space:
mode:
authorbd-912 <bdunahu@colostate.edu>2024-04-22 23:12:05 -0600
committerbd-912 <bdunahu@colostate.edu>2024-04-22 23:12:05 -0600
commitdf648047d1899345dd8b2d82f78b480712d4d8d6 (patch)
treebb001bc35ad42409287bc1c8bb470255d03bde4c /cfg/ControlFlowGraph.java
parent110b4f031aea36445250d79c7257a57f15fb7b82 (diff)
Implement register allocation (no spill)
Diffstat (limited to 'cfg/ControlFlowGraph.java')
-rw-r--r--cfg/ControlFlowGraph.java4
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) {