/*
- * 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.
*
* After applying local_optimize_graph() to a IR-graph, Bad nodes
* only occure as predecessor of Block and Phi nodes.
*/
-void local_optimize_graph (ir_graph *irg);
+void local_optimize_graph(ir_graph *irg);
/** Applies local optimizations (see iropt.h) to all nodes in the graph.
*
*/
void inline_leave_functions(int maxsize, int leavesize, int size, int ignore_runtime);
+/**
+ * Heuristic inliner. Calculates a benefice value for every call and inlines
+ * those calls with a value higher than the threshold.
+ *
+ * @param maxsize Do not inline any calls if a method has more than
+ * maxsize firm nodes. It may reach this limit by
+ * inlineing.
+ * @param threshold inlining threshold
+ */
+void inline_functions(int maxsize, int inline_threshold);
+
/** Code Placement.
*
* Pins all floating nodes to a block where they
*
* A critical control flow edge is an edge from a block with several
* control exits to a block with several control entries (See Muchnic
- * p. 407).
+ * p. 407). Exception edges are always ignored.
*
- * @param irg IR Graph
+ * @param irg IR Graph
*/
void remove_critical_cf_edges(ir_graph *irg);
+/** Places an empty basic block on critical control flow edges thereby
+ * removing them.
+ *
+ * A critical control flow edge is an edge from a block with several
+ * control exits to a block with several control entries (See Muchnic
+ * p. 407).
+ *
+ * @param irg IR Graph
+ * @param ignore_exception_edges if non-zero, exception edges will be ignored
+ */
+void remove_critical_cf_edges_ex(ir_graph *irg, int ignore_exception_edges);
+
#endif