#include "lc_opts.h"
#include "lc_opts_enum.h"
-#ifdef WITH_ILP
-#include <lpp/lpp.h>
-#include <lpp/lpp_net.h>
-#endif /* WITH_ILP */
+#include "lpp.h"
+#include "lpp_net.h"
DEBUG_ONLY(static firm_dbg_module_t *dbg = NULL;)
static const lc_opt_enum_int_items_t blockschedalgo_items[] = {
{ "naiv", BLOCKSCHED_NAIV },
{ "greedy", BLOCKSCHED_GREEDY },
-#ifdef WITH_ILP
{ "ilp", BLOCKSCHED_ILP },
-#endif /* WITH_ILP */
{ NULL, 0 }
};
*
*/
-#ifdef WITH_ILP
typedef struct ilp_edge_t {
ir_node *block; /**< source block */
int pos; /**< number of cfg predecessor (target) */
return block_list;
}
-#endif /* WITH_ILP */
/*
* __ __ _
case BLOCKSCHED_GREEDY:
case BLOCKSCHED_NAIV:
return create_block_schedule_greedy(irg, execfreqs);
-#ifdef WITH_ILP
case BLOCKSCHED_ILP:
return create_block_schedule_ilp(irg, execfreqs);
-#endif /* WITH_ILP */
}
panic("unknown blocksched algo");
curr_vals[I_HEUR_TIME] += time;
}
-#ifdef WITH_ILP
-
void copystat_add_ilp_5_sec_costs(int costs)
{
curr_vals[I_COPIES_5SEC] += costs;
curr_vals[I_ILP_ITER] += iters;
}
-#endif /* WITH_ILP */
-
/**
* Opens a file named base.ext with the mode mode.
*/
void copystat_dump(ir_graph *irg);
void copystat_dump_pretty(ir_graph *irg);
-#ifdef WITH_ILP
-
void copystat_add_ilp_5_sec_costs(int costs);
void copystat_add_ilp_30_sec_costs(int costs);
void copystat_add_ilp_time(int time);
void copystat_add_ilp_csts(int csts);
void copystat_add_ilp_iter(int iters);
-#endif /* WITH_ILP */
-
#endif
LC_OPT_ENT_BOOL ("statev", "dump statistic events", &be_options.statev),
LC_OPT_ENT_STR ("filtev", "filter for stat events (regex if support is active", &be_options.filtev, sizeof(be_options.filtev)),
-#ifdef WITH_ILP
LC_OPT_ENT_STR ("ilp.server", "the ilp server name", be_options.ilp_server, sizeof(be_options.ilp_server)),
LC_OPT_ENT_STR ("ilp.solver", "the ilp solver name", be_options.ilp_solver, sizeof(be_options.ilp_solver)),
-#endif /* WITH_ILP */
LC_OPT_LAST
};
be_init_copyheur4();
be_init_copyheur();
be_init_copyheur2();
-#ifdef WITH_ILP
be_init_copyilp2();
-#endif
be_init_pbqp_coloring();
be_init_copynone();
be_init_copystat();
be_init_arch_amd64();
be_init_arch_TEMPLATE();
-#ifdef WITH_ILP
be_init_copyilp();
-#endif /* WITH_ILP */
#if PLUGIN_IR_BE_STA
be_init_arch_sta();
char *r_buf;
};
-static firm_dbg_module_t *dbg = NULL;
+static inline firm_dbg_module_t *get_dbg_module(void)
+{
+ static firm_dbg_module_t *dbg = NULL;
+ if(!dbg) {
+ dbg = firm_dbg_register("lpp.comm");
+ }
+
+ return dbg;
+}
+
+#define dbg get_dbg_module()
/**
* Try to read some bytes but block until a certain amount is read.