Commit e4d5e7f8 authored by Michael Beck's avatar Michael Beck
Browse files

statistic function hooks added

[r2946]
parent 24215736
......@@ -28,6 +28,7 @@
# include "irprog.h"
# include "irgwalk.h"
# include "typewalk.h"
# include "firmstat.h"
# include "eset.h"
# include "array.h"
......@@ -174,6 +175,8 @@ void irg_walk(ir_node *node, irg_walk_func *pre, irg_walk_func *post, void *env)
void irg_walk_graph(ir_graph *irg, irg_walk_func *pre, irg_walk_func *post, void *env) {
ir_graph * rem = current_ir_graph;
stat_irg_walk(irg, (void *)pre, (void *)post);
current_ir_graph = irg;
irg_walk(get_irg_end(irg), pre, post, env);
current_ir_graph = rem;
......@@ -357,6 +360,8 @@ void irg_block_walk(ir_node *node, irg_walk_func *pre, irg_walk_func *post, void
ir_node *block, *pred;
int i;
stat_irg_block_walk(current_ir_graph, node, (void *)pre, (void *)post);
assert(node);
assert(!interprocedural_view); /* interprocedural_view not implemented, because it
* interleaves with irg_walk */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment