mesa/src/microsoft/compiler
Alyssa Rosenzweig 82ae8b1d33 treewide: simplify nir_def_rewrite_uses_after
Most of the time with nir_def_rewrite_uses_after, you want to rewrite after the
replacement. Make that the default thing to be more ergonomic and to drop
parent_instr uses.

We leave nir_def_rewrite_uses_after_instr defined if you really want the old
signature with an arbitrary after point.

Via Coccinelle patch:

    @@
    expression a, b;
    @@

    -nir_def_rewrite_uses_after(a, b, b->parent_instr)
    +nir_def_rewrite_uses_after_def(a, b)

Followed by a bunch of sed.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
Acked-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36489>
2025-08-01 15:34:24 +00:00
..
dxcapi.h dxil: Fixes compiling dxcapi.h with mingw. 2022-06-15 11:38:24 +00:00
dxil_buffer.c
dxil_buffer.h
dxil_buffer_test.c
dxil_container.c microsoft/compiler: Fix PSV0 for validator 1.8 2025-06-18 16:49:36 +00:00
dxil_container.h microsoft/compiler: Fix PSV0 for validator 1.8 2025-06-18 16:49:36 +00:00
dxil_dump.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
dxil_dump.h
dxil_dump_decls.h
dxil_enums.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
dxil_enums.h microsoft/compiler: Simplify I/O component type enum handling 2024-04-04 20:29:10 +00:00
dxil_function.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
dxil_function.h microsoft/compiler: Implement more wave/quad ops 2023-01-24 11:00:05 -08:00
dxil_internal.h microsoft/compiler: Support vec/struct const vals 2023-06-13 00:43:36 +00:00
dxil_module.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
dxil_module.h microsoft/compiler: Put holes in driver_location based on I/O variable sizes 2024-12-02 22:40:39 +00:00
dxil_nir.c treewide: simplify nir_def_rewrite_uses_after 2025-08-01 15:34:24 +00:00
dxil_nir.h microsoft/compiler: Use NIR_PASS instead of NIR_PASS_V 2025-07-25 08:55:14 -07:00
dxil_nir_algebraic.py microsoft: Stop claiming dot_4x8_sat support 2023-12-06 23:15:33 +00:00
dxil_nir_lower_int_cubemaps.c treewide: use nir_def_as_* 2025-08-01 15:34:24 +00:00
dxil_nir_lower_int_cubemaps.h microsoft/compiler: make sampler-lowering optional 2022-06-10 22:14:14 +00:00
dxil_nir_lower_int_samplers.c treewide: use nir_def_as_* 2025-08-01 15:34:24 +00:00
dxil_nir_lower_int_samplers.h micosoft: define enum dxil_tex_wrap to avoid the usage of enum pipe_tex_wrap 2023-11-04 00:02:59 +00:00
dxil_nir_lower_vs_vertex_conversion.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
dxil_nir_tess.c microsoft/compiler: Use NIR_PASS instead of NIR_PASS_V 2025-07-25 08:55:14 -07:00
dxil_signature.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
dxil_signature.h microsoft/compiler: Fix PSV0 for validator 1.8 2025-06-18 16:49:36 +00:00
dxil_validator.cpp microsoft/compiler: Declare shader model 6.8 / validator 1.8 2024-01-20 00:07:15 +00:00
dxil_validator.h microsoft/spirv2dxil: Refactor to make SM and validator versions public 2022-10-24 16:15:31 +00:00
dxil_versions.h microsoft/compiler: Declare shader model 6.8 / validator 1.8 2024-01-20 00:07:15 +00:00
meson.build build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
nir_to_dxil.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
nir_to_dxil.h microsoft/compiler: Separate 'advanced texture ops' from SM6.7 2025-06-23 23:10:15 +00:00