X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=ir%2Fbe%2Fbemodule.c;h=ec8c5748a2be2b28ea1c402a1bbdbd74b7a419be;hb=5124cba7e9aa4ef891804bb6124812c1eafd7705;hp=bb94be9f0d7dbab9f7928f937252a8d63881accb;hpb=9e56dbf066d3698df877e2a9f78caeca29ea5a03;p=libfirm diff --git a/ir/be/bemodule.c b/ir/be/bemodule.c index bb94be9f0..ec8c5748a 100644 --- a/ir/be/bemodule.c +++ b/ir/be/bemodule.c @@ -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,7 @@ * @date 29.09.2005 * @version $Id$ */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif /* HAVE_CONFIG_H */ #include @@ -43,10 +41,11 @@ void be_init_chordal(void); void be_init_chordal_main(void); 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_dbgout(void); void be_init_arch_ia32(void); void be_init_arch_ppc32(void); void be_init_arch_mips(void); @@ -55,23 +54,27 @@ 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_spilllinearscan(void); void be_init_ssaconstr(void); +void be_init_stabs(void); void be_init_ifg(void); void be_init_irgmod(void); void be_init_loopana(void); void be_init_spillslots(void); void be_init_live(void); void be_init_state(void); +void be_init_pbqp(void); void be_quit_copystat(void); +void be_quit_pbqp(void); /** - * Driver for module intialization. + * Driver for module initialization. * Call your module initialization function here. */ void be_init_modules(void) @@ -90,6 +93,7 @@ void be_init_modules(void) be_init_blocksched(); be_init_spill(); be_init_spilloptions(); + be_init_dbgout(); be_init_listsched(); be_init_schedrss(); be_init_chordal_main(); @@ -97,40 +101,46 @@ 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_spilllinearscan(); be_init_daemelspill(); be_init_ssaconstr(); be_init_state(); be_init_ifg(); + be_init_stabs(); be_init_arch_ia32(); 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 :-) */ + be_init_arch_TEMPLATE(); #ifdef WITH_ILP be_init_ilpsched(); be_init_copyilp(); - be_init_spillremat(); #endif /* WITH_ILP */ -#ifdef WITH_JVM - be_init_copyheur3(); - be_init_javacoal(); -#endif /* WITH_JVM */ - #if PLUGIN_IR_BE_STA be_init_arch_sta(); #endif /* PLUGIN_IR_BE_STA */ + +#ifdef FIRM_GRGEN_BE + be_init_pbqp(); +#endif } void be_quit_modules(void) { be_quit_copystat(); +#ifdef FIRM_GRGEN_BE + be_quit_pbqp(); +#endif } //--------------------------------------------------------------------------- @@ -231,9 +241,7 @@ int dump_opt_module_vals(char *buf, size_t buflen, const char *name, void be_add_module_to_list(be_module_list_entry_t **list_head, const char *name, void *module) { - be_module_list_entry_t *entry; - - entry = xmalloc(sizeof(entry[0])); + be_module_list_entry_t *entry = XMALLOC(be_module_list_entry_t); entry->name = name; entry->data = module; entry->next = *list_head; @@ -248,9 +256,7 @@ void be_add_module_list_opt(lc_opt_entry_t *grp, const char *name, be_module_list_entry_t * const * list_head, void **var) { - module_opt_data_t *moddata; - - moddata = xmalloc(sizeof(moddata[0])); + module_opt_data_t *moddata = XMALLOC(module_opt_data_t); moddata->var = var; moddata->list_head = list_head;