projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup: Fix typos in comments.
[libfirm]
/
include
/
libfirm
/
irgopt.h
diff --git
a/include/libfirm/irgopt.h
b/include/libfirm/irgopt.h
index
39670f7
..
a389109
100644
(file)
--- a/
include/libfirm/irgopt.h
+++ b/
include/libfirm/irgopt.h
@@
-28,6
+28,12
@@
#include "firm_types.h"
#include "begin.h"
#include "firm_types.h"
#include "begin.h"
+/**
+ * @ingroup iroptimize
+ * @defgroup irgopt Graph Transformations
+ * @{
+ */
+
/** Applies local optimizations (see iropt.h) to all nodes reachable from node
* @p n.
*
/** Applies local optimizations (see iropt.h) to all nodes reachable from node
* @p n.
*
@@
-57,6
+63,11
@@
FIRM_API void local_optimize_graph(ir_graph *irg);
*/
FIRM_API void local_opts(ir_graph *irg);
*/
FIRM_API void local_opts(ir_graph *irg);
+/**
+ * Perform local optimizations on nodes on const code irg
+ */
+FIRM_API void local_opts_const_code(void);
+
/** Same functionality as local_opts above, but without framework wrapper
* @deprecated
*/
/** Same functionality as local_opts above, but without framework wrapper
* @deprecated
*/
@@
-71,19
+82,15
@@
FIRM_API void remove_unreachable_code(ir_graph *irg);
* Removes all Bad nodes from a graph.
*
* @param irg The graph to be optimized.
* 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);
+FIRM_API
void
remove_bads(ir_graph *irg);
/**
* Removes all Tuple nodes from a graph.
*
* @param irg The graph to be optimized.
/**
* 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);
+FIRM_API
void
remove_tuples(ir_graph *irg);
/**
* Creates an ir_graph pass for optimize_graph_df().
/**
* Creates an ir_graph pass for optimize_graph_df().
@@
-118,6
+125,8
@@
FIRM_API void remove_critical_cf_edges(ir_graph *irg);
FIRM_API void remove_critical_cf_edges_ex(ir_graph *irg,
int ignore_exception_edges);
FIRM_API void remove_critical_cf_edges_ex(ir_graph *irg,
int ignore_exception_edges);
+/** @} */
+
#include "end.h"
#endif
#include "end.h"
#endif