X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeifg_std.c;h=e9330a1328caa93cbbe9da3b0c0e76193c95f677;hb=be69051989e87f7300a7e6b8ca1bf69051337099;hp=37a6e25e979fe3a48697c4cbf49ed4be9a23ae7d;hpb=1ce363f80e6a204d4011f85813362d9bd1d0e7e4;p=libfirm diff --git a/ir/be/beifg_std.c b/ir/be/beifg_std.c index 37a6e25e9..e9330a132 100644 --- a/ir/be/beifg_std.c +++ b/ir/be/beifg_std.c @@ -24,9 +24,7 @@ * @date 18.11.2005 * @version $Id$ */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include @@ -38,13 +36,13 @@ #include "irgwalk.h" #include "irtools.h" -#include "bearch_t.h" +#include "bearch.h" #include "be_t.h" #include "belive_t.h" #include "bera.h" #include "beifg_t.h" #include "bechordal_t.h" -#include "beirg_t.h" +#include "beirg.h" #include "beintlive_t.h" typedef struct _ifg_std_t ifg_std_t; @@ -62,7 +60,7 @@ static void ifg_std_free(void *self) static int ifg_std_connected(const void *self, const ir_node *a, const ir_node *b) { const ifg_std_t *ifg = self; - return values_interfere(ifg->env->birg, a, b); + return be_values_interfere(ifg->env->birg->lv, a, b); } typedef struct _nodes_iter_t { @@ -101,7 +99,7 @@ static void find_nodes(const void *self, void *iter) { it->nodes = obstack_finish(&it->obst); } -static INLINE void node_break(nodes_iter_t *it, int force) +static inline void node_break(nodes_iter_t *it, int force) { if((it->curr >= it->n || force) && it->nodes) { obstack_free(&it->obst, NULL); @@ -192,7 +190,7 @@ static void find_neighbours(const ifg_std_t *ifg, adj_iter_t *it, const ir_node ir_nodeset_iterator_init(&it->iter, &it->neighbours); } -static INLINE void neighbours_break(adj_iter_t *it, int force) +static inline void neighbours_break(adj_iter_t *it, int force) { (void) force; assert(it->valid == 1); @@ -238,7 +236,7 @@ typedef struct _cliques_iter_t { pset *living; } cliques_iter_t; -static INLINE void free_clique_iter(cliques_iter_t *it) { +static inline void free_clique_iter(cliques_iter_t *it) { it->n_blocks = -1; obstack_free(&it->ob, NULL); del_pset(it->living); @@ -256,7 +254,7 @@ static void get_blocks_dom_order(ir_node *blk, void *env) { * NOTE: Be careful when changing this function! * First understand the control flow of consecutive calls. */ -static INLINE int get_next_clique(cliques_iter_t *it) { +static inline int get_next_clique(cliques_iter_t *it) { /* continue in the block we left the last time */ for (; it->blk < it->n_blocks; it->blk++) { @@ -372,7 +370,7 @@ static const be_ifg_impl_t ifg_std_impl = { be_ifg_t *be_ifg_std_new(const be_chordal_env_t *env) { - ifg_std_t *ifg = xmalloc(sizeof(*ifg)); + ifg_std_t *ifg = XMALLOC(ifg_std_t); ifg->impl = &ifg_std_impl; ifg->env = env;