mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-21 17:38:08 +02:00
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>
|
||
|---|---|---|
| .. | ||
| lib | ||
| meson.build | ||
| nv50_ir.cpp | ||
| nv50_ir.h | ||
| nv50_ir_bb.cpp | ||
| nv50_ir_build_util.cpp | ||
| nv50_ir_build_util.h | ||
| nv50_ir_driver.h | ||
| nv50_ir_emit_gk110.cpp | ||
| nv50_ir_emit_gm107.cpp | ||
| nv50_ir_emit_gv100.cpp | ||
| nv50_ir_emit_gv100.h | ||
| nv50_ir_emit_nv50.cpp | ||
| nv50_ir_emit_nvc0.cpp | ||
| nv50_ir_from_nir.cpp | ||
| nv50_ir_graph.cpp | ||
| nv50_ir_graph.h | ||
| nv50_ir_inlines.h | ||
| nv50_ir_lowering_gm107.cpp | ||
| nv50_ir_lowering_gm107.h | ||
| nv50_ir_lowering_gv100.cpp | ||
| nv50_ir_lowering_gv100.h | ||
| nv50_ir_lowering_helper.cpp | ||
| nv50_ir_lowering_helper.h | ||
| nv50_ir_lowering_nv50.cpp | ||
| nv50_ir_lowering_nvc0.cpp | ||
| nv50_ir_lowering_nvc0.h | ||
| nv50_ir_peephole.cpp | ||
| nv50_ir_print.cpp | ||
| nv50_ir_ra.cpp | ||
| nv50_ir_sched_gm107.h | ||
| nv50_ir_serialize.cpp | ||
| nv50_ir_ssa.cpp | ||
| nv50_ir_target.cpp | ||
| nv50_ir_target.h | ||
| nv50_ir_target_gm107.cpp | ||
| nv50_ir_target_gm107.h | ||
| nv50_ir_target_gv100.cpp | ||
| nv50_ir_target_gv100.h | ||
| nv50_ir_target_nv50.cpp | ||
| nv50_ir_target_nv50.h | ||
| nv50_ir_target_nvc0.cpp | ||
| nv50_ir_target_nvc0.h | ||
| nv50_ir_util.cpp | ||
| nv50_ir_util.h | ||