mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-26 10:00:22 +01:00
IR print visitor: Print assignments
This commit is contained in:
parent
6652af36fe
commit
6044ae79a0
1 changed files with 16 additions and 2 deletions
|
|
@ -77,8 +77,22 @@ void ir_print_visitor::visit(ir_dereference *ir)
|
|||
|
||||
void ir_print_visitor::visit(ir_assignment *ir)
|
||||
{
|
||||
printf("%s:%d:\n", __func__, __LINE__);
|
||||
(void) ir;
|
||||
printf("(assign\n");
|
||||
|
||||
printf(" (");
|
||||
if (ir->condition)
|
||||
ir->condition->accept(this);
|
||||
else
|
||||
printf("true");
|
||||
printf(")\n");
|
||||
|
||||
printf(" (");
|
||||
ir->lhs->accept(this);
|
||||
printf(")\n");
|
||||
|
||||
printf(" (");
|
||||
ir->rhs->accept(this);
|
||||
printf(")\n");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue