From df648047d1899345dd8b2d82f78b480712d4d8d6 Mon Sep 17 00:00:00 2001 From: bd-912 Date: Mon, 22 Apr 2024 23:12:05 -0600 Subject: Implement register allocation (no spill) --- cfg/ControlFlowGraph.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cfg/ControlFlowGraph.java') 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) { -- cgit v1.2.3