summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-06-22 12:09:21 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-06-22 18:18:30 -0700
commite46a454305af64710ce8deadafc718f75363ac7e (patch)
tree7119b50e95dff28694865fb574270d2c42ac1634 /ir.h
parent216580dbd733aa2e64df4ca95e37a0eb102c6ede (diff)
ir: Give ir_instruction a print visitor helper.
This avoids spamming each file with includes of ir_print_visitor.h because someone was doing debugging at some point, and is less typing when doing debugging.
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ir.h b/ir.h
index d99453c602..7454947c97 100644
--- a/ir.h
+++ b/ir.h
@@ -45,6 +45,10 @@ public:
const struct glsl_type *type;
class ir_constant *constant_expression_value();
+
+ /** ir_print_visitor helper for debugging. */
+ void print(void);
+
virtual void accept(ir_visitor *) = 0;
virtual ir_visitor_status accept(ir_hierarchical_visitor *) = 0;