-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, ...);
+#include "irgraph.h"
+
+#include "be.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;
+ struct _be_options_t *options;
+ struct _arch_code_generator_t *cg;
+ firm_dbg_module_t *dbg;
+};