2 * Register allocation functions.
3 * @author Sebastian Hack
10 #include "firm_config.h"
13 #include <libcore/lc_opts.h>
14 #include <libcore/lc_timing.h>
17 #include "firm_types.h"
23 lc_timer_t *t_prolog; /**< timer for prolog */
24 lc_timer_t *t_epilog; /**< timer for epilog */
25 lc_timer_t *t_live; /**< timer for liveness calculation */
26 lc_timer_t *t_spill; /**< timer for spilling */
27 lc_timer_t *t_spillslots; /**< spillslot coalescing */
28 lc_timer_t *t_color; /**< timer for graph coloring */
29 lc_timer_t *t_ifg; /**< timer for building interference graph */
30 lc_timer_t *t_copymin; /**< timer for copy minimization */
31 lc_timer_t *t_ssa; /**< timer for ssa destruction */
32 lc_timer_t *t_verify; /**< timer for verification runs */
33 lc_timer_t *t_other; /**< timer for remaining stuff */
38 void (*register_options)(lc_opt_entry_t *grp);
40 be_ra_timer_t *(*allocate)(const be_irg_t *bi);
46 * Check, if two values interfere.
47 * @param lv Liveness information.
48 * @param a The first value.
49 * @param b The second value.
50 * @return 1, if @p a and @p b interfere, 0 if not.
52 int values_interfere(const be_lv_t *lv, const ir_node *a, const ir_node *b);
55 * Check, if a value dominates the other one.
56 * Note, that this function also considers the schedule and does thus
57 * more than block_dominates().
60 * @param b The second value.
61 * @return 1 if a dominates b, 0 else.
63 int value_dominates(const ir_node *a, const ir_node *b);