mesa/src/microsoft/clc
Alyssa Rosenzweig da752ed7c1 treewide: use nir_def_replace sometimes
Two Coccinelle patches here. Didn't catch nearly as much as I would've liked but
it's a start.

Coccinelle patch:

    @@
    expression intr, repl;
    @@

    -nir_def_rewrite_uses(&intr->def, repl);
    -nir_instr_remove(&intr->instr);
    +nir_def_replace(&intr->def, repl);

Coccinelle patch:

    @@
    identifier intr;
    expression instr, repl;
    @@

    nir_intrinsic_instr *intr = nir_instr_as_intrinsic(instr);
    ...
    -nir_def_rewrite_uses(&intr->def, repl);
    -nir_instr_remove(instr);
    +nir_def_replace(&intr->def, repl);

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Juan A. Suarez Romero <jasuarez@igalia.com> [broadcom]
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com> [lima]
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com> [etna]
Reviewed-by: Pavel Ondračka <pavel.ondracka@gmail.com> [r300]
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29817>
2024-06-21 15:36:56 +00:00
..
clc_compiler.c treewide: use nir_def_replace sometimes 2024-06-21 15:36:56 +00:00
clc_compiler.h microsoft/clc: Add shader model / validator to compiler API 2023-03-31 00:37:19 +00:00
clc_compiler_test.cpp microsoft/clc: Add a test which sinks image derefs 2023-12-06 01:07:24 +00:00
clc_nir.c treewide: use nir_def_replace sometimes 2024-06-21 15:36:56 +00:00
clc_nir.h microsoft/clc: When possible, compute a part-constant "pointer" value for kernel inputs 2024-03-26 20:12:41 +00:00
clon12compiler.def Move a bunch of the CLC stuff from src/microsoft to common code 2021-09-30 07:09:08 +00:00
compute_test.cpp treewide: Replace the usage of TRUE/FALSE with true/false 2023-06-27 18:18:28 +08:00
compute_test.h microsoft/clc: fixup indentation 2022-04-29 07:08:57 +00:00
meson.build microsoft/clc: Install clon12compiler 2024-03-26 20:12:41 +00:00