4 * @author Sebastian Hack
6 * Copyright (C) 2005 Universitaet Karlsruhe
7 * Released under the GPL
12 typedef struct _ifg_std_t ifg_std_t;
15 const be_ifg_impl_t *impl;
19 static void ifg_std_free(void *self)
24 static int ifg_std_connected(void *self, const ir_node *a, const ir_node *b)
26 ifg_std_t *ifg = self;
30 static int ifg_std_neighbours_arr(void *self, const ir_node *irn, ir_node **arr, size_t n)
32 ifg_std_t *ifg = self;
36 static int ifg_std_neighbours_obst(void *self, const ir_node *irn, struct obstack *obst)
38 ifg_std_t *ifg = self;
42 static int ifg_std_degree(void *self, const ir_node *irn)
44 ifg_std_t *ifg = self;
48 static const be_ifg_impl_t ifg_std_impl = {
51 ifg_std_neighbours_arr,
52 ifg_std_neighbours_obst,
56 be_ifg_t *be_ifg_std_new(const be_chordal_env_t *env)
58 ifg_std_t *ifg = malloc(sizeof(*ifg));
60 ifg->impl = &ifg_std_impl;
62 /* Initialize members. */
64 return (be_ifg_t *) ifg;