From 62091005231095abbf8e2cebbfce708815cb63f0 Mon Sep 17 00:00:00 2001 From: bd-912 Date: Wed, 24 Apr 2024 21:05:15 -0600 Subject: Added VaporizeVisitor, with VAssign, VMemRead, and VMemWrite --- vaporize/library/LIRDict.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vaporize/library/LIRDict.java') 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 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; + } } -- cgit v1.2.3