spill preparation needs liveness
[libfirm] / include / libfirm / irgopt.h
index 60a528e..986f1a2 100644 (file)
@@ -60,12 +60,10 @@ int optimize_graph_df(ir_graph *irg);
  * Creates an ir_graph pass for optimize_graph_df().
  *
  * @param name     the name of this pass or NULL
- * @param verify   should this pass be verified?
- * @param dump     should this pass result be dumped?
  *
  * @return  the newly created ir_graph pass
  */
-ir_graph_pass_t *optimize_graph_df_pass(const char *name, int verify, int dump);
+ir_graph_pass_t *optimize_graph_df_pass(const char *name);
 
 /** Performs dead node elimination by copying the ir graph to a new obstack.
  *
@@ -87,6 +85,15 @@ ir_graph_pass_t *optimize_graph_df_pass(const char *name, int verify, int dump);
  */
 void dead_node_elimination(ir_graph *irg);
 
+/**
+ * Creates an ir_graph pass for dead_node_elimination().
+ *
+ * @param name     the name of this pass or NULL
+ *
+ * @return  the newly created ir_graph pass
+ */
+ir_graph_pass_t *dead_node_elimination_pass(const char *name);
+
 typedef struct _survive_dce_t survive_dce_t;
 
 /**
@@ -175,6 +182,17 @@ int inline_method(ir_node *call, ir_graph *called_graph);
  */
 void place_code(ir_graph *irg);
 
+/**
+ * Creates an ir_graph pass for place_code().
+ * This pass enables GCSE, runs optimize_graph_df() and finally
+ * place_code();
+ *
+ * @param name     the name of this pass or NULL
+ *
+ * @return  the newly created ir_graph pass
+ */
+ir_graph_pass_t *place_code_pass(const char *name);
+
 /** Places an empty basic block on critical control flow edges thereby
  * removing them.
  *