summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_inline_functions.c
diff options
context:
space:
mode:
authorConnor Abbott <cwabbott0@gmail.com>2016-04-13 16:25:34 -0400
committerJason Ekstrand <jason.ekstrand@intel.com>2016-04-20 09:47:05 -0700
commitb6dc940ec273252678d40707d300851fa1c85ea5 (patch)
tree3709a76d6d2bff986f8d8ee0700c3fc072c68f48 /src/compiler/nir/nir_inline_functions.c
parent7143068296aaca8c5af3469c013a7c2a850aee84 (diff)
downloadexternal_mesa3d-b6dc940ec273252678d40707d300851fa1c85ea5.zip
external_mesa3d-b6dc940ec273252678d40707d300851fa1c85ea5.tar.gz
external_mesa3d-b6dc940ec273252678d40707d300851fa1c85ea5.tar.bz2
nir: rename nir_foreach_block*() to nir_foreach_block*_call()
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/compiler/nir/nir_inline_functions.c')
-rw-r--r--src/compiler/nir/nir_inline_functions.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/nir/nir_inline_functions.c b/src/compiler/nir/nir_inline_functions.c
index 4a08dcc..3022132 100644
--- a/src/compiler/nir/nir_inline_functions.c
+++ b/src/compiler/nir/nir_inline_functions.c
@@ -181,7 +181,7 @@ inline_functions_block(nir_block *block, void *void_state)
*/
/* Figure out when we need to lower to a shadow local */
- nir_foreach_block(callee_copy, lower_params_to_locals_block, callee_copy);
+ nir_foreach_block_call(callee_copy, lower_params_to_locals_block, callee_copy);
for (unsigned i = 0; i < callee_copy->num_params; i++) {
nir_variable *param = callee_copy->params[i];
@@ -192,7 +192,7 @@ inline_functions_block(nir_block *block, void *void_state)
}
}
- nir_foreach_block(callee_copy, rewrite_param_derefs_block, call);
+ nir_foreach_block_call(callee_copy, rewrite_param_derefs_block, call);
/* Pluck the body out of the function and place it here */
nir_cf_list body;
@@ -237,7 +237,7 @@ inline_function_impl(nir_function_impl *impl, struct set *inlined)
state.progress = false;
nir_builder_init(&state.builder, impl);
- nir_foreach_block(impl, inline_functions_block, &state);
+ nir_foreach_block_call(impl, inline_functions_block, &state);
if (state.progress) {
/* SSA and register indices are completely messed up now */