projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02ae68f
)
Use ir_print_visitor to dump IR tree
author
Ian Romanick
<ian.d.romanick@intel.com>
Wed, 10 Mar 2010 17:27:03 +0000
(09:27 -0800)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Wed, 10 Mar 2010 17:27:03 +0000
(09:27 -0800)
glsl_parser_extras.cpp
patch
|
blob
|
history
diff --git
a/glsl_parser_extras.cpp
b/glsl_parser_extras.cpp
index a166fbcd09f52040516ac51501c94aa43119625e..caa221f921201fb0bb8d900f56aad3d947219f32 100644
(file)
--- a/
glsl_parser_extras.cpp
+++ b/
glsl_parser_extras.cpp
@@
-35,6
+35,7
@@
#include "glsl_parser_extras.h"
#include "glsl_parser.h"
#include "symbol_table.h"
+#include "ir_print_visitor.h"
void
_mesa_glsl_error(YYLTYPE *locp, void *state, const char *fmt, ...)
@@
-702,6
+703,13
@@
main(int argc, char **argv)
((ast_node *)ptr)->hir(&instructions, &state);
}
+ printf("\n\n");
+ foreach_iter(exec_list_iterator, iter, instructions) {
+ ir_print_visitor v;
+
+ ((ir_instruction *)iter.get())->accept(& v);
+ }
+
_mesa_symbol_table_dtor(state.symbols);
return 0;