Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sw-codegen-core

Codegen scaffolding for the sw-langtools toolchain. Generic over Target.

Role

Hosts the target-independent pieces of code generation:

  • Backend trait (per-target backends implement it).
  • Object<T>, EmittedFunction<T>, EmittedGlobal, Fixup -- what backends produce.
  • regalloc::LinearScan -- generic register-allocation framework.
  • branch -- branch relaxation driver (reads ranges from per-ISA -isa).
  • frame -- function prologue/epilogue templates.
  • asm -- assembly text pretty-printer.

Per-ISA codegen (sw-ibm1130-codegen, sw-cor24-codegen, etc.) implements Backend and supplies its instruction-selection patterns, target-specific peepholes, and intrinsic lowering.

Status

0.1.0 skeleton. Sub-modules are stubs; real implementations land during IBM 1130 bring-up (gen-isa saga foundation-and-1130-bringup, steps 9-11).

Sibling layout

~/github/sw-langtools/. See sw-isa-core for the full layout.

License

MIT.

About

Codegen scaffolding (regalloc, branch relaxation, frame, asm) for the sw-langtools toolchain

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages