wrapped debugging modules with DEBUG_ONLY
[libfirm] / ir / be / be_t.h
1 /**
2  * Internal backend global data structures.
3  * @author Sebastian Hack
4  * @date 8.12.2004
5  */
6
7 #ifndef _BE_T_H
8 #define _BE_T_H
9
10 #include "obst.h"
11 #include "debug.h"
12
13 #include "irgraph.h"
14
15 #include "be.h"
16 #include "bearch.h"
17 #include "beirgmod.h"
18
19 struct _be_options_t {
20         char ilp_server[128];
21         char ilp_solver[128];
22 };
23
24 struct _be_main_env_t {
25   struct obstack obst;
26   struct _be_node_factory_t *node_factory;
27   struct _arch_env_t *arch_env;
28   struct _be_options_t *options;
29   struct _arch_code_generator_t *cg;
30   struct _arch_irn_handler_t *phi_handler;
31   DEBUG_ONLY(firm_dbg_module_t *dbg;)
32 };
33
34 struct _be_irg_t {
35         ir_graph                      *irg;
36         struct _be_main_env_t         *main_env;
37         struct _be_abi_irg_t          *abi;
38         struct _arch_code_generator_t *cg;
39 };
40
41 #endif