projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gallium/postprocessing: fix shader parsing
[mesa.git]
/
src
/
glsl
/
ir_hierarchical_visitor.h
diff --git
a/src/glsl/ir_hierarchical_visitor.h
b/src/glsl/ir_hierarchical_visitor.h
index dc177f5eb0ddb1a2c19bf5eb15532567719b9d3d..1988ad0910bf556d124c6d90a190600f04dfe78e 100644
(file)
--- a/
src/glsl/ir_hierarchical_visitor.h
+++ b/
src/glsl/ir_hierarchical_visitor.h
@@
-36,6
+36,7
@@
enum ir_visitor_status {
};
};
+#ifdef __cplusplus
/**
* Base class of hierarchical visitors of IR instruction trees
*
/**
* Base class of hierarchical visitors of IR instruction trees
*
@@
-82,6
+83,7
@@
public:
* \name Visit methods for leaf-node classes
*/
/*@{*/
* \name Visit methods for leaf-node classes
*/
/*@{*/
+ virtual ir_visitor_status visit(class ir_rvalue *);
virtual ir_visitor_status visit(class ir_variable *);
virtual ir_visitor_status visit(class ir_constant *);
virtual ir_visitor_status visit(class ir_loop_jump *);
virtual ir_visitor_status visit(class ir_variable *);
virtual ir_visitor_status visit(class ir_constant *);
virtual ir_visitor_status visit(class ir_loop_jump *);
@@
-178,6
+180,8
@@
void visit_tree(ir_instruction *ir,
void (*callback)(class ir_instruction *ir, void *data),
void *data);
void (*callback)(class ir_instruction *ir, void *data),
void *data);
-ir_visitor_status visit_list_elements(ir_hierarchical_visitor *v, exec_list *l);
+ir_visitor_status visit_list_elements(ir_hierarchical_visitor *v, exec_list *l,
+ bool statement_list = true);
+#endif /* __cplusplus */
#endif /* IR_HIERARCHICAL_VISITOR_H */
#endif /* IR_HIERARCHICAL_VISITOR_H */