64ac08c9172203a7fd51ed0aa5fabb81e141ccc2
[libfirm] / ir / ana / absgraph.h
1 /**
2  * @file   absgraph.h
3  * @date   20.04.2007
4  * @author Sebastian Hack
5  *
6  * An abstract graph "interface". Currently
7  * only used by the DFS facility.
8  *
9  * This is just that we can do some graph algos
10  * on the CFG, dominance tree, etc.
11  *
12  * Copyright (C) 2007 Universitaet Karlsruhe
13  * Released under the GPL
14  */
15
16 #ifndef _ABSGRAPH_H
17 #define _ABSGRAPH_H
18
19 #include "obst.h"
20
21 typedef struct _absgraph_t {
22         void *(*get_root)(void *self);
23         void (*grow_succs)(void *self, void *node, struct obstack *obst);
24 } absgraph_t;
25
26 const absgraph_t absgraph_irg_cfg_succ;
27 const absgraph_t absgraph_irg_cfg_pred;
28
29 #endif /* _ABSGRAPH_H */