mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-25 00:30:37 +02:00
Use ir_print_visitor to dump IR tree
This commit is contained in:
parent
02ae68f496
commit
1c4156ffac
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue