diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-04-26 20:30:10 -0700 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-04-28 15:54:48 -0700 |
commit | 5015260a0598ada4865b2c6086fc669505f64749 (patch) | |
tree | 5525c401e8a64983d4db83fd08d61209aae24700 /src/compiler/nir/nir_move_vec_src_uses_to_dest.c | |
parent | 9464d8c49813aba77285e7465b96e92a91ed327c (diff) | |
download | external_mesa3d-5015260a0598ada4865b2c6086fc669505f64749.zip external_mesa3d-5015260a0598ada4865b2c6086fc669505f64749.tar.gz external_mesa3d-5015260a0598ada4865b2c6086fc669505f64749.tar.bz2 |
nir: Switch the arguments to nir_foreach_use and friends
This matches the "foreach x in container" pattern found in many other
programming languages. Generated by the following regular expression:
s/nir_foreach_use(\([^,]*\),\s*\([^,]*\))/nir_foreach_use(\2, \1)/
and similar expressions for nir_foreach_use_safe, etc.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/compiler/nir/nir_move_vec_src_uses_to_dest.c')
-rw-r--r-- | src/compiler/nir/nir_move_vec_src_uses_to_dest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_move_vec_src_uses_to_dest.c b/src/compiler/nir/nir_move_vec_src_uses_to_dest.c index 30752a2..7691775 100644 --- a/src/compiler/nir/nir_move_vec_src_uses_to_dest.c +++ b/src/compiler/nir/nir_move_vec_src_uses_to_dest.c @@ -121,7 +121,7 @@ move_vec_src_uses_to_dest_block(nir_block *block) swizzle[vec->src[j].swizzle[0]] = j; } - nir_foreach_use_safe(vec->src[i].src.ssa, use) { + nir_foreach_use_safe(use, vec->src[i].src.ssa) { if (use->parent_instr == &vec->instr) continue; |