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:

committed by
Marge Bot

parent
2956d53400
commit
92dcda5ce9
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user