glsl: Implement remaining as_foo functions with macros
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 24 Mar 2015 16:02:24 +0000 (09:02 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 25 Mar 2015 17:39:09 +0000 (10:39 -0700)
commit0c4ee62045ed184a5b9662f940b8a9e9bd454734
tree3075198a6ff26f3a8bd8a9f8e3ab0370b2b83cc5
parenta284c6300665d4388dae14363807a57bb82e4cb5
glsl: Implement remaining as_foo functions with macros

The downcast functions for non-leaf classes were previously implemented
"by hand."  Now they are implemented using macros based on the is_foo
functions added in the previous patch.

v2: Remove redundant parenthesis.  Suggested by Curro (on the next
patch).

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/glsl/ir.h