rewrite vrp scanning to use a phase instead of attrs in ir_node
[libfirm] / include / libfirm / irgwalk.h
index 72f53d2..41d0b84 100644 (file)
@@ -22,7 +22,7 @@
  * @brief    Traverse an ir graph
  * @author   Boris Boesler, Goetz Lindenmaier
  * @version  $Id$
- * @summary
+ * @brief
  *  Traverse an ir graph:
  *  - execute the pre function before recursion
  *  - execute the post function after recursion
@@ -216,7 +216,7 @@ void irg_walk_in_or_dep_blkwise_graph(ir_graph *irg, irg_walk_func *pre, irg_wal
 /**
  * Walks over reachable nodes in block-wise topological order, i.e. visit
  * all nodes in a block before going to another block, starting at the end operation.
- * Visit the blocks in dominator tree order.
+ * Visit the blocks in dominator tree top-down order.
  * Executes pre before visiting the predecessor of a node, post after.
  * irg_walk_blkwise_graph() uses the visited flag in irg and the nodes to
  * determine visited nodes.
@@ -231,10 +231,10 @@ void irg_walk_in_or_dep_blkwise_graph(ir_graph *irg, irg_walk_func *pre, irg_wal
  * @param post  walker function, executed after the predecessor of a node are visited
  * @param env   environment, passed to pre and post
  */
-void irg_walk_blkwise_dom_graph(ir_graph *irg, irg_walk_func *pre, irg_walk_func *post, void *env);
+void irg_walk_blkwise_dom_top_down(ir_graph *irg, irg_walk_func *pre, irg_walk_func *post, void *env);
 
 /**
- * Additionally walk over all anchors. Do NOT increase the visit flag.
+ * Additionally walk over all anchors.
  * This function visits all anchor nodes that otherwise might not been visited in a
  * walk, for instance the Bad() node.
  *
@@ -245,4 +245,11 @@ void irg_walk_blkwise_dom_graph(ir_graph *irg, irg_walk_func *pre, irg_walk_func
  */
 void irg_walk_anchors(ir_graph *irg, irg_walk_func *pre, irg_walk_func *post, void *env);
 
+/**
+ * Walker function which does not increase the visited flag before walking.
+ * Do not use this unless you know what you are doing.
+ */
+unsigned irg_walk_2(ir_node *node, irg_walk_func *pre, irg_walk_func *post,
+                    void *env);
+
 #endif