X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firflag_t.def;h=4dfc9c2549e2b1cfc31b7db8cda88b6b6a148f08;hb=4ebc4b6497324aa5d2380a897c75d3c391760ba0;hp=c64bb3b35b5bc04b93d7e0bc31463a9952418ab1;hpb=f210fb5c29c0d72050c8150db3b814b624389faa;p=libfirm diff --git a/ir/ir/irflag_t.def b/ir/ir/irflag_t.def index c64bb3b35..4dfc9c254 100644 --- a/ir/ir/irflag_t.def +++ b/ir/ir/irflag_t.def @@ -24,6 +24,13 @@ * @version $Id$ */ +/* + * We have 3 kinds of flags: + * I_FLAGS are INTERNAL flags: The 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. */ I_FLAG(optimize , 0, ON) @@ -51,15 +58,6 @@ I_FLAG(control_flow_weak_simplification , 6, ON) /** */ I_FLAG(control_flow_strong_simplification , 7, ON) -/** Reclaim memory. */ -I_FLAG(dead_node_elimination , 8, ON) - -/** Reassociate nodes. */ -I_FLAG(reassociation , 9, ON) - -/** Do inlining transformation. */ -I_FLAG(inline , 10, ON) - /** Remove dynamic method dispatch. */ E_FLAG(dyn_meth_dispatch , 11, ON) @@ -68,30 +66,15 @@ E_FLAG(dyn_meth_dispatch , 11, ON) */ I_FLAG(normalize , 12, ON) -/** Remove tail-recursion. */ -I_FLAG(tail_recursion , 13, ON) - -/** Free never called methods */ -I_FLAG(dead_method_elimination , 14, ON) - /** precise exception context */ I_FLAG(precise_exc_context , 15, ON) -/** Do loop unrolling */ -I_FLAG(loop_unrolling , 16, OFF) /* currently buggy, 2.1.2006 */ - /** Do Strength reduction */ I_FLAG(strength_red , 17, ON) -/** Optimize Loads and Stores */ -I_FLAG(redundant_loadstore , 18, ON) - /** Optimize Fragile OPs */ I_FLAG(fragile_ops , 19, OFF) -/** Optimize function calls. */ -I_FLAG(function_call , 20, ON) - /** Optimize cast nodes. */ E_FLAG(optimize_class_casts , 21, ON) E_FLAG(suppress_downcast_optimization , 22, OFF) @@ -114,11 +97,13 @@ I_FLAG(auto_create_sync , 27, OFF) /** Enable Alias-analysis. */ I_FLAG(alias_analysis , 28, ON) +/** Closed world assumption. */ +I_FLAG(closed_world , 31, OFF) + +/* -------------------- RUNNING flags ------------------- */ + /** This flag is set while the reassociation optimizations are running */ -I_FLAG(reassoc_running , 29, OFF) +R_FLAG(reassoc , 0) /** This flag is set while architecture dependent optimizations are running */ -I_FLAG(arch_dep_running , 30, OFF) - -/** Closed world assumption. */ -I_FLAG(closed_world , 31, OFF) +R_FLAG(arch_dep , 0)