projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93614bc
)
IR print visitor: print function calls
author
Ian Romanick
<ian.d.romanick@intel.com>
Sat, 27 Mar 2010 00:30:30 +0000
(17:30 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Sat, 27 Mar 2010 00:30:30 +0000
(17:30 -0700)
ir_print_visitor.cpp
patch
|
blob
|
history
diff --git
a/ir_print_visitor.cpp
b/ir_print_visitor.cpp
index 682a553249c13a074c3958ff7acdeaef6e8555ab..0e89f10c3f32642d5508f4e18a20c4ccf01ae7e1 100644
(file)
--- a/
ir_print_visitor.cpp
+++ b/
ir_print_visitor.cpp
@@
-197,10
+197,12
@@
void ir_print_visitor::visit(ir_constant *ir)
void
ir_print_visitor::visit(ir_call *ir)
{
- (void) ir;
+ printf("(call (%s) ", ir->callee_name());
+ foreach_iter(exec_list_iterator, iter, *ir) {
+ ir_instruction *const inst = (ir_instruction *) iter.get();
-
printf("(call FINISHME: function name here\n"
);
- printf(" (FINISHME: function paramaters here))\n");
+
inst->accept(this
);
+ }
}