mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-20 02:38:07 +02:00
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>
|
||
|---|---|---|
| .. | ||
| compiler.h | ||
| disassemble.c | ||
| disassemble.h | ||
| helpers.h | ||
| meson.build | ||
| midgard.h | ||
| midgard_address.c | ||
| midgard_compile.c | ||
| midgard_compile.h | ||
| midgard_derivatives.c | ||
| midgard_emit.c | ||
| midgard_errata_lod.c | ||
| midgard_helper_invocations.c | ||
| midgard_liveness.c | ||
| midgard_nir.h | ||
| midgard_nir_algebraic.py | ||
| midgard_nir_lower_image_bitsize.c | ||
| midgard_nir_type_csel.c | ||
| midgard_ops.c | ||
| midgard_ops.h | ||
| midgard_opt_copy_prop.c | ||
| midgard_opt_dce.c | ||
| midgard_opt_perspective.c | ||
| midgard_opt_prop.c | ||
| midgard_print.c | ||
| midgard_print_constant.c | ||
| midgard_quirks.h | ||
| midgard_ra.c | ||
| midgard_ra_pipeline.c | ||
| midgard_schedule.c | ||
| mir.c | ||
| mir_promote_uniforms.c | ||
| mir_squeeze.c | ||
| nir_fuse_io_16.c | ||