From: Ian Romanick Date: Fri, 26 Mar 2010 01:25:37 +0000 (-0700) Subject: IR print visitor: print expressions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d7388f389dfd17e3842e5dfda1b5782c00f454e5;p=mesa.git IR print visitor: print expressions Not quite complete. The operator is not yet printed. --- diff --git a/ir_print_visitor.cpp b/ir_print_visitor.cpp index 9e4c4412ae3..40e3d057db9 100644 --- a/ir_print_visitor.cpp +++ b/ir_print_visitor.cpp @@ -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(")) "); }