removed bearch_firm, it's now in it's own subdir
[libfirm] / ir / be / beifg_std.c
1 /**
2  * @file   beifg_std.c
3  * @date   18.11.2005
4  * @author Sebastian Hack
5  *
6  * Copyright (C) 2005 Universitaet Karlsruhe
7  * Released under the GPL
8  */
9
10 #include "beifg.h"
11
12 typedef struct _ifg_std_t ifg_std_t;
13
14 struct _ifg_std_t {
15         const be_ifg_impl_t *impl;
16         /* Members. */
17 };
18
19 static void ifg_std_free(void *self)
20 {
21         free(self);
22 }
23
24 static int ifg_std_connected(void *self, const ir_node *a, const ir_node *b)
25 {
26         ifg_std_t *ifg = self;
27         return -1;
28 }
29
30 static int ifg_std_neighbours_arr(void *self, const ir_node *irn, ir_node **arr, size_t n)
31 {
32         ifg_std_t *ifg = self;
33         return -1;
34 }
35
36 static int ifg_std_neighbours_obst(void *self, const ir_node *irn, struct obstack *obst)
37 {
38         ifg_std_t *ifg = self;
39         return -1;
40 }
41
42 static int ifg_std_degree(void *self, const ir_node *irn)
43 {
44         ifg_std_t *ifg = self;
45         return -1;
46 }
47
48 static const be_ifg_impl_t ifg_std_impl = {
49         ifg_std_free,
50         ifg_std_connected,
51         ifg_std_neighbours_arr,
52         ifg_std_neighbours_obst,
53         ifg_std_degree
54 };
55
56 be_ifg_t *be_ifg_std_new(const be_chordal_env_t *env)
57 {
58         ifg_std_t *ifg = malloc(sizeof(*ifg));
59
60         ifg->impl = &ifg_std_impl;
61
62         /* Initialize members. */
63
64         return (be_ifg_t *) ifg;
65 }