nir/worklist: Rework the foreach macro
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 4 Jul 2018 02:18:28 +0000 (19:18 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 16 Jul 2018 18:02:10 +0000 (11:02 -0700)
commitf378fa94b2e13d76fbc16e1cbc03d80dd9053d64
tree1c89fed4a6eec82c6a99d3c74f4bcf893b0043bd
parent360714bfa56c0d7539cb3a8372beffdf7bdbaf10
nir/worklist: Rework the foreach macro

This makes the arguments match the (thing, container) pattern used in
other nir_foreach macros and also renames it to make that a bit more
clear.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/nir/nir_opt_dce.c
src/compiler/nir/nir_worklist.h