* @file
* @brief Optimizations for a whole ir graph, i.e., a procedure.
* @author Christian Schaefer, Goetz Lindenmaier, Sebastian Felis
- * @version $Id$
*/
#ifndef FIRM_IR_IRGOPT_H
#define FIRM_IR_IRGOPT_H
*
* @return non-zero if the optimization could be applied, 0 else
*/
+FIRM_API void local_opts(ir_graph *irg);
+
+/** Same functionality as local_opts above, but without framework wrapper
+ * @deprecated
+ */
FIRM_API int optimize_graph_df(ir_graph *irg);
+/**
+ * Eliminates (obviously) unreachable code
+ */
+FIRM_API void remove_unreachable_code(ir_graph *irg);
+
+/**
+ * Removes all Bad nodes from a graph.
+ *
+ * @param irg The graph to be optimized.
+ *
+ * @return non-zero if at least one Bad was removed, otherwise 0
+ */
+FIRM_API int remove_bads(ir_graph *irg);
+
+/**
+ * Removes all Tuple nodes from a graph.
+ *
+ * @param irg The graph to be optimized.
+ *
+ * @return non-zero if at least one Tuple was removed, otherwise 0
+ */
+FIRM_API int remove_tuples(ir_graph *irg);
+
/**
* Creates an ir_graph pass for optimize_graph_df().
*