fixed some bugs
[libfirm] / ir / be / belive.h
index 754847b..8f2ee6a 100644 (file)
@@ -20,7 +20,14 @@ void be_liveness(ir_graph *irg);
  * @param f The output.
  * @param irg The graph.
  */
-void be_liveness_dump(FILE *f, ir_graph *irg);
+void be_liveness_dump(ir_graph *irg, FILE *f);
+
+/**
+ * Dump the liveness information for a graph.
+ * @param irg The graph.
+ * @param cls_name A string used as substing in the filename.
+ */
+void be_liveness_dumpto(ir_graph *irg, const char *cls_name);
 
 /**
  * Check, if a node is live in at a block.
@@ -38,4 +45,18 @@ int (is_live_in)(const ir_node *block, const ir_node *irn);
  */
 int (is_live_out)(const ir_node *block, const ir_node *irn);
 
+/**
+ * Check, if a node is live at the end of a block.
+ * @param block The block.
+ * @param irn The node to check for.
+ * @return 1, if @p irn is live at the end of the block, 0 if not.
+ */
+int (is_live_end)(const ir_node *block, const ir_node *irn);
+
+/**
+ * Check, if the SSA dominance property is fulfilled.
+ * @param irg The graph.
+ */
+void be_check_dominance(ir_graph *irg);
+
 #endif