From: Michael Beck Date: Tue, 8 Jun 2004 15:16:48 +0000 (+0000) Subject: tail recursion flag added X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=1f98f6d9eebec166072df43554c18a9bbd878984;p=libfirm tail recursion flag added [r3032] --- diff --git a/ir/ir/irflag_t.h b/ir/ir/irflag_t.h index 464ee68f3..db6cb6260 100644 --- a/ir/ir/irflag_t.h +++ b/ir/ir/irflag_t.h @@ -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_ */