Fixed wrong array declaration
[libfirm] / ir / opt / funccall.h
index c5c709f..776ed90 100644 (file)
@@ -20,9 +20,9 @@
 #define _FUNCCALL_H_
 
 /**
- * Optimize function calls by handling real functions.
+ * Optimize function calls by handling const functions.
  *
- * This optimization first detects all "real functions", i.e.,
+ * This optimization first detects all "const functions", i.e.,
  * IR graphs that neither read nor write memory (and hence did
  * not create exceptions, as these use memory in Firm).
  *
  * Anyway, it might be good for handling builtin's or pseudo-graphs,
  * even if the later read/write memory (but we know how).
  *
+ * This optimizations read the irg_const_function property of
+ * entities and and sets the irg_const_function property of
+ * graphs.
+ *
  * If callee information is valid, we also optimize polymorphic Calls.
+ *
+ * @param force_run  if set, an optimization run is startet even
+ *                   if no const function graph was detected.
+ *                   Else calls are only optimized if at least one
+ *                   const function graph was detected.
+ *
+ * If the fontend created external entities with irg_const_function
+ * property set, the force_run parameter should be set, else
+ * should be unset.
  */
-void optimize_funccalls(void);
+void optimize_funccalls(int force_run);
 
 #endif /* _FUNCCALL_H_ */