tail recursion flag added
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 8 Jun 2004 15:16:48 +0000 (15:16 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 8 Jun 2004 15:16:48 +0000 (15:16 +0000)
[r3032]

ir/ir/irflag_t.h

index 464ee68..db6cb62 100644 (file)
@@ -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_ */