X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Firflag.h;h=63e5f4252de48dad7ab15b0a843650baa7dcf7de;hb=9ec98298a0bf99ccb9533365dd7245e0a380f3df;hp=ca907efc398b8cd94cf65432234cf7d5fa9c7738;hpb=53991c3a4b7d367258ad2ffa283106d3543ef424;p=libfirm diff --git a/include/libfirm/irflag.h b/include/libfirm/irflag.h index ca907efc3..63e5f4252 100644 --- a/include/libfirm/irflag.h +++ b/include/libfirm/irflag.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -55,19 +55,9 @@ typedef unsigned optimization_state_t; * If optimize == 0 no optimizations are performed at all. * Default: optimize == 1. */ -void set_optimize (int value); +void set_optimize(int value); int get_optimize(void); -/** This function enables/disables output of information about phases and - * controls the verbosity level. - * - * 0: no output at all. - * 1: very short output - * >>1: very verbose output. - */ -void set_firm_verbosity (int value); -int get_firm_verbosity (void); - /** Enables/Disables constant folding optimization. * * If opt_constant_folding == 1 perform @@ -76,37 +66,14 @@ int get_firm_verbosity (void); * - simplification of tests ( !(a < b) ==> (a >= b)) * Default: opt_constant_folding == 1. */ -void set_opt_constant_folding (int value); - -/** Enables/Disables loop unrolling. - * - * If opt_loop_unrolling == 1 perform loop_unrolling. - * See loop_unrolling.h. - * - * Default: opt_loop_unrolling = 1; - */ -void set_opt_loop_unrolling (int value); - -/** Enables/Disables output of information about loop unrolling. - */ -void set_opt_loop_unrolling_verbose (int value); - -/** Enables/Disables removal of redundant Loads and Stores. - * - * - Remove Store that overwrites a just stored value (WAW). - * - Remove Store if it stores a value just loaded (WAR with the same value). - * - Remove Load that loads a value just saved (RAW with the same value). - * - remove Load that loads a value already loaded (RAR) - * - replace Load of constant values with constants (RC) - */ -void set_opt_redundant_loadstore(int value); +void set_opt_constant_folding(int value); /** Enables/Disables common subexpression elimination. * * If opt_cse == 1 perform common subexpression elimination. * Default: opt_cse == 1. */ -void set_opt_cse (int value); +void set_opt_cse(int value); /** Returns constant folding optimization setting. */ int get_opt_cse(void); @@ -120,7 +87,7 @@ int get_opt_cse(void); * right after a call to local_optimize with global cse turned on. * Default: opt_global_cse == 0. */ -void set_opt_global_cse (int value); +void set_opt_global_cse(int value); /** Enables/Disables strength reduction. * @@ -129,11 +96,7 @@ void set_opt_global_cse (int value); * * Default: opt_strength_red = 1; */ -void set_opt_strength_red (int value); - -/** Enables/Disables output of information about strength reduction. - */ -void set_opt_strength_red_verbose (int value); +void set_opt_strength_red(int value); /** Enables/Disables unreachable code elimination. * @@ -163,50 +126,20 @@ void set_opt_control_flow_weak_simplification(int value); /** Enables/Disables strong if and loop simplification (in optimize_cf). */ void set_opt_control_flow_strong_simplification(int value); -/** Enables/Disables reassociation. - * - * If opt_reassociation == 1 reassociation is performed. - * Default: opt_reassociation == 1. - */ -void set_opt_reassociation(int value); - -/** Enables/Disables dead node elimination. - * - * If opt_dead_node_elimination == 1 deallocate all dead nodes - * by copying the firm graph. - * Default: opt_dead_node_elimination == 1. */ -void set_opt_dead_node_elimination (int value); - -/** Enables/Disables dead method elimination. - * - * If opt_dead_method_elimination == 1 methods never called are - * removed. - * Default: opt_dead_method_elimination == 1. - */ -void set_opt_dead_method_elimination (int value); -void set_opt_dead_method_elimination_verbose (int value); - -/** Enable/Disables method inlining. - * - * If opt_inline == 1 the inlining transformation is performed. - */ -void set_opt_inline (int value); - /** Enable/Disable optimization of dynamic method dispatch. * * This flag enables/disables the optimization of dynamic method dispatch. * If the flag is turned on Sel nodes can be replaced by Const nodes representing * the address of a function. */ -void set_opt_dyn_meth_dispatch (int value); -int get_opt_dyn_meth_dispatch (void); +void set_opt_dyn_meth_dispatch(int value); +int get_opt_dyn_meth_dispatch(void); /** Enable/Disable type optimization of cast nodes. * * Controls the optimizations in tropt.h. Default: on. */ -void set_opt_optimize_class_casts (int value); -void set_opt_optimize_class_casts_verbose (int value); +void set_opt_optimize_class_casts(int value); /** Restricts the behavior of cast optimization. * @@ -217,14 +150,6 @@ void set_opt_optimize_class_casts_verbose (int value); void set_opt_suppress_downcast_optimization(int value); int get_opt_suppress_downcast_optimization(void); -/** Enable/Disable optimization of tail-recursion calls. - * - * This flag enables/disables the optimization tail-recursion call. - * If the flag is turned on tail-recursion calls are optimized into loops. - */ -void set_opt_tail_recursion(int value); -void set_opt_tail_recursion_verbose(int value); - /** Enable/Disable floating of fragile ops. * * This flags enables/disables the floating of fragile operations. @@ -234,16 +159,6 @@ void set_opt_tail_recursion_verbose(int value); */ void set_opt_fragile_ops(int value); -/** - * Enable/Disable function call optimization. - * - * Function call optimization detects const and pure functions and - * allows the CSE of Call nodes. A const function is one that - * do only evaluate it's parameters and did not read or write memory - * to compute its results. Pure functions are allowed to read global memory. - */ -void set_opt_function_call(int value); - /** * Enable/Disable Confirm node removal during local optimization. */ @@ -253,7 +168,6 @@ void set_opt_remove_confirm(int value); * Enable/Disable scalar replacement optimization. */ void set_opt_scalar_replacement(int value); -void set_opt_scalar_replacement_verbose(int value); /** * Enable/Disable Null exception in Load and Store nodes only. @@ -310,7 +224,7 @@ void set_opt_auto_create_sync(int value); * * @note ATTENTION: not all such transformations are guarded by a flag. */ -void set_opt_normalize (int value); +void set_opt_normalize(int value); /** Enable/Disable precise exception context. *