2 * This file is part of libFirm.
3 * Copyright (C) 2012 University of Karlsruhe.
8 * @brief Definitions for optimisation flags
9 * @author Michael Beck, Sebastian Hack
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
19 /** Turn off all optimizations. */
20 I_FLAG(optimize , 0, ON)
22 /** Common subexpression eliminations: Hash the nodes. */
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
29 I_FLAG(global_cse , 2, OFF)
31 /** Evaluate operations. */
32 E_FLAG(constant_folding , 3, ON)
34 /** Algebraic simplifications. */
35 I_FLAG(algebraic_simplification , 4, ON)
37 /** Use Global Null Pointer Test elimination. */
38 I_FLAG(global_null_ptr_elimination , 5, ON)
40 /** Automatically create Sync node during construction. */
41 I_FLAG(auto_create_sync , 10, OFF)
43 /** Enable Alias-analysis. */
44 I_FLAG(alias_analysis , 11, ON)
46 /** Closed world assumption. */
47 I_FLAG(closed_world , 12, OFF)
49 /* -------------------- RUNNING flags ------------------- */
51 /** This flag is set while the reassociation optimizations are running */