X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Firoptimize.h;h=86b59bbdfacdb10aad351ada8d117826753caa3b;hb=63dd9d13d956f37619a42d38ebf404c4d39f3c5d;hp=50ba39193b28952f68627ad483b6e109b8334b2e;hpb=1ec30d95387eb392ba5a1adc7958ebd91383d59c;p=libfirm diff --git a/include/libfirm/iroptimize.h b/include/libfirm/iroptimize.h index 50ba39193..86b59bbdf 100644 --- a/include/libfirm/iroptimize.h +++ b/include/libfirm/iroptimize.h @@ -19,7 +19,7 @@ /** * @file - * @brief Optimisations + * @brief Available Optimisations of libFirm. * @version $Id: cfopt.h 13543 2007-04-29 19:29:02Z beck $ */ #ifndef FIRM_IROPTIMIZE_H @@ -45,7 +45,7 @@ void optimize_cf(ir_graph *irg); /** - * Perform partial conditionla evaluation on the given graph. + * Perform partial conditional evaluation on the given graph. * * @param irg the graph */ @@ -171,13 +171,13 @@ typedef int (*arch_allow_ifconv_func)(ir_node *sel, ir_node* phi_list, int i, in /** * The parameters structure. */ -typedef struct _opt_if_conv_info_t { - int max_depth; /**< The maximum depth up to which expressions - are examined when it has to be decided if they - can be placed into another block. */ - arch_allow_ifconv_func allow_ifconv; /**< Evaluator function, if not set all possible Psi - nodes will be created. */ -} opt_if_conv_info_t; +struct ir_settings_if_conv_t { + int max_depth; /**< The maximum depth up to which expressions + are examined when it has to be decided if they + can be placed into another block. */ + arch_allow_ifconv_func allow_ifconv; /**< Evaluator function, if not set all possible Psi + nodes will be created. */ +}; /** * Perform If conversion on a graph. @@ -188,7 +188,7 @@ typedef struct _opt_if_conv_info_t { * Cannot handle blocks with Bad control predecessors, so call it after control * flow optimization. */ -void opt_if_conv(ir_graph *irg, const opt_if_conv_info_t *params); +void opt_if_conv(ir_graph *irg, const ir_settings_if_conv_t *params); void opt_ldst2(ir_graph *irg);