rbitset: Let rbitset_alloca() return the new raw bitset.
[libfirm] / ir / ir / irflag_t.h
index 1a60ebb..a963f9e 100644 (file)
  * @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
 
-#include "firm_config.h"
-
 #include "irflag.h"
 
 /**
@@ -68,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;      \
 }
@@ -94,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