X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firflag_t.h;h=a963f9ef32196c7ecf23326851fdc19430a0ebf2;hb=2f8553d98a05815a9d24eb5746cab1e17858a2a0;hp=a9c69213acb9d7c1498dc0371a39faa2c6338b91;hpb=05ea88e192e74d381d74c6336e36fd972d7d728e;p=libfirm diff --git a/ir/ir/irflag_t.h b/ir/ir/irflag_t.h index a9c69213a..a963f9ef3 100644 --- a/ir/ir/irflag_t.h +++ b/ir/ir/irflag_t.h @@ -21,7 +21,6 @@ * @file * @brief Flags to control optimizations, inline implementation. * @author Michael Beck, Sebastian Hack - * @version $Id$ */ #ifndef FIRM_IR_IRFLAG_T_H #define FIRM_IR_IRFLAG_T_H @@ -66,22 +65,22 @@ void firm_init_flags(void); /* generate the getter functions for external access */ #define E_FLAG(name, value, def) \ -static INLINE int _get_opt_##name(void) { \ +static inline int get_opt_##name##_(void) { \ return libFIRM_opt & irf_##name; \ } /* generate the getter functions for internal access */ #define I_FLAG(name, value, def) \ -static INLINE int get_opt_##name(void) { \ +static inline int get_opt_##name(void) { \ return libFIRM_opt & irf_##name; \ } /* generate getter and setter functions for running flags */ #define R_FLAG(name, value) \ -static INLINE int is_##name##_running(void) { \ +static inline int is_##name##_running(void) { \ return libFIRM_running & ir_rf_##name; \ } \ -static INLINE void set_##name##_running(int flag) {\ +static inline void set_##name##_running(int flag) {\ if (flag) libFIRM_running |= ir_rf_##name; \ else libFIRM_running &= ~ir_rf_##name; \ } @@ -92,21 +91,18 @@ static INLINE void set_##name##_running(int flag) {\ #undef E_FLAG #undef R_FLAG -static INLINE int _get_optimize(void) { +static inline int get_optimize_(void) +{ return get_opt_optimize(); } -static INLINE firm_verification_t -get_node_verification_mode(void) { +static inline firm_verification_t get_node_verification_mode(void) +{ return opt_do_node_verification; } -#define get_optimize() _get_optimize() -#define get_opt_cse() _get_opt_cse() -#define get_opt_dyn_meth_dispatch() _get_opt_dyn_meth_dispatch() -#define get_opt_optimize_class_casts() _get_opt_optimize_class_casts() -#define get_opt_suppress_downcast_optimization() _get_opt_suppress_downcast_optimization() - -extern void firm_init_flags(void); +#define get_optimize() get_optimize_() +#define get_opt_cse() get_opt_cse_() +#define get_opt_suppress_downcast_optimization() get_opt_suppress_downcast_optimization_() #endif