From 1f98f6d9eebec166072df43554c18a9bbd878984 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 8 Jun 2004 15:16:48 +0000 Subject: [PATCH] tail recursion flag added [r3032] --- ir/ir/irflag_t.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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_ */ -- 2.20.1