fixed addressmode bug
[libfirm] / ir / be / be_t.h
index dea956c..bed907c 100644 (file)
 #include "obst.h"
 #include "debug.h"
 
-typedef struct _be_main_env_t {
+#include "irgraph.h"
+
+#include "be.h"
+#include "bearch.h"
+#include "beirgmod.h"
+
+struct _be_options_t {
+       char ilp_server[128];
+       char ilp_solver[128];
+};
+
+struct _be_main_env_t {
   struct obstack obst;
   struct _be_node_factory_t *node_factory;
   struct _arch_env_t *arch_env;
-  firm_dbg_module_t *dbg;
-} be_main_env_t;
-
-typedef struct _be_main_session_env_t {
-  const be_main_env_t *main_env;
-  ir_graph *irg;
-  struct _dom_front_info_t *dom_front;
-} be_main_session_env_t;
+  struct _be_options_t *options;
+  struct _arch_code_generator_t *cg;
+  struct _arch_irn_handler_t *phi_handler;
+  DEBUG_ONLY(firm_dbg_module_t *dbg;)
+};
+
+struct _be_irg_t {
+       ir_graph                      *irg;
+       struct _be_main_env_t         *main_env;
+       struct _be_abi_irg_t          *abi;
+       struct _arch_code_generator_t *cg;
+};
 
 #endif