- implemented a pass manager, so optimizations could be added in advance to "a pass...
[libfirm] / include / libfirm / irextbb.h
index 30f34a5..d40ff73 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
@@ -75,21 +75,21 @@ void free_extbb(ir_graph *irg);
  *
  * @param node  the node
  */
-ir_extblk *get_nodes_extbb(ir_node *node);
+ir_extblk *get_nodes_extbb(const ir_node *node);
 
 /**
  * Gets the visited counter of an extended block.
  *
  * @param blk  the extended basic block
  */
-unsigned long get_extbb_visited(const ir_extblk *blk);
+ir_visited_t get_extbb_visited(const ir_extblk *blk);
 
 /**
  * Sets the visited counter of an extended block.
  *
  * @param blk  the extended basic block
  */
-void set_extbb_visited(ir_extblk *blk, unsigned long visited);
+void set_extbb_visited(ir_extblk *blk, ir_visited_t visited);
 
 /**
  * Mark an extended block as visited in a graph.
@@ -143,14 +143,14 @@ int get_extbb_n_blocks(const ir_extblk *blk);
  * @param blk  the extended basic block
  * @param pos  the position
  */
-ir_node *get_extbb_block(ir_extblk *blk, int pos);
+ir_node *get_extbb_block(const ir_extblk *blk, int pos);
 
 /**
  * Return the leader basic block of an extended block.
  *
  * @param blk  the extended basic block
  */
-ir_node *get_extbb_leader(ir_extblk *blk);
+ir_node *get_extbb_leader(const ir_extblk *blk);
 
 /**
  * Return the node number of an extended block.
@@ -158,7 +158,7 @@ ir_node *get_extbb_leader(ir_extblk *blk);
  *
  * @param blk  the extended basic block
  */
-long get_extbb_node_nr(ir_extblk *blk);
+long get_extbb_node_nr(const ir_extblk *blk);
 
 /**
  * Walks only over Extended Basic Block nodes in the graph.