treewide: Use nir_before/after_impl for more elaborate cases

Via Coccinelle patch:

    @@
    expression func_impl;
    @@

    -nir_before_block(nir_start_block(func_impl))
    +nir_before_impl(func_impl)

    @@
    expression func_impl;
    @@

    -nir_after_block(nir_impl_last_block(func_impl))
    +nir_after_impl(func_impl)

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24910>
This commit is contained in:
Alyssa Rosenzweig
2023-08-28 13:58:57 -04:00
committed by Marge Bot
parent 25cc04c59b
commit f80c57c38f
29 changed files with 35 additions and 39 deletions
@@ -85,7 +85,7 @@ static void
initialise_coverage_var(struct lower_line_smooth_state *state,
nir_function_impl *impl)
{
nir_builder b = nir_builder_at(nir_before_block(nir_start_block(impl)));
nir_builder b = nir_builder_at(nir_before_impl(impl));
nir_def *line_width = nir_load_line_width(&b);