X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=include%2Flibfirm%2Firoptimize.h;h=c5f41be00ddb488389e03a674ba546d008b6b7d7;hb=8c1f62ae9c96c62a4192ca022c07889c27ca0c0e;hp=61223268289e7de04f402aee2f28863c86801d4c;hpb=7ebf13d7bc1ca7012bf8f243530543118fc81574;p=libfirm diff --git a/include/libfirm/iroptimize.h b/include/libfirm/iroptimize.h index 612232682..c5f41be00 100644 --- a/include/libfirm/iroptimize.h +++ b/include/libfirm/iroptimize.h @@ -168,22 +168,8 @@ FIRM_API void escape_analysis(int run_scalar_replace, * graphs. * * If callee information is valid, we also optimize polymorphic Calls. - * - * @param force_run if non-zero, an optimization run is started even - * if no const function graph was detected. - * Else calls are only optimized if at least one - * const function graph was detected. - * @param callback a callback function to check whether a - * given entity is a allocation call - * - * If the frontend created external entities with the irg_const_function - * property set, the force_run parameter should be set, else - * should be unset. - * - * @note This optimization destroys the link fields of nodes. */ -FIRM_API void optimize_funccalls(int force_run, - check_alloc_entity_func callback); +FIRM_API void optimize_funccalls(void); /** * Creates an ir_prog pass for optimize_funccalls(). @@ -198,9 +184,7 @@ FIRM_API void optimize_funccalls(int force_run, * * @return the newly created ir_prog pass */ -FIRM_API ir_prog_pass_t *optimize_funccalls_pass(const char *name, - int force_run, - check_alloc_entity_func callback); +FIRM_API ir_prog_pass_t *optimize_funccalls_pass(const char *name); /** * Does Partial Redundancy Elimination combined with @@ -343,7 +327,7 @@ FIRM_API ir_graph_pass_t *opt_ldst_pass(const char *name); * * @param irg The graph whose loops will be processed * - * This function did not change the graph, only it's frame type. + * This function did not change the graph, only its frame type. * The layout state of the frame type will be set to layout_undefined * if entities were removed. */ @@ -355,7 +339,7 @@ FIRM_API void loop_optimization(ir_graph *irg); * * @param irg The graph whose frame type will be optimized * - * This function did not change the graph, only it's frame type. + * This function did not change the graph, only its frame type. * The layout state of the frame type will be set to layout_undefined * if entities were removed. */ @@ -1097,13 +1081,13 @@ FIRM_API ir_value_classify_sign classify_value_sign(ir_node *n); * Return the value of a Cmp if one or both predecessors * are Confirm nodes. * - * @param cmp the compare node that will be evaluated - * @param left the left operand of the Cmp - * @param right the right operand of the Cmp - * @param pnc the compare relation + * @param cmp the compare node that will be evaluated + * @param left the left operand of the Cmp + * @param right the right operand of the Cmp + * @param relation the compare relation */ FIRM_API ir_tarval *computed_value_Cmp_Confirm( - ir_node *cmp, ir_node *left, ir_node *right, pn_Cmp pnc); + const ir_node *cmp, ir_node *left, ir_node *right, ir_relation relation); #include "end.h"