From ac3855c4313d6cab8e2bb778b5bfa679415cb519 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 24 Mar 2025 18:56:05 +0300 Subject: Driver related fixes and improvements (#175) * Fix simple.sh (pass arguments) * Consistently replace "_" with "-" in command-line options * Add "--dump-time" option to print compilation statistics * Add "--dump-size" option to print generated code size --- .../src/main/java/com/seaofnodes/simple/codegen/CodeGen.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'chapter21/src/main/java') diff --git a/chapter21/src/main/java/com/seaofnodes/simple/codegen/CodeGen.java b/chapter21/src/main/java/com/seaofnodes/simple/codegen/CodeGen.java index 1a148910..d1276114 100644 --- a/chapter21/src/main/java/com/seaofnodes/simple/codegen/CodeGen.java +++ b/chapter21/src/main/java/com/seaofnodes/simple/codegen/CodeGen.java @@ -156,7 +156,7 @@ public class CodeGen { // --------------------------- // Last check for bad programs - int _tTypeCheck; + public int _tTypeCheck; public CodeGen typeCheck() { // Demand phase Opto for cleaning up dead control flow at least, // required for the following GCM. @@ -249,7 +249,7 @@ public class CodeGen { // --------------------------- // Control Flow Graph in RPO order. - int _tGCM; + public int _tGCM; public Ary _cfg = new Ary<>(CFGNode.class); // Global schedule (code motion) nodes @@ -270,7 +270,7 @@ public class CodeGen { // --------------------------- // Local (basic block) scheduler phase, a classic list scheduler - int _tLocal; + public int _tLocal; public CodeGen localSched() { assert _phase == Phase.Schedule; _phase = Phase.LocalSched; @@ -283,7 +283,7 @@ public class CodeGen { // --------------------------- // Register Allocation - int _tRegAlloc; + public int _tRegAlloc; public RegAlloc _regAlloc; public CodeGen regAlloc() { assert _phase == Phase.LocalSched; @@ -305,7 +305,7 @@ public class CodeGen { // --------------------------- // Encoding - int _tEncode; + public int _tEncode; public Encoding _encoding; public CodeGen encode() { assert _phase == Phase.RegAlloc; -- cgit v1.2.3