nir: Add a new helper for iterating phi sources leaving a block
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 18 May 2020 21:49:29 +0000 (16:49 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 19 May 2020 19:31:26 +0000 (19:31 +0000)
commit3fdbeb70e1a1f98baa6a830901aab44ebd74c078
tree695601db2ccc9236161bcdd0a29daf2871b606e0
parent2c8c5cc87d55546cf3b3bedaf0da5bd3ecede322
nir: Add a new helper for iterating phi sources leaving a block

This takes the same callback as nir_foreach_src except it walks all phi
sources which leave a given block.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5094>
src/compiler/nir/nir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_regs_to_ssa.c