code wiki / (root) / regalloc.nx

regalloc.nx

buildroot/runtime/regalloc.nx

1126 B24 linesdepth 5pulls 6 transitivereach 20 importersview sourcekind librarytopic regalloc
docsdependenciesstructsconstsfunctions

about

regalloc.nx -- alias stub. The original regalloc.nx was renamed to nx_regalloc.nx in commit 8302d014 (Poletto-Sarkar spillAtInterval eviction). Some consumers were updated (regalloc_test.nx) but others were not (nxc.nx, main.nx, smoke_nxc_pipeline*, etc.). This stub keeps the older import path resolvable so the bootstrap chain stays intact. Mechanism: NishiLang import resolution splices file text inline + dedupes by canonicalised path (see import.nx invariants I1/I3). So `import "regalloc.nx"` -> reads this file -> sees the next line -> reads nx_regalloc.nx -> splices its content. Consumers see every symbol nx_regalloc.nx exports, transparently. This is the four-pillar REPAIR + the S-class movability affordance for the "rename without consumer update" bug class. Pair with bench/nx_import_closure.sh (PREVENT layer) so future moves either leave stubs or fail the audit. Deprecation: when every consumer of "regalloc.nx" has been updated to "nx_regalloc.nx", delete this stub. The closure check will catch any straggler.

dependencies 1 imports · 20 importers

nx_regalloc.nx regalloc.nx _offc_nxc_small.nx main.nx nxc.nx riscv_fp_test.nx rvv_regname_test.nx smoke_nxc_pipeline.nx smoke_nxc_pipeline10.nx smoke_nxc_pipeline13.nx smoke_nxc_pipeline15.nx smoke_nxc_pipeline2.nx

diagram shows first 10 each side; +0 more imports, +10 more importers in the complete lists below.

imports: nx_regalloc.nx

imported by: _offc_nxc_small.nxmain.nxnxc.nxriscv_fp_test.nxrvv_regname_test.nxsmoke_nxc_pipeline.nxsmoke_nxc_pipeline10.nxsmoke_nxc_pipeline13.nxsmoke_nxc_pipeline15.nxsmoke_nxc_pipeline2.nxsmoke_nxc_pipeline7.nxsmoke_nxc_pipeline8.nxsmoke_nxc_pipeline9.nxsmoke_regalloc_min.nxsmoke_regalloc_min2.nxsmoke_regalloc_min3.nxsmoke_regalloc_min4.nxsmoke_regalloc_min5.nxsmoke_regalloc_min6.nxsmoke_regalloc_step.nx

structs

none

consts

none

functions

none