make modelist global
[libfirm] / include / libfirm / irgmod.h
index afa4d50..e938079 100644 (file)
@@ -21,7 +21,6 @@
  * @file
  * @brief    Support for ir graph modification.
  * @author   Martin Trapp, Christian Schaefer, Goetz Lindenmaier
- * @version  $Id$
  */
 #ifndef FIRM_IR_IRGMOD_H
 #define FIRM_IR_IRGMOD_H
@@ -77,6 +76,14 @@ FIRM_API void collect_phiprojs(ir_graph *irg);
  */
 FIRM_API void part_block(ir_node *node);
 
+/**
+ * Same as part_block() but works with out-edges so you don't have to call
+ * collect_phiprojs.
+ * This variant also removes all predecessors of the old block and returns
+ * it. You are responsible to add control flow predecessors to it.
+ */
+FIRM_API ir_node *part_block_edges(ir_node *node);
+
 /**
  * Kill a node by setting its predecessors to Bad and finally
  * exchange the node by Bad itself.