mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
IR print visitor: print expressions
Not quite complete. The operator is not yet printed.
This commit is contained in:
parent
8c70a62193
commit
d7388f389d
1 changed files with 13 additions and 2 deletions
|
|
@ -90,8 +90,19 @@ void ir_print_visitor::visit(ir_function *ir)
|
|||
|
||||
void ir_print_visitor::visit(ir_expression *ir)
|
||||
{
|
||||
printf("%s:%d:\n", __func__, __LINE__);
|
||||
(void) ir;
|
||||
printf("(expression ");
|
||||
|
||||
printf("(FINISHME: operator) ");
|
||||
|
||||
printf("(");
|
||||
if (ir->operands[0])
|
||||
ir->operands[0]->accept(this);
|
||||
printf(") ");
|
||||
|
||||
printf("(");
|
||||
if (ir->operands[1])
|
||||
ir->operands[1]->accept(this);
|
||||
printf(")) ");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue