Use foreach_set() instead of reimplementing it.
[libfirm] / ir / be / be_t.h
index db6cced..d2ce753 100644 (file)
@@ -21,7 +21,6 @@
  * @file
  * @brief   Internal backend global data structures.
  * @author  Sebastian Hack
- * @version $Id$
  */
 #ifndef FIRM_BE_BE_T_H
 #define FIRM_BE_BE_T_H
@@ -60,23 +59,24 @@ enum {
 
 /** Backend options */
 struct be_options_t {
-       unsigned dump_flags;      /**< backend dumping flags */
-       int  timing;              /**< time the backend phases */
-       int  opt_profile;         /**< instrument code for profiling */
-       int  omit_fp;             /**< try to omit the frame pointer */
-       int  pic;                 /**< create position independent code */
-       int  gprof;               /**< create gprof compatible profiling code */
-       int  verify_option;       /**< backend verify option */
-       char target_os[128];      /**< target operating system name */
-       char ilp_server[128];     /**< the ilp server name */
-       char ilp_solver[128];     /**< the ilp solver name */
-       int  statev;              /**< enable stat event dumping */
-       char filtev[128];         /**< filter mask for stat events (regex is supported) */
+       unsigned dump_flags;       /**< backend dumping flags */
+       int  timing;               /**< time the backend phases */
+       int  opt_profile_generate; /**< instrument code for profiling */
+       int  opt_profile_use;      /**< use existing profile data */
+       int  omit_fp;              /**< try to omit the frame pointer */
+       int  pic;                  /**< create position independent code */
+       int  verify_option;        /**< backend verify option */
+       char ilp_server[128];      /**< the ilp server name */
+       char ilp_solver[128];      /**< the ilp solver name */
+       int  statev;               /**< enable stat event dumping */
+       char filtev[128];          /**< filter mask for stat events */
+       int  verbose_asm;          /**< dump verbose assembler */
 };
+extern be_options_t be_options;
 
 struct be_main_env_t {
        arch_env_t   *arch_env;
-       be_options_t *options;              /**< backend options */
+       FILE         *file_handle;
        const char   *cup_name;             /**< name of the compilation unit */
        pmap         *ent_trampoline_map;   /**< A map containing PIC trampolines for methods. */
        ir_type      *pic_trampolines_type; /**< Class type containing all trampolines */
@@ -113,6 +113,7 @@ typedef enum {
        T_RA_PREPARATION,
        T_SCHED,
        T_CONSTR,
+       T_SPLIT,
        T_FINISH,
        T_EMIT,
        T_VERIFY,