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>
This commit is contained in:
Jason Ekstrand
2016-04-26 20:16:21 -07:00
parent 707e72f13b
commit 8564916d01
15 changed files with 23 additions and 23 deletions

View File

@@ -97,7 +97,7 @@ opt_constant_if(nir_if *if_stmt, bool condition)
nir_phi_instr *phi = nir_instr_as_phi(instr);
nir_ssa_def *def = NULL;
nir_foreach_phi_src(phi, phi_src) {
nir_foreach_phi_src(phi_src, phi) {
if (phi_src->pred != last_block)
continue;