From 27de8a34f346cddef322c7b65555ddb803532d74 Mon Sep 17 00:00:00 2001 From: bd-912 Date: Tue, 16 Apr 2024 16:45:30 -0600 Subject: Make symt a class variable in BoilSimp --- vaporize/library/TotalSpill.java | 68 ---------------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 vaporize/library/TotalSpill.java (limited to 'vaporize/library/TotalSpill.java') diff --git a/vaporize/library/TotalSpill.java b/vaporize/library/TotalSpill.java deleted file mode 100644 index cd75712..0000000 --- a/vaporize/library/TotalSpill.java +++ /dev/null @@ -1,68 +0,0 @@ -package vaporize.library; - -import cs132.vapor.ast.*; -import st.*; -import misc.*; -import java.util.*; - -public class TotalSpill extends VInstr.VisitorPR { - - - public R visit(P p, VMemRead n) throws RuntimeException { - PrintFilter.print(String.format("%s (%s)", - n.getClass().getSimpleName(), - n.sourcePos.toString()), true); - return null; - } - - public R visit(P p, VMemWrite n) throws RuntimeException { - PrintFilter.print(String.format("%s (%s)", - n.getClass().getSimpleName(), - n.sourcePos.toString()), true); - return null; - } - - public R visit(P p, VAssign n) throws RuntimeException { - PrintFilter.print(String.format("%s (%s)", - n.getClass().getSimpleName(), - n.sourcePos.toString()), true); - return null; - } - - public R visit(P p, VBranch n) throws RuntimeException { - PrintFilter.print(String.format("%s (%s)", - n.getClass().getSimpleName(), - n.sourcePos.toString()), true); - return null; - } - - public R visit(P p, VGoto n) throws RuntimeException { - PrintFilter.print(String.format("%s (%s)", - n.getClass().getSimpleName(), - n.sourcePos.toString()), true); - return null; - } - - public R visit(P p, VCall n) throws RuntimeException { - PrintFilter.print(String.format("%s (%s)", - n.getClass().getSimpleName(), - n.sourcePos.toString()), true); - return null; - } - - public R visit(P p, VBuiltIn n) throws RuntimeException { - PrintFilter.print(String.format("%s (%s:%s)", - n.getClass().getSimpleName(), - n.op.name, - n.sourcePos.toString()), true); - return null; - } - - public R visit(P p, VReturn n) throws RuntimeException { - PrintFilter.print(String.format("%s (%s)", - n.getClass().getSimpleName(), - n.sourcePos.toString()), true); - return null; - } - -} -- cgit v1.2.3