This prevents top-level callers from asking for the value of something
that is guaranteed not to have one.
enum ir_node_type ir_type;
const struct glsl_type *type;
- class ir_constant *constant_expression_value();
-
/** ir_print_visitor helper for debugging. */
void print(void) const;
class ir_rvalue : public ir_instruction {
public:
+ class ir_constant *constant_expression_value();
+
virtual ir_rvalue *clone(struct hash_table *) const = 0;
virtual ir_rvalue * as_rvalue()
ir_constant *
-ir_instruction::constant_expression_value()
+ir_rvalue::constant_expression_value()
{
ir_constant_visitor visitor;