Commit 1f98f6d9 authored by Michael Beck's avatar Michael Beck
Browse files

tail recursion flag added

[r3032]
parent 87392eb4
......@@ -69,6 +69,9 @@ typedef enum {
*/
OPT_NORMALIZE = 0x00001000,
/** Remove tail-recursion. */
OPT_TAIL_RECURSION = 0x00002000,
/** Turn off all optimizations. */
OPT_OPTIMIZED = 0x40000000,
} libfirm_opts_t;
......@@ -157,4 +160,10 @@ static INLINE int get_opt_normalize(void)
return libFIRM_opt & OPT_NORMALIZE;
}
/** Returns tail-recursion setting. */
static INLINE int get_opt_tail_recursion(void)
{
return libFIRM_opt & OPT_TAIL_RECURSION;
}
#endif /* _IRFLAG_T_H_ */
Supports Markdown
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