becopyheur2: Remove unnecessary indirection.
[libfirm] / ir / ir / irflag_t.def
1 /*
2  * This file is part of libFirm.
3  * Copyright (C) 2012 University of Karlsruhe.
4  */
5
6 /**
7  * @file
8  * @brief     Definitions for optimisation flags
9  * @author    Michael Beck, Sebastian Hack
10  */
11
12 /*
13  * We have 3 kinds of flags:
14  * I_FLAGS are INTERNAL flags: There is only a public set_opt_<flag> function
15  * E_FLAGS are EXTERNAL flags: Public get_opt_<flag> and set_opt_<flag> fucntions exists
16  * R_FLAGS are RUNNING flags: Use only internally in libfirm to indicate running states
17  */
18
19 /** Turn off all optimizations. */
20 I_FLAG(optimize                           , 0, ON)
21
22 /** Common subexpression eliminations: Hash the nodes. */
23 E_FLAG(cse                                , 1, ON)
24
25 /** Don't use block predecessor for comparison.
26  *  Default must be zero as code placement must
27  *  be run right after a local optimize walk with
28  *  global_cse on. */
29 I_FLAG(global_cse                         , 2, OFF)
30
31 /** Evaluate operations. */
32 E_FLAG(constant_folding                   , 3, ON)
33
34 /** Algebraic simplifications. */
35 I_FLAG(algebraic_simplification           , 4, ON)
36
37 /** Use Global Null Pointer Test elimination. */
38 I_FLAG(global_null_ptr_elimination        , 5, ON)
39
40 /** Automatically create Sync node during construction. */
41 I_FLAG(auto_create_sync                   , 10, OFF)
42
43 /** Enable Alias-analysis. */
44 I_FLAG(alias_analysis                     , 11, ON)
45
46 /** Closed world assumption. */
47 I_FLAG(closed_world                       , 12, OFF)
48
49 /* -------------------- RUNNING flags ------------------- */
50
51 /** This flag is set while the reassociation optimizations are running */
52 R_FLAG(reassoc                            , 0)