projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6652af3
)
IR print visitor: Print assignments
author
Ian Romanick
<ian.d.romanick@intel.com>
Wed, 10 Mar 2010 00:40:45 +0000
(16:40 -0800)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Wed, 10 Mar 2010 00:40:45 +0000
(16:40 -0800)
ir_print_visitor.cpp
patch
|
blob
|
history
diff --git
a/ir_print_visitor.cpp
b/ir_print_visitor.cpp
index
8c4271e
..
365ff59
100644
(file)
--- a/
ir_print_visitor.cpp
+++ b/
ir_print_visitor.cpp
@@
-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");
}