nir: Switch the arguments to nir_foreach_def
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 27 Apr 2016 03:34:01 +0000 (20:34 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 28 Apr 2016 22:54:48 +0000 (15:54 -0700)
commit70f89dd75ee7487d0143fa871bb20cbd29f54da0
tree25f3e951b9e057ec4a6f13be6860aa926912f935
parent5015260a0598ada4865b2c6086fc669505f64749
nir: Switch the arguments to nir_foreach_def

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

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

Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_opt_global_to_local.c
src/compiler/nir/nir_to_ssa.c
src/compiler/nir/nir_validate.c