X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbemain.c;h=96b421b56d8fc1544fd57baf72b85c6221bdf66c;hb=3b1a4ee674e9522acfd95b6d49c91f86f9b97d32;hp=2d2b8d4cb06ee86c2278fe0ffaa85bbac28718d6;hpb=7507003420c69d2a84403d07daf26a305c631b43;p=libfirm diff --git a/ir/be/bemain.c b/ir/be/bemain.c index 2d2b8d4cb..96b421b56 100644 --- a/ir/be/bemain.c +++ b/ir/be/bemain.c @@ -27,28 +27,29 @@ #include "irloop_t.h" #include "irtools.h" +#include "bearch.h" +#include "firm/bearch_firm.h" +#include "ia32/bearch_ia32.h" + #include "be_t.h" -#include "bechordal_t.h" -#include "bera.h" -#include "beifg.h" -#include "beifg_impl.h" #include "benumb_t.h" +#include "beutil.h" +#include "benode_t.h" +#include "beirgmod.h" #include "besched_t.h" #include "belistsched.h" #include "belive_t.h" -#include "beutil.h" -#include "bechordal.h" -#include "bearch.h" +#include "bespillilp.h" +#include "bespillbelady.h" +#include "bera.h" +#include "beraextern.h" +#include "bechordal_t.h" +#include "beifg.h" +#include "beifg_impl.h" #include "becopyoptmain.h" #include "becopystat.h" #include "bessadestr.h" -#include "benode_t.h" -#include "beirgmod.h" -#include "bespillilp.h" -#include "bespillbelady.h" -#include "firm/bearch_firm.h" -#include "ia32/bearch_ia32.h" #define DUMP_INITIAL (1 << 0) #define DUMP_SCHED (1 << 1) @@ -93,6 +94,7 @@ static const lc_opt_enum_mask_items_t dump_items[] = { /* register allocators */ static const lc_opt_enum_const_ptr_items_t ra_items[] = { { "chordal", &be_ra_chordal_allocator }, + { "external", &be_ra_external_allocator }, { NULL, NULL } }; @@ -131,15 +133,17 @@ void be_opt_register(void) { #ifdef WITH_LIBCORE int i; + lc_opt_entry_t *be_grp_ra; be_grp_root = lc_opt_get_grp(firm_opt_get_root(), "be"); + be_grp_ra = lc_opt_get_grp(be_grp_root, "ra"); lc_opt_add_table(be_grp_root, be_main_options); - /* register register allocator options */ + /* register allocator options */ for(i = 0; ra_items[i].name != NULL; ++i) { const be_ra_t *ra = ra_items[i].value; - ra->register_options(be_grp_root); + ra->register_options(be_grp_ra); } /* register isa options */