From 300d2a9c3672acacc8bdd8d5370a424651a00571 Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Sun, 18 Oct 2026 22:09:58 -0700 Subject: Cleanup & backport The phase rework, made new phases explicit and add them to the CodeGen driver. Fix the flag-spilling on X86 and ARM. Fix the GCM conservative anti-deps and backport. --- chapter19/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'chapter19/README.md') diff --git a/chapter19/README.md b/chapter19/README.md index d8f7c9e1..c7bd1b9f 100644 --- a/chapter19/README.md +++ b/chapter19/README.md @@ -43,6 +43,16 @@ the porting code is looked up and used then. This allows the Java implementation at least the ability to add CPU ports lazily. +The driver from Chapter 18 accepts a CPU and calling convention when machine +selection is needed: + +```java +code.driver(CodeGen.Phase.LocalSched, "x86_64_v2", "SystemV"); +``` + +This runs through loop discovery, instruction selection, and both schedulers. +Omitting the CPU keeps the ideal graph for evaluation. + ## Machine Specific Nodes We add a notion of "machine specific" Nodes, which implement the `MachNode` -- cgit v1.2.3