beifg: Simplify the quite complicated way to divide a number by 2 in be_ifg_stat().
[libfirm] / ir / ana / cdep_t.h
1 /*
2  * This file is part of libFirm.
3  * Copyright (C) 2012 University of Karlsruhe.
4  */
5
6 /**
7  * @file
8  * @brief   control dependence analysis
9  * @author  Christoph Mallon
10  */
11 #ifndef FIRM_ANA_CDEP_T_H
12 #define FIRM_ANA_CDEP_T_H
13
14 #include "cdep.h"
15
16 /**
17  * An entry in the control dependence list.
18  */
19 struct ir_cdep {
20         ir_node *node;  /**< A node on which the current block is control dependent on. */
21         ir_cdep    *next;  /**< Link to the next one if any. */
22 };
23
24 static inline ir_node *_get_cdep_node(const ir_cdep *cdep)
25 {
26         return skip_Id(cdep->node);
27 }
28
29 static inline ir_cdep *_get_cdep_next(const ir_cdep *cdep)
30 {
31         return cdep->next;
32 }
33
34 #define get_cdep_node(cdep)     _get_cdep_node(cdep)
35 #define get_cdep_next(cdep)     _get_cdep_next(cdep)
36
37 #endif