diff options
Diffstat (limited to 'chapter19/README.md')
| -rw-r--r-- | chapter19/README.md | 10 |
1 files changed, 10 insertions, 0 deletions
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` |
