#include <stdlib.h>
-#ifdef HAVE_MALLOC_H
-#include <malloc.h>
-#endif
-
-#ifdef __linux__
-#include <malloc.h>
-#endif /* __linux__ */
-
-#ifdef HAVE_ALLOCA_H
-#include <alloca.h>
-#endif
-
#include <libcore/lc_opts.h>
#include <libcore/lc_opts_enum.h>
#include <libcore/lc_timing.h>
#include "irbitset.h"
#include "beifg_t.h"
#include "beifg_impl.h"
-#include "irphase.h"
#include "irphase_t.h"
#include "bechordal.h"
#include "error.h"
+#include "xmalloc.h"
#include "becopystat.h"
#include "becopyopt.h"
typedef struct _coloring_t coloring_t;
struct _coloring_t {
- phase_t ph;
+ ir_phase ph;
const arch_env_t *arch_env;
ir_graph *irg;
};
return ifg->impl->cliques_iter_size;
}
-static void *regs_irn_data_init(phase_t *ph, ir_node *irn, void *data)
+static void *regs_irn_data_init(ir_phase *ph, ir_node *irn, void *data)
{
coloring_t *coloring = (coloring_t *) ph;
return (void *) arch_get_irn_register(coloring->arch_env, irn);