2 * Author: Daniel Grund, Sebastian Hack, Matthias Braun
4 * Copyright: (c) Universitaet Karlsruhe
5 * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
13 #include "bespilloptions.h"
17 #include <libcore/lc_opts.h>
18 #include <libcore/lc_opts_enum.h>
19 #include <libcore/lc_timing.h>
21 int be_coalesce_spill_slots = 1;
24 static const lc_opt_table_entry_t be_spill_options[] = {
25 LC_OPT_ENT_BOOL ("coalesce_slots", "coalesce the spill slots", &be_coalesce_spill_slots),
26 LC_OPT_ENT_BOOL ("remat", "try to rematerialize values instead of reloading", &be_do_remats),
30 void be_init_spill(void)
32 lc_opt_entry_t *be_grp = lc_opt_get_grp(firm_opt_get_root(), "be");
33 lc_opt_entry_t *spill_grp = lc_opt_get_grp(be_grp, "spill");
35 lc_opt_add_table(spill_grp, be_spill_options);
38 BE_REGISTER_MODULE_CONSTRUCTOR(be_init_spill);