- add some early assert() debugging helper
[libfirm] / ir / be / besched.h
index be4b280..a7b8699 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.
  *
@@ -79,13 +79,18 @@ void    sched_remove(const ir_node *irn);
 #define sched_foreach_reverse(block,irn) \
   sched_foreach_reverse_from(sched_last(block), irn)
 
+/**
+ * A shorthand macro for iterating over all Phi nodes of a schedule.
+ * @param block The block.
+ * @param phi A ir node pointer used as an iterator.
+ */
+#define sched_foreach_Phi(block,phi) \
+       for (phi = sched_first(block); is_Phi(phi); phi = sched_next(phi))
+
 /**
  * Removes dead nodes from schedule
  * @param irg  the graph
  */
 void be_remove_dead_nodes_from_schedule(be_irg_t *birg);
 
-void be_sched_init_phase(ir_graph *irg);
-void be_sched_free_phase(ir_graph *irg);
-
-#endif /* FIRM_BE_BESCHED_H */
+#endif