besched: Use sched_foreach_{after,reverse_before}().
[libfirm] / ir / ana / execfreq_t.h
1 /*
2  * This file is part of libFirm.
3  * Copyright (C) 2012 University of Karlsruhe.
4  */
5
6 /**
7  * @file
8  * @brief       Compute an estimate of basic block executions.
9  * @author      Adam M. Szalkowski
10  * @date        28.05.2006
11  */
12 #ifndef FIRM_ANA_EXECFREQ_T_H
13 #define FIRM_ANA_EXECFREQ_T_H
14
15 #include "execfreq.h"
16
17 void init_execfreq(void);
18
19 void exit_execfreq(void);
20
21 void set_block_execfreq(ir_node *block, double freq);
22
23 typedef struct ir_execfreq_int_factors {
24         double max;
25         double min_non_zero;
26         double m, b;
27 } ir_execfreq_int_factors;
28
29 void ir_calculate_execfreq_int_factors(ir_execfreq_int_factors *factors,
30                                        ir_graph *irg);
31
32 int get_block_execfreq_int(const ir_execfreq_int_factors *factors,
33                            const ir_node *block);
34
35 #endif