diff options
author | Eric Anholt <eric@anholt.net> | 2010-04-01 18:07:08 -1000 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-04-02 11:22:41 -0700 |
commit | 160d092507c1ca341b7c5c88e5ba94b4cf5fb7d0 (patch) | |
tree | 2cb33458b814deded2b4b767cf9c2d1ce977afba /ir.h | |
parent | 90b7825b0e92375dbe721d2dca1a4a3f1093f4ab (diff) |
Simplify ir_constant_expression.cpp by factoring operand computation out.
Diffstat (limited to 'ir.h')
-rw-r--r-- | ir.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |