Refactor ir_expression::get_num_operands.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 7 Apr 2010 23:56:57 +0000 (16:56 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 28 Apr 2010 22:34:52 +0000 (15:34 -0700)
commit7dd6adbe2e791b22de97175a8715ef1217619c99
treefa320649748897b8e43de57412b4bde019fd29cd
parent1a3a096bf51e86ddc63402def7dff39b41b7cd63
Refactor ir_expression::get_num_operands.

A new static version takes an ir_expression_operation enum, and the
original non-static version now uses it.  This will make it easier to
read operations (where the ir_expression doesn't yet exist).
ir.cpp
ir.h