nir: Rename parallel_copy_copy to parallel_copy_entry and add a foreach macro
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 18 Dec 2014 00:53:04 +0000 (16:53 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Jan 2015 15:20:23 +0000 (07:20 -0800)
commit40ca129ed5aea647d103c99db926d3b2aabe4021
tree4668ac2265f1f671fc99bee8bcabdb476b27ea8a
parent1b720c6ed868b3f231f63568fc360fe7c4024c02
nir: Rename parallel_copy_copy to parallel_copy_entry and add a foreach macro

parallel_copy_copy was a silly name.  Also, things were getting long and
annoying, so I added a foreach macro.  For historical reasons, several of
the original iterations over parallel copy entries in from_ssa used the
_safe variants of the loop.  However, all of these no longer ever remove an
entry so it's ok to make them all use the normal iterator.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir.c
src/glsl/nir/nir.h
src/glsl/nir/nir_from_ssa.c
src/glsl/nir/nir_print.c