code wiki / ir
topic: ir
21 modules sharing the ir name family (derived from the tree's prefix discipline).
The 'ir' topic family in the Nishi sovereign ecosystem focuses on intermediate representation (IR) development and validation, supporting both compilation and shader generation. Modules like `nx_ir` provide SSA IR for nxc2, while `nx_ir_cast_identity_after_t206` handles shader backend generation, converting NishiLang to GLSL and WGSL. `ir_test` ensures the reliability of these IR transformations, forming a cohesive pipeline for code analysis and execution.
auto-narrated by the local model from this topic's module headers; links verified against the wiki index.
narrated overview -- maintained by the narration lane, module links verified against this wiki.
| module | description | lines | funcs |
|---|---|---|---|
| ir.nx | alias stub. | 13 | 0 |
| ir_test.nx | self-test for ir.nx library. | 39 | 1 |
| ir_validate.nx | alias stub. | 13 | 0 |
| nx_ir.nx | nxc2's SSA IR, ported to NishiLang. | 1804 | 109 |
| nx_ir_cast_capacity_expanded_t206.nx | THE SHADER IR: ONE source of truth, N dialect backends. | 3788 | 271 |
| nx_ir_cast_capacity_t206.nx | 10 | 2 | |
| nx_ir_cast_identity_after_t206.nx | THE SHADER BACKENDS: NishiLang in, GLSL and WGSL out. | 3788 | 271 |
| nx_ir_cast_identity_before_t206.nx | THE SHADER IR: ONE source of truth, N dialect backends. | 3783 | 271 |
| nx_ir_cast_identity_t206.nx | 12 | 3 | |
| nx_ir_closure_gate_t206.nx | 18 | 4 | |
| nx_ir_dump.nx | bits-up IR-dump primitive for self-host | 155 | 4 |
| nx_ir_eval.nx | sovereign IR evaluation metrics: THE RULER for search SOTA. | 139 | 8 |
| nx_ir_eval_gate.nx | KAT for nx_ir_eval (the search-SOTA ruler). | 63 | 1 |
| nx_ir_substitute_pairs_candidate_t216.nx | 58 | 4 | |
| nx_ir_substitute_qualification_t206.nx | 59 | 4 | |
| nx_ir_validate.nx | structural invariants on the in-memory IR. | 271 | 6 |
| nx_ir_world_capacity_expanded_t206.nx | THE SHADER IR: ONE source of truth, N dialect backends. | 3787 | 271 |
| nx_ir_world_capacity_t206.nx | 10 | 2 | |
| nx_ir_world_identity_after_t206.nx | THE SHADER BACKENDS: NishiLang in, GLSL and WGSL out. | 3787 | 271 |
| nx_ir_world_identity_before_t206.nx | THE SHADER IR: ONE source of truth, N dialect backends. | 3784 | 271 |
| nx_ir_world_identity_t206.nx | 12 | 3 |