beifg: Simplify the quite complicated way to divide a number by 2 in be_ifg_stat().
[libfirm] / ir / ana / absgraph.h
1 /*
2  * This file is part of libFirm.
3  * Copyright (C) 2012 University of Karlsruhe.
4  */
5
6 /**
7  * @file
8  * @author  Sebastian Hack
9  * @date    20.04.2007
10  * @brief
11  *
12  * An abstract graph "interface". Currently
13  * only used by the DFS facility.
14  *
15  * This is just that we can do some graph algos
16  * on the CFG, dominance tree, etc.
17  */
18 #ifndef FIRM_ANA_ABSGRAPH_H
19 #define FIRM_ANA_ABSGRAPH_H
20
21 #include "obst.h"
22
23 typedef struct absgraph_t {
24         void *(*get_root)(void *self);
25         void (*grow_succs)(void *self, void *node, struct obstack *obst);
26         void *(*get_end)(void *self);
27 } absgraph_t;
28
29 extern const absgraph_t absgraph_irg_cfg_succ;
30 extern const absgraph_t absgraph_irg_cfg_pred;
31
32 #endif /* FIRM_ANA_ABSGRAPH_H */