added get_next_ir_opcodes() to allow allocation of cosecutive opcodes
[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
32 /**
33  * Check, if two values interfere.
34  * @param a The first value.
35  * @param b The second value.
36  * @return 1, if @p a and @p b interfere, 0 if not.
37  */
38 int values_interfere(const ir_node *a, const ir_node *b);
39
40 /**
41  * Check, if a value dominates the other one.
42  * Note, that this function also considers the schedule and does thus
43  * more than block_dominates().
44  *
45  * @param a The first.
46  * @param b The second value.
47  * @return 1 if a dominates b, 0 else.
48  */
49 int value_dominates(const ir_node *a, const ir_node *b);
50
51 #endif /* _BERA_H */