renamed entity -> ir_entity
[libfirm] / ir / ana / cdep.h
1 #ifndef CDEP_H
2 #define CDEP_H
3
4 #include "firm_types.h"
5
6 typedef struct cdep cdep;
7 struct cdep {
8   ir_node *node;
9   cdep *next;
10 };
11
12 /** Compute the control dependence graph for a graph. */
13 void compute_cdep(ir_graph *irg);
14 void free_cdep(ir_graph *irg);
15
16 cdep *find_cdep(const ir_node *block);
17
18 void exchange_cdep(ir_node *old, const ir_node *nw);
19
20 int is_cdep_on(const ir_node *dependee, const ir_node *candidate);
21
22 int is_iterated_cdep_on(ir_node *dependee, ir_node *candidate);
23
24 ir_node *get_unique_cdep(const ir_node *block);
25 int has_multiple_cdep(const ir_node *block);
26
27 #endif /* CDEP_H */