mesa/src/panfrost/midgard
Alyssa Rosenzweig c39896b17b nir: Use getters for nir_src::parent_*
First, we need to give the parent_instr field a unique name to be able to
replace with a helper.  We have parent_instr fields for both nir_src and
nir_def, so let's rename nir_src::parent_instr in preparation for rework.

This was done with a combination of sed and manual fix-ups.

Then we use semantic patches plus manual fixups:

    @@
    expression s;
    @@

    -s->renamed_parent_instr
    +nir_src_parent_instr(s)

    @@
    expression s;
    @@

    -s.renamed_parent_instr
    +nir_src_parent_instr(&s)

    @@
    expression s;
    @@

    -s->parent_if
    +nir_src_parent_if(s)

    @@
    expression s;
    @@

    -s.renamed_parent_if
    +nir_src_parent_if(&s)

    @@
    expression s;
    @@

    -s->is_if
    +nir_src_is_if(s)

    @@
    expression s;
    @@

    -s.is_if
    +nir_src_is_if(&s)

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24671>
2023-10-10 04:58:05 -04:00
..
compiler.h pan/mdg: Don't reference nir_dest 2023-08-14 21:22:52 +00:00
disassemble.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
disassemble.h panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
helpers.h pan/mdg: Remove reference to removed macro 2023-03-11 06:30:02 +00:00
meson.build pan/mdg: Propagate modifiers in the backend 2023-06-30 16:29:35 -04:00
midgard.h pan/mdg: Remove MSGS debug 2023-01-16 22:20:43 +00:00
midgard_address.c nir: Drop "SSA" from NIR language 2023-08-12 16:44:41 -04:00
midgard_compile.c nir/move_vec_src_uses_to_dest: allow to skip reuse of constant sources 2023-09-19 18:05:37 +02:00
midgard_compile.h nir: unify lower_bitfield_extract with has_bfe 2023-08-22 12:08:37 +00:00
midgard_derivatives.c nir: Drop nir_alu_dest 2023-08-14 21:22:53 +00:00
midgard_emit.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
midgard_errata_lod.c treewide: Drop nir_ssa_for_src users 2023-09-18 10:25:17 -04:00
midgard_helper_invocations.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
midgard_liveness.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
midgard_nir.h pan/mdg: Type CSEL with a NIR pass 2023-06-30 16:29:35 -04:00
midgard_nir_algebraic.py pan/mdg: Lower isub in common code 2023-06-30 16:29:35 -04:00
midgard_nir_lower_image_bitsize.c treewide: Drop nir_ssa_for_src users 2023-09-18 10:25:17 -04:00
midgard_nir_type_csel.c nir: Drop nir_alu_dest 2023-08-14 21:22:53 +00:00
midgard_ops.c panfrost: Fix up some formatting for clang-format 2022-12-24 02:22:57 +00:00
midgard_ops.h panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
midgard_opt_copy_prop.c pan/mdg: Copy-prop even with swizzle restrictions 2023-06-30 16:29:35 -04:00
midgard_opt_dce.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
midgard_opt_perspective.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
midgard_opt_prop.c pan/mdg: Propagate modifiers in the backend 2023-06-30 16:29:35 -04:00
midgard_print.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
midgard_print_constant.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
midgard_quirks.h panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
midgard_ra.c pan/mdg: Lower special reads better 2023-06-30 16:29:35 -04:00
midgard_ra_pipeline.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
midgard_schedule.c pan/mdg: Reset predicate.exclude while scheduling 2023-06-30 16:29:35 -04:00
mir.c pan/mdg: Fix temp count calculation 2023-06-30 16:29:35 -04:00
mir_promote_uniforms.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
mir_squeeze.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
nir_fuse_io_16.c nir: Use getters for nir_src::parent_* 2023-10-10 04:58:05 -04:00