nir: Switch the arguments to nir_foreach_phi_src
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 27 Apr 2016 03:16:21 +0000 (20:16 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 28 Apr 2016 22:54:48 +0000 (15:54 -0700)
commit8564916d01b31ca5665a27366e483738541ba5a3
tree5b0563e838824f90ed398c0bf64ab3e3339fe7ce
parent707e72f13bb78869ee95d3286980bf1709cba6cf
nir: Switch the arguments to nir_foreach_phi_src

This matches the "foreach x in container" pattern found in many other
programming languages.  Generated by the following regular expression:

s/nir_foreach_phi_src(\([^,]*\),\s*\([^,]*\))/nir_foreach_phi_src(\2, \1)/

and a similar expression for nir_foreach_phi_src_safe.

Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
15 files changed:
src/compiler/nir/nir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_control_flow.c
src/compiler/nir/nir_from_ssa.c
src/compiler/nir/nir_instr_set.c
src/compiler/nir/nir_liveness.c
src/compiler/nir/nir_lower_phis_to_scalar.c
src/compiler/nir/nir_opt_dead_cf.c
src/compiler/nir/nir_opt_gcm.c
src/compiler/nir/nir_opt_peephole_select.c
src/compiler/nir/nir_opt_remove_phis.c
src/compiler/nir/nir_print.c
src/compiler/nir/nir_to_ssa.c
src/compiler/nir/nir_validate.c
src/gallium/drivers/freedreno/ir3/ir3_nir_lower_if_else.c