X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Firgopt.h;h=a3891093a3472ed040153c22bd7a7508936f547e;hb=b9a1bfdbce56c76bd4d5ff772963628523ecfc41;hp=b08aab21980ba9a5025d82bfe591768b25f4741e;hpb=1a3b7d363474ab544c13093a2f0b578718d37c7a;p=libfirm diff --git a/include/libfirm/irgopt.h b/include/libfirm/irgopt.h index b08aab219..a3891093a 100644 --- a/include/libfirm/irgopt.h +++ b/include/libfirm/irgopt.h @@ -21,7 +21,6 @@ * @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 @@ -29,6 +28,12 @@ #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. * @@ -56,8 +61,37 @@ FIRM_API void local_optimize_graph(ir_graph *irg); * * @return non-zero if the optimization could be applied, 0 else */ +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 + */ 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. + */ +FIRM_API void remove_bads(ir_graph *irg); + +/** + * Removes all Tuple nodes from a graph. + * + * @param irg The graph to be optimized. + */ +FIRM_API void remove_tuples(ir_graph *irg); + /** * Creates an ir_graph pass for optimize_graph_df(). * @@ -91,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); +/** @} */ + #include "end.h" #endif