summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_builder.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-09-03 16:44:25 -0700
committerKenneth Graunke <[email protected]>2013-09-09 11:52:22 -0700
commitd716b3376ccf66200d007852b30147ca7f7e7c68 (patch)
tree2037b97cf726af4b5c6a527bbacda6dc3d688896 /src/glsl/ir_builder.h
parentf72a8498e7e2c2d3233cdfd58de3b1124a247d39 (diff)
glsl: Add IR builder support for generating return statements.
We use "ret" as the function name since "return" is a C++ keyword, and "ir_return" is already a class name. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/glsl/ir_builder.h')
-rw-r--r--src/glsl/ir_builder.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/ir_builder.h b/src/glsl/ir_builder.h
index c852849720f..d423fc5954d 100644
--- a/src/glsl/ir_builder.h
+++ b/src/glsl/ir_builder.h
@@ -125,6 +125,8 @@ ir_assignment *assign(deref lhs, operand rhs, int writemask);
ir_assignment *assign(deref lhs, operand rhs, operand condition);
ir_assignment *assign(deref lhs, operand rhs, operand condition, int writemask);
+ir_return *ret(operand retval);
+
ir_expression *expr(ir_expression_operation op, operand a);
ir_expression *expr(ir_expression_operation op, operand a, operand b);
ir_expression *expr(ir_expression_operation op, operand a, operand b, operand c);