Commit f48209ee authored by Sebastian Hack's avatar Sebastian Hack
Browse files

Fixed a bug

parent 2822b67e
......@@ -25,6 +25,18 @@
#include "irprintf.h"
#include "beifg_t.h"
size_t (be_ifg_nodes_iter_size)(const void *self)
{
const be_ifg_t *ifg = self;
return ifg->impl->nodes_iter_size;
}
size_t (be_ifg_neighbours_iter_size)(const void *self)
{
const be_ifg_t *ifg = self;
return ifg->impl->neighbours_iter_size;
}
void (be_ifg_free)(void *self)
{
be_ifg_t *ifg = self;
......
......@@ -15,12 +15,11 @@
typedef struct _be_ifg_impl_t be_ifg_impl_t;
typedef struct _be_ifg_t be_ifg_t;
#define be_ifg_nodes_iter_size(self) ((self)->impl->nodes_iter_size)
#define be_ifg_neighbours_iter_size(self) ((self)->impl->neighbours_iter_size)
#define be_ifg_neighbours_iter_alloca(self) (alloca(be_ifg_neighbours_iter_size(self)))
#define be_ifg_nodes_iter_alloca(self) (alloca(be_ifg_nodes_iter_size(self)))
#define be_ifg_neighbours_iter_alloca(self) (alloca(be_ifg_neighbours_iter_size(self)))
size_t (be_ifg_nodes_iter_size)(const void *self);
size_t (be_ifg_neighbours_iter_size)(const void *self);
void (be_ifg_free)(void *self);
int (be_ifg_connected)(const void *self, const ir_node *a, const ir_node *b);
ir_node *(be_ifg_neighbours_begin)(const void *self, void *iter, const ir_node *irn);
......
......@@ -110,7 +110,7 @@ static ir_node *ifg_std_nodes_next(const void *self, void *iter)
return get_next_node(iter);
}
static void ifg_std_nodes_end(const void *self, void *iter)
static void ifg_std_nodes_break(const void *self, void *iter)
{
node_break(iter, 1);
}
......@@ -208,7 +208,7 @@ static ir_node *ifg_std_neighbours_next(const void *self, void *iter)
return get_next_neighbour(iter);
}
static void ifg_std_neighbours_end(const void *self, void *iter)
static void ifg_std_neighbours_break(const void *self, void *iter)
{
neighbours_break(iter, 1);
}
......
......@@ -34,6 +34,9 @@ struct _be_ifg_t {
#ifdef _BE_IFG_USE_MACROS
#define be_ifg_nodes_iter_size(self) ((self)->impl->nodes_iter_size)
#define be_ifg_neighbours_iter_size(self) ((self)->impl->neighbours_iter_size)
#define be_ifg_free(self) ((self)->impl->free(self))
#define be_ifg_connected(self,a,b) ((self)->impl->connected(self, a, b))
#define be_ifg_neighbours_begin(self, iter, irn) ((self)->impl->neighbours_begin(self, iter, irn))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment