projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87392eb
)
tail recursion flag added
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Tue, 8 Jun 2004 15:16:48 +0000
(15:16 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Tue, 8 Jun 2004 15:16:48 +0000
(15:16 +0000)
[r3032]
ir/ir/irflag_t.h
patch
|
blob
|
history
diff --git
a/ir/ir/irflag_t.h
b/ir/ir/irflag_t.h
index
464ee68
..
db6cb62
100644
(file)
--- 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_ */