renamed real_function_call unto function_call
[libfirm] / ir / ir / irflag_t.def
1 /*
2  * Project:     libFIRM
3  * File name:   ir/ir/irflag_t.def
4  * Purpose:     Flags to control optimizations, inline implementation.
5  * Author:      Michael Beck
6  * Created:
7  * CVS-ID:      $Id$
8  * Copyright:   (c) 1998-2004 Universität Karlsruhe
9  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
10  */
11
12 /** Turn off all optimizations. */
13 I_FLAG(optimize                           , 0, ON)
14
15 /** Common subexpression eliminations: Hash the nodes. */
16 E_FLAG(cse                                , 1, ON)
17
18 /** Don't use block predecessor for comparison.
19  *  Default must be zero as code placement must
20  *  be run right after a local optimize walk with
21  *  global_cse on. */
22 I_FLAG(global_cse                         , 2, OFF)
23
24 /** Evaluate operations. */
25 I_FLAG(constant_folding                   , 3, ON)
26
27 /** Bad node propagation. */
28 I_FLAG(unreachable_code                   , 4, ON)
29
30 /** */
31 I_FLAG(control_flow_straightening         , 5, ON)
32
33 /** */
34 I_FLAG(control_flow_weak_simplification   , 6, ON)
35
36 /** */
37 I_FLAG(control_flow_strong_simplification , 7, ON)
38
39 /** Reclaim memory. */
40 I_FLAG(dead_node_elimination              , 8, ON)
41
42 /** Reassociate nodes. */
43 I_FLAG(reassociation                      , 9, ON)
44
45 /** Do inlining transformation. */
46 I_FLAG(inline                             , 10, ON)
47
48 /** Remove dynamic method dispatch. */
49 E_FLAG(dyn_meth_dispatch                  , 11, ON)
50
51 /** Transformations that normalize the firm representation
52  *  as removing Ids and Tuples, useless Phis, SymConst(id) -> Const(entity) ...
53  */
54 I_FLAG(normalize                          , 12, ON)
55
56 /** Remove tail-recursion. */
57 I_FLAG(tail_recursion                     , 13, ON)
58
59 /** Free never called methods */
60 I_FLAG(dead_method_elimination            , 14, ON)
61
62 /** precise exception context */
63 I_FLAG(precise_exc_context                , 15, ON)
64
65 /** Do loop unrolling */
66 I_FLAG(loop_unrolling                     , 16, OFF)    /* currently buggy, 2.1.2006 */
67
68 /** Do Strength reduction */
69 I_FLAG(strength_red                       , 17, ON)
70
71 /** Optimize Loads and Stores */
72 I_FLAG(redundant_loadstore                , 18, ON)
73
74 /** Optimize Fragile OPs */
75 I_FLAG(fragile_ops                        , 19, OFF)
76
77 /** If conversion. */
78 I_FLAG(if_conversion                      , 20, OFF)
79
80 /** Optimize function calls. */
81 I_FLAG(function_call                      , 21, ON)
82
83 /** Optimize cast nodes. */
84 E_FLAG(optimize_class_casts               , 22, ON)
85 E_FLAG(suppress_downcast_optimization     , 23, OFF)
86
87 /** Not really an optimization, removes Confirm nodes. */
88 I_FLAG(remove_confirm                     , 24, OFF)
89
90 /** Scalar replacement. */
91 I_FLAG(scalar_replacement                 , 25, ON)
92
93 /** Load and Store have only Null exceptions. */
94 I_FLAG(ldst_only_null_ptr_exceptions      , 26, ON)
95
96 /** Sel-based Null-pointer check elimination. */
97 I_FLAG(sel_based_null_check_elim          , 27, OFF)
98
99 /** Automatically create Sync node during construction. */
100 I_FLAG(auto_create_sync                   , 28, OFF)
101
102 /** Closed world assumption. */
103 I_FLAG(closed_world                       , 31, OFF)