Commit bf8c5a11 authored by Matthias Braun's avatar Matthias Braun
Browse files

expose get_opt_constant_folding in public API

parent 99656ee8
......@@ -70,6 +70,8 @@ FIRM_API int get_optimize(void);
* Default: opt_constant_folding == 1.
*/
FIRM_API void set_opt_constant_folding(int value);
/** returns 0 if constant_folding is disabled, !=0 otherwise */
FIRM_API int get_opt_constant_folding(void);
/** Enables/Disables algebraic simplifications.
*
......
......@@ -43,7 +43,7 @@ E_FLAG(cse , 1, ON)
I_FLAG(global_cse , 2, OFF)
/** Evaluate operations. */
I_FLAG(constant_folding , 3, ON)
E_FLAG(constant_folding , 3, ON)
/** Algebraic simplifications. */
I_FLAG(algebraic_simplification , 4, ON)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment