glsl: Add bit_xor builder
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 7 Sep 2016 06:17:51 +0000 (23:17 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 27 Sep 2016 19:06:46 +0000 (12:06 -0700)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/ir_builder.cpp
src/compiler/glsl/ir_builder.h

index d68647f4234da45ad12a6e37785dd7ca34b13f1a..f430100a085ea5339cd589100545d0f670157feb 100644 (file)
@@ -416,6 +416,12 @@ bit_or(operand a, operand b)
    return expr(ir_binop_bit_or, a, b);
 }
 
+ir_expression*
+bit_xor(operand a, operand b)
+{
+   return expr(ir_binop_bit_xor, a, b);
+}
+
 ir_expression*
 lshift(operand a, operand b)
 {
index b483ebf6269968921626e28ac0508c76df020e91..231fbfcdb3eb6ed8c0416ac74e0cff7226e05486 100644 (file)
@@ -168,6 +168,7 @@ ir_expression *logic_or(operand a, operand b);
 ir_expression *bit_not(operand a);
 ir_expression *bit_or(operand a, operand b);
 ir_expression *bit_and(operand a, operand b);
+ir_expression *bit_xor(operand a, operand b);
 ir_expression *lshift(operand a, operand b);
 ir_expression *rshift(operand a, operand b);