diff options
author | Jason Ekstrand <[email protected]> | 2016-04-26 20:26:42 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-04-28 15:54:48 -0700 |
commit | 9464d8c49813aba77285e7465b96e92a91ed327c (patch) | |
tree | e39fa6395b6e5fd1eba81fb1520cf047c91cd5f2 /src/compiler/nir/nir_dominance.c | |
parent | e63766fb4b54bc88756ee7e82c3ff8cec0dc5561 (diff) |
nir: Switch the arguments to nir_foreach_function
This matches the "foreach x in container" pattern found in many other
programming languages. Generated by the following regular expression:
s/nir_foreach_function(\([^,]*\),\s*\([^,]*\))/nir_foreach_function(\2, \1)/
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_dominance.c')
-rw-r--r-- | src/compiler/nir/nir_dominance.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compiler/nir/nir_dominance.c b/src/compiler/nir/nir_dominance.c index 8803be31d88..1781cdcc6f4 100644 --- a/src/compiler/nir/nir_dominance.c +++ b/src/compiler/nir/nir_dominance.c @@ -198,7 +198,7 @@ nir_calc_dominance_impl(nir_function_impl *impl) void nir_calc_dominance(nir_shader *shader) { - nir_foreach_function(shader, function) { + nir_foreach_function(function, shader) { if (function->impl) nir_calc_dominance_impl(function->impl); } @@ -258,7 +258,7 @@ nir_dump_dom_tree_impl(nir_function_impl *impl, FILE *fp) void nir_dump_dom_tree(nir_shader *shader, FILE *fp) { - nir_foreach_function(shader, function) { + nir_foreach_function(function, shader) { if (function->impl) nir_dump_dom_tree_impl(function->impl, fp); } @@ -281,7 +281,7 @@ nir_dump_dom_frontier_impl(nir_function_impl *impl, FILE *fp) void nir_dump_dom_frontier(nir_shader *shader, FILE *fp) { - nir_foreach_function(shader, function) { + nir_foreach_function(function, shader) { if (function->impl) nir_dump_dom_frontier_impl(function->impl, fp); } @@ -305,7 +305,7 @@ nir_dump_cfg_impl(nir_function_impl *impl, FILE *fp) void nir_dump_cfg(nir_shader *shader, FILE *fp) { - nir_foreach_function(shader, function) { + nir_foreach_function(function, shader) { if (function->impl) nir_dump_cfg_impl(function->impl, fp); } |