glsl/ir_builder: Add helpers for making if-statements
authorChad Versace <chad.versace@linux.intel.com>
Fri, 11 Jan 2013 23:53:11 +0000 (15:53 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Fri, 25 Jan 2013 05:24:10 +0000 (21:24 -0800)
commitf859e4fbd1424a5f4ba6ff01c1e896034cc7815f
tree14a1768e0370b4e13377011a10601d8faccdcb6d
parenta32bc53029414ec952c9adcb21da52c021687f08
glsl/ir_builder: Add helpers for making if-statements

Add two overloaded variants of
    ir_if *if_tree()

The new functions allow one to chain together if-trees within a single C++
expression that resembles a real if-statement.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/glsl/ir_builder.cpp
src/glsl/ir_builder.h