mesa/src/nouveau/codegen
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
..
lib
meson.build nv/codegen: Merge from_common into from_nir 2023-08-22 10:42:24 -04:00
nv50_ir.cpp nv/codegen: Use nir_lower_clip 2023-08-19 15:34:28 +00:00
nv50_ir.h nv/codegen: Delete copy and assign 2023-08-26 11:04:02 -04:00
nv50_ir_bb.cpp nv/codegen: Remove Function::buildDefSets 2023-08-22 10:42:24 -04:00
nv50_ir_build_util.cpp nouveau: Drop BuildUtil::DataArray 2023-07-21 02:40:35 +00:00
nv50_ir_build_util.h nouveau: Drop BuildUtil::Location 2023-07-21 02:40:36 +00:00
nv50_ir_driver.h nouveau/codegen: Add a 4th optimization level for MemoryOpts 2023-08-21 14:26:34 +00:00
nv50_ir_emit_gk110.cpp nv/codegen: Delete unused OP_CONSTRAINT 2023-08-22 10:42:24 -04:00
nv50_ir_emit_gm107.cpp gm107/ir: fix SULDP for loads without a known format 2023-07-25 23:15:41 +00:00
nv50_ir_emit_gv100.cpp
nv50_ir_emit_gv100.h
nv50_ir_emit_nv50.cpp nv/codegen: Delete unused OP_CONSTRAINT 2023-08-22 10:42:24 -04:00
nv50_ir_emit_nvc0.cpp nv/codegen: Delete unused OP_CONSTRAINT 2023-08-22 10:42:24 -04:00
nv50_ir_from_nir.cpp treewide: use nir_def_replace sometimes 2024-06-21 15:36:56 +00:00
nv50_ir_graph.cpp
nv50_ir_graph.h
nv50_ir_inlines.h
nv50_ir_lowering_gm107.cpp
nv50_ir_lowering_gm107.h nv50/ir: resolve -Woverloaded-virtual=1 warnings 2023-06-15 18:48:10 +00:00
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 nv/codegen: Delete OP_WRSV 2023-08-22 10:42:24 -04:00
nv50_ir_lowering_nvc0.cpp nv/codegen: Delete OP_WRSV 2023-08-22 10:42:24 -04:00
nv50_ir_lowering_nvc0.h nv/codegen: Delete OP_WRSV 2023-08-22 10:42:24 -04:00
nv50_ir_peephole.cpp Do explicit cast to suppress clang warnings 2023-09-06 12:38:09 +00:00
nv50_ir_print.cpp nv/codegen: Delete unused OP_CONSTRAINT 2023-08-22 10:42:24 -04:00
nv50_ir_ra.cpp nv50_ir_ra: Delete unused functions 2023-08-22 10:42:24 -04:00
nv50_ir_sched_gm107.h
nv50_ir_serialize.cpp nouveau: Drop tgsi support from nv50_ir_prog_info 2023-07-21 02:40:35 +00:00
nv50_ir_ssa.cpp nouveau: Make getSize return unsigned int 2023-03-17 16:08:33 +00:00
nv50_ir_target.cpp nv/codegen: Delete unused OP_CONSTRAINT 2023-08-22 10:42:24 -04:00
nv50_ir_target.h
nv50_ir_target_gm107.cpp nv/codegen: Delete OP_POW 2023-08-21 15:34:14 +00:00
nv50_ir_target_gm107.h
nv50_ir_target_gv100.cpp
nv50_ir_target_gv100.h
nv50_ir_target_nv50.cpp nv/codegen: Delete OP_WRSV 2023-08-22 10:42:24 -04:00
nv50_ir_target_nv50.h nv50/ir: Remove few nvc0 specific defines from nv50-specific header. 2023-08-16 10:11:45 +00:00
nv50_ir_target_nvc0.cpp nv/codegen: Delete OP_WRSV 2023-08-22 10:42:24 -04:00
nv50_ir_target_nvc0.h
nv50_ir_util.cpp
nv50_ir_util.h nv/codegen: Delete copy and assign 2023-08-26 11:04:02 -04:00