ENABLE(OPT_NORMALIZE) |
ENABLE(OPT_TAIL_RECURSION) |
ENABLE(OPT_PRECISE_EXC_CONTEXT) |
+ DISABLE(OPT_FRAGILE_OPS) |
0;
optimization_state_t libFIRM_verb =
DISABLE(OPT_NORMALIZE) |
DISABLE(OPT_TAIL_RECURSION) |
DISABLE(OPT_PRECISE_EXC_CONTEXT) |
+ DISABLE(OPT_FRAGILE_OPS) |
0;
+/** The Firm verbosity level */
int firm_verbosity_level;
/* set the flags with set_flagname, get the flag with get_flagname */
}
int (get_firm_verbosity) (void) {
- return __get_firm_verbosity();
+ return _get_firm_verbosity();
}
libFIRM_opt &= ~OPT_TAIL_RECURSION;
}
+/* Enable/Disable optimization of tail-recursion calls. */
+void set_opt_tail_recursion_verbose(int value)
+{
+ if (value)
+ libFIRM_verb |= OPT_TAIL_RECURSION;
+ else
+ libFIRM_verb &= ~OPT_TAIL_RECURSION;
+}
+
/* Enable/Disable precise exception context. */
void set_opt_precise_exc_context(int value)
{
#endif
}
+void set_opt_fragile_ops(int value)
+{
+ if (value)
+ libFIRM_opt |= OPT_FRAGILE_OPS;
+ else
+ libFIRM_opt &= ~OPT_FRAGILE_OPS;
+}
+
/* Save the current optimization state. */
void save_optimization_state(optimization_state_t *state)
{