X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbecopyheur3.c;h=d8a452b26c845ee374944805f0ad34a43c466464;hb=755e96e2816108e2bef2317b741e49aac230d5bb;hp=9ee2a9ce75d814dc52eac2c71c821b71ba4409e3;hpb=94d84a36d4ebc23c5c12a681714510ae37cd5935;p=libfirm diff --git a/ir/be/becopyheur3.c b/ir/be/becopyheur3.c index 9ee2a9ce7..d8a452b26 100644 --- a/ir/be/becopyheur3.c +++ b/ir/be/becopyheur3.c @@ -31,6 +31,7 @@ #include "irprintf.h" #include "irtools.h" +#include "bemodule.h" #include "beabi.h" #include "benode_t.h" #include "becopyopt.h" @@ -66,13 +67,18 @@ static const lc_opt_table_entry_t options[] = { { NULL } }; -void be_co3_register_options(lc_opt_entry_t *grp) +void be_init_copyheur3(void) { - lc_opt_entry_t *co3_grp = lc_opt_get_grp(grp, "co3"); + 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 *co3_grp = lc_opt_get_grp(chordal_grp, "co3"); + lc_opt_add_table(co3_grp, options); } -#endif +BE_REGISTER_MODULE_CONSTRUCTOR(be_init_copyheur3); +#endif static void set_admissible_regs(be_java_coal_t *coal, copy_opt_t *co, ir_node *irn, int t_idx, int *col_map) {