NIR Intermediate Representation (NIR) — The Mesa 3D Graphics Library latest documentation

# NIR Intermediate Representation (NIR)

The NIR Intermediate Representation (NIR) is the optimizing compiler stack that sits at the core of most Mesa drivers’ shader compilers. It consists of a set of enums and data structures that make up the IR as well as a suite of helper functions, optimization passes, and lowering passes for building a compiler stack.

- NIR ALU Instructions
  - `nir_op_info`
  - `nir_op_infos`
  - `nir_alu_instr`
  - `nir_alu_src`
  - NIR ALU Opcode Reference:
- NIR Texture Instructions
  - `nir_texop`
  - `nir_tex_src_type`
  - `nir_tex_instr`
  - `nir_tex_src`
  - Texture instruction helpers
  - Texture instruction lowering
- Writing and running NIR unit tests