X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbe_t.h;h=bed907cf6d8dbd178ccba2269697c22dcf769b76;hb=ca1b1615fbe23a4d5cf72e7be5d2ee831615cbc2;hp=b5d402ed1d26b7708f4b1c85ae656a16a5f79327;hpb=dc3225d50c7056cfacfb244a16264892b75bc983;p=libfirm diff --git a/ir/be/be_t.h b/ir/be/be_t.h index b5d402ed1..bed907cf6 100644 --- a/ir/be/be_t.h +++ b/ir/be/be_t.h @@ -8,29 +8,34 @@ #define _BE_T_H #include "obst.h" +#include "debug.h" -#if 0 -typedef struct _phase_t { - const char *name; - int id; -} phase_t; +#include "irgraph.h" -int phase_register(phase_t *phase); -void phase_applied(const ir_graph *irg, const phase_t *phase); -int phase_depends_on(const ir_graph *irg, const phase_t *phase, int n, ...); -int phase_invalidates(const ir_graph *irg, const phase_t *phase, int n, ...); -#endif +#include "be.h" +#include "bearch.h" +#include "beirgmod.h" + +struct _be_options_t { + char ilp_server[128]; + char ilp_solver[128]; +}; -typedef struct _be_main_env_t { +struct _be_main_env_t { struct obstack obst; struct _be_node_factory_t *node_factory; struct _arch_env_t *arch_env; -} be_main_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;) +}; -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_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