nir: Add a nir_foreach_function_temp_variable helper

Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5966>
This commit is contained in:
Jason Ekstrand
2020-05-20 10:18:14 -05:00
committed by Marge Bot
parent 2956d53400
commit 92dcda5ce9
5 changed files with 10 additions and 4 deletions

View File

@@ -1431,7 +1431,7 @@ print_function_impl(nir_function_impl *impl, print_state *state)
fprintf(fp, "{\n");
nir_foreach_variable(var, &impl->locals) {
nir_foreach_function_temp_variable(var, impl) {
fprintf(fp, "\t");
print_var_decl(var, state);
}