From: Michael Beck Date: Mon, 18 Oct 2004 10:57:06 +0000 (+0000) Subject: added get_opt_fragile_ops() X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=618eeb1750a43d2114916fa208ea2007d2facf56;p=libfirm added get_opt_fragile_ops() [r4138] --- diff --git a/ir/ir/irflag_t.h b/ir/ir/irflag_t.h index 2b18953b0..05f12ff99 100644 --- a/ir/ir/irflag_t.h +++ b/ir/ir/irflag_t.h @@ -87,6 +87,9 @@ typedef enum { /** Optimize Loads and Stores */ OPT_REDUNDANT_LOADSTORE = 0x00040000, + /** Optimize Fragile OPs */ + OPT_FRAGILE_OPS = 0x00080000, + /** Turn off all optimizations. */ OPT_OPTIMIZED = 0x40000000, @@ -231,6 +234,11 @@ static INLINE int get_opt_precise_exc_context(void) return libFIRM_opt & OPT_PRECISE_EXC_CONTEXT; } +/** Returns fragile ops setting. */ +static INLINE int get_opt_fragile_ops(void) +{ + return libFIRM_opt & OPT_FRAGILE_OPS; +} #define get_opt_cse() _get_opt_cse()