code wiki / (root) / regalloc.nx

regalloc.nx source

↩ module page · 24 lines · 1126 B

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