mesa/src/compiler/spirv/tests
Konstantin Seurer de32f9275f treewide: add & use parent instr helpers
We add a bunch of new helpers to avoid the need to touch >parent_instr,
including the full set of:

* nir_def_is_*
* nir_def_as_*_or_null
* nir_def_as_* [assumes the right instr type]
* nir_src_is_*
* nir_src_as_*
* nir_scalar_is_*
* nir_scalar_as_*

Plus nir_def_instr() where there's no more suitable helper.

Also an existing helper is renamed to unify all the names, while we're
churning the tree:

* nir_src_as_alu_instr -> nir_src_as_alu

..and then we port the tree to use the helpers as much as possible, using
nir_def_instr() where that does not work.

Acked-by: Marek Olšák <maraeo@gmail.com>

---

To eliminate nir_def::parent_instr we need to churn the tree anyway, so I'm
taking this opportunity to clean up a lot of NIR patterns.

Co-authored-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38313>
2025-11-12 21:22:13 +00:00
..
avail_vis.cpp vtn: remove acquire/release around make visible/available barriers 2025-08-04 15:36:51 +00:00
cmat.cpp nir: Support printing cmat constants 2025-07-02 16:48:51 +00:00
control_flow_tests.cpp spirv: Rework structured control flow handling 2023-04-20 07:02:42 +00:00
helpers.h all: rename gl_shader_stage to mesa_shader_stage 2025-08-06 10:28:40 +08:00
non_semantic.cpp treewide: add & use parent instr helpers 2025-11-12 21:22:13 +00:00
spirv-to-c-array.py spirv: spirv-to-c-array: use '-' to specify stdin 2025-06-23 21:24:56 +00:00
volatile.cpp
workarounds.cpp spirv/tests: add a test for lower_terminate_to_discard 2025-03-05 19:56:50 +00:00