diff options
| author | Dmitry Stogov <dmitrystogov@gmail.com> | 2025-03-24 18:56:05 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-24 08:56:05 -0700 |
| commit | ac3855c4313d6cab8e2bb778b5bfa679415cb519 (patch) | |
| tree | 65e133808c318951a802b6b156676939bcc530d9 /chapter21/src/main/java/com | |
| parent | 3db126e018388facfab368ecb2c8f8bc566afe1a (diff) | |
| download | Simple-ac3855c4313d6cab8e2bb778b5bfa679415cb519.tar.gz Simple-ac3855c4313d6cab8e2bb778b5bfa679415cb519.zip | |
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
Diffstat (limited to 'chapter21/src/main/java/com')
| -rw-r--r-- | chapter21/src/main/java/com/seaofnodes/simple/codegen/CodeGen.java | 10 |
1 files changed, 5 insertions, 5 deletions
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<CFGNode> _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; |
