nir: Drop unused name from nir_ssa_dest_init
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Wed, 17 May 2023 13:08:22 +0000 (09:08 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 17 May 2023 23:46:16 +0000 (23:46 +0000)
commit01e9ee79f70e9047fd37796416165c5174d8c70f
tree3d6a139918e98ce3af2c1af42b1f0724dbb4c6ae
parent7adf6c75efa215d59d466800ddd7a90065157d8b
nir: Drop unused name from nir_ssa_dest_init

Since 624e799cc34 ("nir: Drop nir_ssa_def::name and nir_register::name"), SSA
defs don't have names, making the name argument unused. Drop it from the
signature and fix the call sites. This was done with the help of the following
Coccinelle semantic patch:

    @@
    expression A, B, C, D, E;
    @@

    -nir_ssa_dest_init(A, B, C, D, E);
    +nir_ssa_dest_init(A, B, C, D);

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23078>
118 files changed:
src/amd/common/ac_nir_lower_global_access.c
src/amd/common/ac_nir_lower_image_opcodes_cdna.c
src/amd/common/ac_nir_lower_resinfo.c
src/asahi/compiler/agx_nir_lower_load_mask.c
src/asahi/compiler/agx_nir_lower_texture.c
src/asahi/lib/agx_meta.c
src/broadcom/compiler/v3d_nir_lower_load_store_bitsize.c
src/broadcom/compiler/v3d_nir_lower_robust_access.c
src/broadcom/compiler/v3d_nir_lower_scratch.c
src/broadcom/vulkan/v3dv_meta_copy.c
src/compiler/glsl/glsl_to_nir.cpp
src/compiler/nir/nir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_builder.c
src/compiler/nir/nir_builder.h
src/compiler/nir/nir_builder_opcodes_h.py
src/compiler/nir/nir_builtin_builder.c
src/compiler/nir/nir_clone.c
src/compiler/nir/nir_convert_ycbcr.c
src/compiler/nir/nir_deref.c
src/compiler/nir/nir_from_ssa.c
src/compiler/nir/nir_lower_alu_width.c
src/compiler/nir/nir_lower_atomics_to_ssbo.c
src/compiler/nir/nir_lower_bit_size.c
src/compiler/nir/nir_lower_bitmap.c
src/compiler/nir/nir_lower_drawpixels.c
src/compiler/nir/nir_lower_fb_read.c
src/compiler/nir/nir_lower_image.c
src/compiler/nir/nir_lower_indirect_derefs.c
src/compiler/nir/nir_lower_input_attachments.c
src/compiler/nir/nir_lower_int64.c
src/compiler/nir/nir_lower_io.c
src/compiler/nir/nir_lower_io_arrays_to_elements.c
src/compiler/nir/nir_lower_io_to_scalar.c
src/compiler/nir/nir_lower_io_to_temporaries.c
src/compiler/nir/nir_lower_locals_to_regs.c
src/compiler/nir/nir_lower_mem_access_bit_sizes.c
src/compiler/nir/nir_lower_phis_to_scalar.c
src/compiler/nir/nir_lower_readonly_images_to_tex.c
src/compiler/nir/nir_lower_regs_to_ssa.c
src/compiler/nir/nir_lower_ssbo.c
src/compiler/nir/nir_lower_subgroups.c
src/compiler/nir/nir_lower_tex.c
src/compiler/nir/nir_lower_tex_shadow.c
src/compiler/nir/nir_lower_vars_to_ssa.c
src/compiler/nir/nir_opt_comparison_pre.c
src/compiler/nir/nir_opt_if.c
src/compiler/nir/nir_opt_peephole_select.c
src/compiler/nir/nir_opt_phi_precision.c
src/compiler/nir/nir_opt_uniform_atomics.c
src/compiler/nir/nir_opt_vectorize.c
src/compiler/nir/nir_phi_builder.c
src/compiler/nir/nir_repair_ssa.c
src/compiler/nir/nir_search.c
src/compiler/nir/nir_serialize.c
src/compiler/nir/nir_split_64bit_vec3_and_vec4.c
src/compiler/nir/nir_to_lcssa.c
src/compiler/nir/tests/dce_tests.cpp
src/compiler/nir/tests/load_store_vectorizer_tests.cpp
src/compiler/nir/tests/loop_analyze_tests.cpp
src/compiler/nir/tests/loop_unroll_tests.cpp
src/compiler/nir/tests/lower_returns_tests.cpp
src/compiler/nir/tests/mod_analysis_tests.cpp
src/compiler/nir/tests/opt_if_tests.cpp
src/compiler/nir/tests/opt_shrink_vectors_tests.cpp
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_amd.c
src/compiler/spirv/vtn_glsl450.c
src/compiler/spirv/vtn_subgroup.c
src/compiler/spirv/vtn_variables.c
src/freedreno/ir3/ir3_nir_lower_64b.c
src/freedreno/ir3/ir3_nir_lower_io_offsets.c
src/freedreno/ir3/ir3_nir_lower_layer_id.c
src/freedreno/ir3/ir3_nir_lower_tess.c
src/freedreno/ir3/ir3_nir_lower_wide_load_store.c
src/freedreno/vulkan/tu_clear_blit.cc
src/freedreno/vulkan/tu_shader.cc
src/gallium/auxiliary/nir/nir_draw_helpers.c
src/gallium/auxiliary/nir/tgsi_to_nir.c
src/gallium/drivers/crocus/crocus_program.c
src/gallium/drivers/d3d12/d3d12_blit.cpp
src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c
src/gallium/drivers/etnaviv/etnaviv_nir.c
src/gallium/drivers/lima/ir/lima_nir_duplicate_intrinsic.c
src/gallium/drivers/lima/ir/lima_nir_lower_uniform_to_scalar.c
src/gallium/drivers/lima/ir/lima_nir_split_load_input.c
src/gallium/drivers/r600/sfn/sfn_instr_tex.cpp
src/gallium/drivers/r600/sfn/sfn_nir.cpp
src/gallium/drivers/r600/sfn/sfn_nir_lower_64bit.cpp
src/gallium/drivers/r600/sfn/sfn_nir_lower_fs_out_to_vector.cpp
src/gallium/drivers/r600/sfn/sfn_nir_lower_tess_io.cpp
src/gallium/drivers/r600/sfn/sfn_nir_vectorize_vs_inputs.c
src/gallium/drivers/vc4/vc4_nir_lower_io.c
src/gallium/drivers/vc4/vc4_nir_lower_txf_ms.c
src/gallium/drivers/zink/zink_compiler.c
src/gallium/drivers/zink/zink_lower_cubemap_to_array.c
src/imagination/rogue/nir/rogue_nir_lower_io.c
src/intel/blorp/blorp_blit.c
src/intel/blorp/blorp_nir_builder.h
src/intel/compiler/brw_kernel.c
src/intel/compiler/brw_nir.c
src/intel/compiler/brw_nir_lower_storage_image.c
src/intel/compiler/brw_nir_opt_peephole_ffma.c
src/intel/compiler/brw_nir_opt_peephole_imul32x16.c
src/intel/vulkan_hasvk/anv_nir_lower_ycbcr_textures.c
src/mesa/program/prog_to_nir.c
src/mesa/state_tracker/st_atifs_to_nir.c
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_pbo.c
src/mesa/state_tracker/st_pbo_compute.c
src/microsoft/compiler/dxil_nir.c
src/microsoft/compiler/dxil_nir_lower_int_cubemaps.c
src/microsoft/compiler/dxil_nir_lower_int_samplers.c
src/microsoft/vulkan/dzn_nir.c
src/panfrost/lib/pan_blitter.c
src/panfrost/midgard/midgard_compile.c
src/panfrost/midgard/midgard_errata_lod.c
src/panfrost/vulkan/panvk_vX_meta_copy.c