X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firflag_t.def;h=e735997a7b1abb38258589535d0b6b3dc5faca0e;hb=e44d1ff938e341cc4123c508257fd92df3878ffe;hp=374154e51ba2425756a03cbe5724537ba66aa2c5;hpb=d6d313f6d3744aa43367459c8b31c95f98eeafc7;p=libfirm diff --git a/ir/ir/irflag_t.def b/ir/ir/irflag_t.def index 374154e51..e735997a7 100644 --- a/ir/ir/irflag_t.def +++ b/ir/ir/irflag_t.def @@ -1,12 +1,34 @@ /* - * Project: libFIRM - * File name: ir/ir/irflag_t.def - * Purpose: Flags to control optimizations, inline implementation. - * Author: Michael Beck - * Created: - * CVS-ID: $Id$ - * Copyright: (c) 1998-2004 Universität Karlsruhe - * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. + * + * This file is part of libFirm. + * + * This file may be distributed and/or modified under the terms of the + * GNU General Public License version 2 as published by the Free Software + * Foundation and appearing in the file LICENSE.GPL included in the + * packaging of this file. + * + * Licensees holding valid libFirm Professional Edition licenses may use + * this file in accordance with the libFirm Commercial License. + * Agreement provided with the Software. + * + * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE + * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE. + */ + +/** + * @file + * @brief Definitions for optimisation flags + * @author Michael Beck, Sebastian Hack + * @version $Id$ + */ + +/* + * We have 3 kinds of flags: + * I_FLAGS are INTERNAL flags: There is only a public set_opt_ function + * E_FLAGS are EXTERNAL flags: Public get_opt_ and set_opt_ fucntions exists + * R_FLAGS are RUNNING flags: Use only internally in libfirm to indicate running states */ /** Turn off all optimizations. */ @@ -36,59 +58,61 @@ I_FLAG(control_flow_weak_simplification , 6, ON) /** */ I_FLAG(control_flow_strong_simplification , 7, ON) -/** */ -I_FLAG(critical_edges , 8, ON) - -/** Reclaim memory. */ -I_FLAG(dead_node_elimination , 9, ON) +/** Algebraic simplifications. */ +I_FLAG(algebraic_simplification , 8, ON) -/** Reassociate nodes. */ -I_FLAG(reassociation , 10, ON) +/** Use combo instead of df/cf optimizations. */ +I_FLAG(combo , 9, ON) -/** Do inlining transformation. */ -I_FLAG(inline , 11, ON) +/** Use Global Null Pointer Test elimination. */ +I_FLAG(global_null_ptr_elimination , 10, ON) /** Remove dynamic method dispatch. */ -E_FLAG(dyn_meth_dispatch , 12, ON) +E_FLAG(dyn_meth_dispatch , 11, ON) /** Transformations that normalize the firm representation * as removing Ids and Tuples, useless Phis, SymConst(id) -> Const(entity) ... */ -I_FLAG(normalize , 13, ON) +I_FLAG(normalize , 12, ON) -/** Remove tail-recursion. */ -I_FLAG(tail_recursion , 14, ON) +/** precise exception context */ +I_FLAG(precise_exc_context , 15, ON) -/** Free never called methods */ -I_FLAG(dead_method_elimination , 15, ON) +/** Do Strength reduction */ +I_FLAG(strength_red , 17, ON) -/** precise exception context */ -I_FLAG(precise_exc_context , 16, ON) +/** Optimize Fragile OPs */ +I_FLAG(fragile_ops , 19, OFF) -/** Do loop unrolling */ -I_FLAG(loop_unrolling , 17, ON) +/** Optimize cast nodes. */ +E_FLAG(optimize_class_casts , 21, ON) +E_FLAG(suppress_downcast_optimization , 22, OFF) -/** Do Strength reduction */ -I_FLAG(strength_red , 18, ON) +/** Not really an optimization, removes Confirm nodes. */ +I_FLAG(remove_confirm , 23, OFF) -/** Optimize Loads and Stores */ -I_FLAG(redundant_loadstore , 19, ON) +/** Scalar replacement. */ +I_FLAG(scalar_replacement , 24, ON) -/** Optimize Fragile OPs */ -I_FLAG(fragile_ops , 20, OFF) +/** Load and Store have only Null exceptions. */ +I_FLAG(ldst_only_null_ptr_exceptions , 25, ON) -/** If conversion. */ -I_FLAG(if_conversion , 21, ON) +/** Sel-based Null-pointer check elimination. */ +I_FLAG(sel_based_null_check_elim , 26, OFF) -/** Optimize real function calls. */ -I_FLAG(real_function_call , 22, ON) +/** Automatically create Sync node during construction. */ +I_FLAG(auto_create_sync , 27, OFF) -/** Optimize cast nodes. */ -E_FLAG(optimize_class_casts , 23, ON) -E_FLAG(suppress_downcast_optimization , 24, OFF) +/** Enable Alias-analysis. */ +I_FLAG(alias_analysis , 28, ON) -/** Not really an optimization, removes Confirm nodes */ -I_FLAG(remove_confirm , 25, OFF) +/** Closed world assumption. */ +I_FLAG(closed_world , 31, OFF) -/** Scalar replacement. */ -I_FLAG(scalar_replacement , 26, ON) +/* -------------------- RUNNING flags ------------------- */ + +/** This flag is set while the reassociation optimizations are running */ +R_FLAG(reassoc , 0) + +/** This flag is set while architecture dependent optimizations are running */ +R_FLAG(arch_dep , 0)