summaryrefslogtreecommitdiff
path: root/vaporize/library/LIRDict.java
diff options
context:
space:
mode:
Diffstat (limited to 'vaporize/library/LIRDict.java')
-rw-r--r--vaporize/library/LIRDict.java8
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;
+ }
}