fehler119 is C99
[libfirm] / include / libfirm / irgopt.h
index 25b5af9..66a7212 100644 (file)
@@ -41,7 +41,7 @@ void local_optimize_node(ir_node *n);
  * 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.
  *
@@ -185,6 +185,17 @@ void inline_small_irgs(ir_graph *irg, int size);
  */
 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
@@ -209,10 +220,22 @@ void place_code(ir_graph *irg);
  *
  * 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