mesa/src/asahi
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 nir: Use getters for nir_src::parent_* 2023-10-10 04:58:05 -04:00
drm-shim asahi: drop unused include paths 2023-07-22 10:10:03 +00:00
layout ail: Force page-alignment for layered attachments 2023-09-05 18:50:34 +00:00
lib asahi: decode: Fix uint64_t format modifiers in agxdecode_stateful() 2023-10-01 12:37:55 -04:00
.clang-format clang-format: Disable formatting by default 2023-08-13 16:48:49 +02:00
meson.build asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00