nir: Switch the arguments to nir_foreach_use and friends
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 27 Apr 2016 03:30:10 +0000 (20:30 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 28 Apr 2016 22:54:48 +0000 (15:54 -0700)
commit5015260a0598ada4865b2c6086fc669505f64749
tree5525c401e8a64983d4db83fd08d61209aae24700
parent9464d8c49813aba77285e7465b96e92a91ed327c
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>
12 files changed:
src/compiler/nir/nir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_to_source_mods.c
src/compiler/nir/nir_lower_vec_to_movs.c
src/compiler/nir/nir_move_vec_src_uses_to_dest.c
src/compiler/nir/nir_opt_gcm.c
src/compiler/nir/nir_opt_global_to_local.c
src/compiler/nir/nir_opt_peephole_select.c
src/compiler/nir/nir_repair_ssa.c
src/compiler/nir/nir_validate.c
src/gallium/drivers/freedreno/ir3/ir3_nir_lower_if_else.c
src/mesa/drivers/dri/i965/brw_nir_opt_peephole_ffma.c