code wiki / (root) / nx_smoke_regalloc_step.nx

nx_smoke_regalloc_step.nx

buildroot/runtime/nx_smoke_regalloc_step.nx

2784 B83 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind smoketopic smoke
docsdependenciesstructsconstsfunctions

about

Replay regalloc_function step-by-step on a binop function, exiting with a different code at each checkpoint. Whichever code we exit with tells us the LAST step that completed.

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_types.nx nx_ir.nx nx_regalloc.nx nx_smoke_regalloc_step.nx

imports: nx_syscalls.nxnx_types.nxnx_ir.nxnx_regalloc.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap ir_function_new sys_mmap ↻ ir_type_i64 alloc_type sys_mmap ↻ ir_block_new nx_assert_ptr sys_write nx_puts_err sys_write ↻ nx_assert sys_write ↻ nx_puts_err ↻ nx_assert_lt sys_write ↻ nx_puti_err sys_mmap ↻ sys_write ↻ nx_puts_err ↻ ir_const_i64 nx_assert_ptr ↻ nx_assert ↻ alloc_value nx_assert_ptr ↻ nx_assert ↻ nx_assert_lt ↻ ir_type_i64 ↻ ir_emit_binop nx_assert_ptr ↻ nx_assert ↻ alloc_instr nx_assert_ptr ↻ nx_assert ↻ nx_assert_lt ↻ alloc_value ↻ append_instr build_intervals intv_at

structs

none

consts

15const K_MAGIC_4096: i64 = 4096

functions

17func main() -> i64