summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_dominance.c
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2016-04-13 16:25:34 -0400
committerJason Ekstrand <[email protected]>2016-04-20 09:47:05 -0700
commitb6dc940ec273252678d40707d300851fa1c85ea5 (patch)
tree3709a76d6d2bff986f8d8ee0700c3fc072c68f48 /src/compiler/nir/nir_dominance.c
parent7143068296aaca8c5af3469c013a7c2a850aee84 (diff)
nir: rename nir_foreach_block*() to nir_foreach_block*_call()
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_dominance.c')
-rw-r--r--src/compiler/nir/nir_dominance.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/compiler/nir/nir_dominance.c b/src/compiler/nir/nir_dominance.c
index d95f3968074..0abfcd29609 100644
--- a/src/compiler/nir/nir_dominance.c
+++ b/src/compiler/nir/nir_dominance.c
@@ -176,9 +176,9 @@ calc_dom_children(nir_function_impl* impl)
{
void *mem_ctx = ralloc_parent(impl);
- nir_foreach_block(impl, block_count_children, NULL);
- nir_foreach_block(impl, block_alloc_children, mem_ctx);
- nir_foreach_block(impl, block_add_child, NULL);
+ nir_foreach_block_call(impl, block_count_children, NULL);
+ nir_foreach_block_call(impl, block_alloc_children, mem_ctx);
+ nir_foreach_block_call(impl, block_add_child, NULL);
}
static void
@@ -204,14 +204,14 @@ nir_calc_dominance_impl(nir_function_impl *impl)
state.impl = impl;
state.progress = true;
- nir_foreach_block(impl, init_block_cb, &state);
+ nir_foreach_block_call(impl, init_block_cb, &state);
while (state.progress) {
state.progress = false;
- nir_foreach_block(impl, calc_dominance_cb, &state);
+ nir_foreach_block_call(impl, calc_dominance_cb, &state);
}
- nir_foreach_block(impl, calc_dom_frontier_cb, &state);
+ nir_foreach_block_call(impl, calc_dom_frontier_cb, &state);
nir_block *start_block = nir_start_block(impl);
start_block->imm_dom = NULL;
@@ -282,7 +282,7 @@ void
nir_dump_dom_tree_impl(nir_function_impl *impl, FILE *fp)
{
fprintf(fp, "digraph doms_%s {\n", impl->function->name);
- nir_foreach_block(impl, dump_block_dom, fp);
+ nir_foreach_block_call(impl, dump_block_dom, fp);
fprintf(fp, "}\n\n");
}
@@ -313,7 +313,7 @@ dump_block_dom_frontier(nir_block *block, void *state)
void
nir_dump_dom_frontier_impl(nir_function_impl *impl, FILE *fp)
{
- nir_foreach_block(impl, dump_block_dom_frontier, fp);
+ nir_foreach_block_call(impl, dump_block_dom_frontier, fp);
}
void
@@ -340,7 +340,7 @@ void
nir_dump_cfg_impl(nir_function_impl *impl, FILE *fp)
{
fprintf(fp, "digraph cfg_%s {\n", impl->function->name);
- nir_foreach_block(impl, dump_block_succs, fp);
+ nir_foreach_block_call(impl, dump_block_succs, fp);
fprintf(fp, "}\n\n");
}