Problem
A lot of backend code is unwired: llvm_codegen.zig / llvm_backend.zig are never called; packages/wasm is not in build.zig and codegen/src/wasm.zig uses the old ArrayList.init API; packages/regalloc is only used by its own tests while native codegen uses a 5-register bitmask allocator; packages/build/src/lto.zig and cross_compilation.zig are referenced nowhere; packages/linker is not wired into the build; the planned split of native_codegen.zig stopped after one extracted module.
Evidence (origin/main @ d4b219507)
packages/codegen/src/codegen.zigpackages/codegen/src/native_codegen.zig:115-160packages/codegen/src/native/README.md
Scope
- Decision record in
docs/docs/DECISIONS.md: direct codegen vs. LLVM (vs. both) for user-space AOT, x64 and aarch64. - Each listed module is either wired with tests or deleted.
- If direct codegen stays: adopt
packages/regalloc(linear scan) in place of the bitmask allocator.
Acceptance criteria
- Decision record merged.
- No backend module remains that is neither built nor tested.
- Parity-status docs updated to match.