X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbespillremat.c;h=f4216c36afda5e4bb2b17fcffc8e31538e9481f7;hb=80a6158fdd766f42ee6c508a773bc114ff1b61f3;hp=f4abb1961a124323c4a8ed5772c3c724ace7505c;hpb=395a9acd0e8bba87da78642e62aaa86fddd5b014;p=libfirm diff --git a/ir/be/bespillremat.c b/ir/be/bespillremat.c index f4abb1961..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