nir: extract out helper macros for running passes
authorRob Clark <robclark@freedesktop.org>
Wed, 18 Nov 2015 21:33:41 +0000 (16:33 -0500)
committerRob Clark <robclark@freedesktop.org>
Sun, 3 Jan 2016 14:11:27 +0000 (09:11 -0500)
commit317628dbb35d03d1e855332c892594ae491c5d24
tree3cb098372e818b1b9ecc145aa0d546daf1035ea2
parent23bd6affb24662e9e8dbe1ed353babd17b5a016d
nir: extract out helper macros for running passes

Note these are a bit uglier, due to avoidance of GNU C extensions.  But
drivers which do not need to be built with compilers that don't support
the extension can wrap these macros with their own.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/glsl/nir/nir.h
src/mesa/drivers/dri/i965/brw_nir.c