diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-04-24 21:05:15 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-04-24 21:05:15 -0600 |
commit | 62091005231095abbf8e2cebbfce708815cb63f0 (patch) | |
tree | 5186bf7db88b20704a48ab14413349291675ea82 /vaporize/library/LIRDict.java | |
parent | 0bbc4cb511bd90cebf94ccfcfce5ff8983ebb918 (diff) |
Added VaporizeVisitor, with VAssign, VMemRead, and VMemWrite
Diffstat (limited to 'vaporize/library/LIRDict.java')
-rw-r--r-- | vaporize/library/LIRDict.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vaporize/library/LIRDict.java b/vaporize/library/LIRDict.java index 2095254..d924d5e 100644 --- a/vaporize/library/LIRDict.java +++ b/vaporize/library/LIRDict.java @@ -10,6 +10,7 @@ import java.util.*; public class LIRDict { private TreeSet<LIRVar> intervals; + private int spilled_num; // the number of spilled registers private ControlFlowGraph cfg; public LIRDict(VFunction f, ControlFlowGraph cfg) { @@ -74,5 +75,12 @@ public class LIRDict { return this.cfg.getFunction(); } + public void addSpilledNum() { + ++this.spilled_num; + } + + public int getSpilledNum() { + return this.spilled_num; + } } |