cdep_t.h 768 Bytes
Newer Older
1
2
/*
 * This file is part of libFirm.
3
 * Copyright (C) 2012 University of Karlsruhe.
4
5
6
7
8
9
10
11
12
13
14
 */

/**
 * @file
 * @brief   control dependence analysis
 * @author  Christoph Mallon
 */
#ifndef FIRM_ANA_CDEP_T_H
#define FIRM_ANA_CDEP_T_H

#include "cdep.h"
yb9976's avatar
yb9976 committed
15
#include "irnode.h"
16
17
18
19
20
21

/**
 * An entry in the control dependence list.
 */
struct ir_cdep {
	ir_node *node;  /**< A node on which the current block is control dependent on. */
yb9976's avatar
yb9976 committed
22
	ir_cdep *next;  /**< Link to the next one if any. */
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
};

static inline ir_node *_get_cdep_node(const ir_cdep *cdep)
{
	return skip_Id(cdep->node);
}

static inline ir_cdep *_get_cdep_next(const ir_cdep *cdep)
{
	return cdep->next;
}

#define get_cdep_node(cdep)     _get_cdep_node(cdep)
#define get_cdep_next(cdep)     _get_cdep_next(cdep)

#endif