Re: [Mesa-dev] [PATCH 18.2/23] glsl: Implement remaining as_foo functions with macros

2015-03-25 Thread Francisco Jerez
Ian Romanick writes: > From: Ian Romanick > > 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. > > Signed-off-by: Ian Romanick > Cc: Francisco Jerez Reviewed

[Mesa-dev] [PATCH 18.2/23] glsl: Implement remaining as_foo functions with macros

2015-03-24 Thread Ian Romanick
From: Ian Romanick 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. Signed-off-by: Ian Romanick Cc: Francisco Jerez --- src/glsl/ir.h | 40 +-