fehler109
[libfirm] / ir / be / bemodule.c
index 586c811..6c3d829 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
@@ -24,9 +24,8 @@
  * @date        29.09.2005
  * @version     $Id$
  */
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif /* HAVE_CONFIG_H */
+
+#include "firm_config.h"
 
 #include <stdlib.h>
 
@@ -45,19 +44,23 @@ void be_init_copycoal(void);
 void be_init_copyheur2(void);
 void be_init_copyheur3(void);
 void be_init_copyheur4(void);
+void be_init_copyheur5(void);
 void be_init_copystat(void);
+void be_init_daemelspill(void);
 void be_init_arch_ia32(void);
 void be_init_arch_ppc32(void);
 void be_init_arch_mips(void);
 void be_init_arch_arm(void);
 void be_init_arch_sta(void);
+void be_init_arch_TEMPLATE(void);
 void be_init_ilpsched(void);
 void be_init_copyilp(void);
 void be_init_javacoal(void);
+void be_init_peephole(void);
 void be_init_ra(void);
 void be_init_spillbelady(void);
-void be_init_spillmorgan(void);
-void be_init_spillremat(void);
+void be_init_spillbelady2(void);
+void be_init_spillbelady3(void);
 void be_init_ssaconstr(void);
 void be_init_ifg(void);
 void be_init_irgmod(void);
@@ -69,7 +72,7 @@ void be_init_state(void);
 void be_quit_copystat(void);
 
 /**
- * Driver for module intialization.
+ * Driver for module initialization.
  * Call your module initialization function here.
  */
 void be_init_modules(void)
@@ -95,10 +98,14 @@ void be_init_modules(void)
        be_init_copycoal();
        be_init_copyheur2();
        be_init_copyheur4();
+//     be_init_copyheur5();
        be_init_copystat();
+       be_init_peephole();
        be_init_ra();
        be_init_spillbelady();
-       be_init_spillmorgan();
+       be_init_spillbelady2();
+       be_init_spillbelady3();
+       be_init_daemelspill();
        be_init_ssaconstr();
        be_init_state();
        be_init_ifg();
@@ -107,11 +114,11 @@ void be_init_modules(void)
        be_init_arch_ppc32();
        be_init_arch_mips();
        be_init_arch_arm();
+       /* do NOT call be_init_arch_TEMPLATE() here, this is NOT a backend :-) */
 
 #ifdef WITH_ILP
        be_init_ilpsched();
        be_init_copyilp();
-       be_init_spillremat();
 #endif /* WITH_ILP */
 
 #ifdef WITH_JVM
@@ -148,6 +155,8 @@ static int set_opt_module(const char *name, lc_opt_type_t type, void *data,
        va_list                      args;
        const char                   *opt;
        const be_module_list_entry_t *module;
+       (void) type;
+       (void) name;
 
        va_start(args, length);
        opt = va_arg(args, const char*);
@@ -172,6 +181,9 @@ int dump_opt_module(char *buf, size_t buflen, const char *name,
 {
        module_opt_data_t            *moddata = data;
        const be_module_list_entry_t *module;
+       (void) name;
+       (void) type;
+       (void) length;
 
        for (module = *(moddata->list_head); module != NULL; module = module->next) {
                if (module->data == *(moddata->var)) {
@@ -193,6 +205,9 @@ int dump_opt_module_vals(char *buf, size_t buflen, const char *name,
        module_opt_data_t            *moddata = data;
        char                         *p       = buf;
        const be_module_list_entry_t *module;
+       (void) name;
+       (void) type;
+       (void) len;
 
        for (module = *(moddata->list_head); module != NULL; module = module->next) {
                size_t len = strlen(module->name);