*/
/**
- * @file beifg.c
- * @date 18.11.2005
- * @author Sebastian Hack
- *
- * Copyright (C) 2005 Universitaet Karlsruhe
- * Released under the GPL
+ * @file
+ * @brief Interface for interference graphs.
+ * @author Sebastian Hack
+ * @date 18.11.2005
+ * @version $Id$
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#include <libcore/lc_timing.h>
#include "bitset.h"
-
#include "irgwalk.h"
#include "irnode_t.h"
#include "irprintf.h"
#include "beifg_t.h"
#include "beifg_impl.h"
#include "irphase_t.h"
-#include "bechordal.h"
#include "error.h"
#include "xmalloc.h"
#include "becopystat.h"
#include "becopyopt.h"
#include "beirg_t.h"
+#include "bemodule.h"
/** Defines values for the ifg performance test */
#define BE_CH_PERFORMANCETEST_MIN_NODES (50)
typedef struct _coloring_t coloring_t;
struct _coloring_t {
- ir_phase ph;
+ ir_phase ph;
const arch_env_t *arch_env;
- ir_graph *irg;
+ ir_graph *irg;
};
size_t (be_ifg_nodes_iter_size)(const be_ifg_t *ifg)
static void *regs_irn_data_init(ir_phase *ph, ir_node *irn, void *data)
{
coloring_t *coloring = (coloring_t *) ph;
+ (void) data;
+
return (void *) arch_get_irn_register(coloring->arch_env, irn);
}
static const lc_opt_table_entry_t be_ifg_options[] = {
LC_OPT_ENT_ENUM_PTR ("ifg", "interference graph flavour", &ifg_flavor_var),
- { NULL }
+ LC_OPT_LAST
};
void be_init_ifg(void)