X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbespillremat.c;h=f4216c36afda5e4bb2b17fcffc8e31538e9481f7;hb=80a6158fdd766f42ee6c508a773bc114ff1b61f3;hp=cf50012f6e83e6a6a4724cecd571bf47151af11f;hpb=482b61870b54c36cdc78dfee6ee144135319aa93;p=libfirm diff --git a/ir/be/bespillremat.c b/ir/be/bespillremat.c index cf50012f6..f4216c36a 100644 --- a/ir/be/bespillremat.c +++ b/ir/be/bespillremat.c @@ -157,11 +157,17 @@ static const lc_opt_table_entry_t options[] = { { NULL } }; -void be_spill_remat_register_options(lc_opt_entry_t *grp) +void be_init_spillremat(void) { - lc_opt_entry_t *my_grp = lc_opt_get_grp(grp, "remat"); - lc_opt_add_table(my_grp, options); + lc_opt_entry_t *be_grp = lc_opt_get_grp(firm_opt_get_root(), "be"); + lc_opt_entry_t *ra_grp = lc_opt_get_grp(be_grp, "ra"); + lc_opt_entry_t *chordal_grp = lc_opt_get_grp(ra_grp, "chordal"); + lc_opt_entry_t *remat_grp = lc_opt_get_grp(chordal_grp, "remat"); + + lc_opt_add_table(remat_grp, options); } + +BE_REGISTER_MODULE_CONSTRUCTOR(be_init_spillremat); #endif @@ -4536,7 +4542,7 @@ be_spill_remat(const be_chordal_env_t * chordal_env) #else /* WITH_ILP */ -static void +static void INLINE only_that_you_can_compile_without_WITH_ILP_defined(void) { }