This macro nir_foreach_function_with_impl can be used when func and func->impl are both accessed in foreach loop
There is code want this
cc @kusma @alyssa