summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-04-01 18:07:08 -1000
committerIan Romanick <ian.d.romanick@intel.com>2010-04-02 11:22:41 -0700
commit160d092507c1ca341b7c5c88e5ba94b4cf5fb7d0 (patch)
tree2cb33458b814deded2b4b767cf9c2d1ce977afba /ir.h
parent90b7825b0e92375dbe721d2dca1a4a3f1093f4ab (diff)
Simplify ir_constant_expression.cpp by factoring operand computation out.
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ir.h b/ir.h
index 559f984..381af35 100644
--- a/ir.h
+++ b/ir.h
@@ -299,7 +299,9 @@ public:
ir_rvalue *condition;
};
-/* Update ir_print_visitor.cpp when updating this list. */
+/* Update ir_expression::num_operands() and ir_print_visitor.cpp when
+ * updating this list.
+*/
enum ir_expression_operation {
ir_unop_bit_not,
ir_unop_logic_not,
@@ -370,6 +372,8 @@ public:
ir_expression(int op, const struct glsl_type *type,
ir_rvalue *, ir_rvalue *);
+ unsigned int get_num_operands(void);
+
virtual void accept(ir_visitor *v)
{
v->visit(this);