diff options
Diffstat (limited to 'ir_hierarchical_visitor.h')
-rw-r--r-- | ir_hierarchical_visitor.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ir_hierarchical_visitor.h b/ir_hierarchical_visitor.h index e741155e19..8b9e49dab1 100644 --- a/ir_hierarchical_visitor.h +++ b/ir_hierarchical_visitor.h @@ -139,7 +139,6 @@ public: */ void run(struct exec_list *instructions); -protected: /** * Callback function that is invoked on entry to each node visited. * @@ -156,4 +155,8 @@ protected: void *data; }; +void visit_tree(ir_instruction *ir, + void (*callback)(class ir_instruction *ir, void *data), + void *data); + #endif /* IR_HIERARCHICAL_VISITOR_H */ |