Made everything really kaputt
[libfirm] / ir / be / bera.h
1 /**
2  * Register allocation functions.
3  * @author Sebastian Hack
4  * @date 13.1.2005
5  */
6
7 #ifndef _BERA_H
8 #define _BERA_H
9
10 #ifdef HAVE_CONFIG_H
11 #include "config.h"
12 #endif
13
14 #ifdef WITH_LIBCORE
15 #include <libcore/lc_opts.h>
16 #endif
17
18 #include "irnode.h"
19 #include "irgraph.h"
20
21 #include "be.h"
22
23 typedef struct {
24 #ifdef WITH_LIBCORE
25         void (*register_options)(lc_opt_entry_t *grp);
26 #endif
27         void (*allocate)(const be_main_env_t *env, ir_graph *irg);
28 } be_ra_t;
29
30 /**
31  * Check, if two values interfere.
32  * @param a The first value.
33  * @param b The second value.
34  * @return 1, if @p a and @p b interfere, 0 if not.
35  */
36 int values_interfere(const ir_node *a, const ir_node *b);
37
38 /**
39  * Check, if a value dominates the other one.
40  * Note, that this function also considers the schedule and does thus
41  * more than block_dominates().
42  *
43  * @param a The first.
44  * @param b The second value.
45  * @return 1 if a dominates b, 0 else.
46  */
47 int value_dominates(const ir_node *a, const ir_node *b);
48
49 #endif /* _BERA_H */