nir: Split macro nir_foreach_function_with_impl out of nir_foreach_function_impl
authorYonggang Luo <luoyonggang@gmail.com>
Wed, 28 Jun 2023 10:20:40 +0000 (18:20 +0800)
committerMarge Bot <emma+marge@anholt.net>
Thu, 29 Jun 2023 08:36:03 +0000 (08:36 +0000)
commitfde6b51749a7b2ef6b3ecf7ecb34ef8d5813d3f0
treea24e270a2a3012dbdce6ee0f562a6df528ad5af8
parentafa79cd9b882b5c8613184ee70e9e6ea03e37b0b
nir: Split macro nir_foreach_function_with_impl out of nir_foreach_function_impl

This macro nir_foreach_function_with_impl can be used when func and func->impl are both accessed in
foreach loop

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23903>
src/compiler/nir/nir.h