# include "irprog.h"
# include "irgwalk.h"
# include "typewalk.h"
+# include "firmstat.h"
+# include "ircgcons.h"
# include "eset.h"
# include "array.h"
void irg_walk(ir_node *node, irg_walk_func *pre, irg_walk_func *post, void *env)
{
assert(node && node->kind==k_ir_node);
+
if (interprocedural_view) {
eset * irg_set = eset_create();
int visited;
ir_graph * irg;
+ assert(get_irp_ip_view_state() == ip_view_valid);
+
interprocedural_view = false;
eset_insert(irg_set, current_ir_graph);
irg_walk(node, (irg_walk_func *) collect_irgs, NULL, irg_set);
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;
static void irg_block_walk_2(ir_node *node, irg_walk_func *pre, irg_walk_func *post, void *env)
{
int i;
- assert(get_irn_opcode(node) == iro_Block);
if(get_Block_block_visited(node) < get_irg_block_visited(current_ir_graph)) {
set_Block_block_visited(node, get_irg_block_visited(current_ir_graph));
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 */