BugFix: the Extbb array was not always in the right order, fixed now
[libfirm] / ir / ana / execfreq.h
1 #ifndef EXECFREQ_H_
2 #define EXECFREQ_H_
3 /*
4  * Project:     libFIRM
5  * File name:   ir/ana/execfreq.h
6  * Purpose:     Compute an estimate of basic block executions.
7  * Author:      Adam M. Szalkowski
8  * Modified by:
9  * Created:     28.05.2006
10  * CVS-ID:      $Id$
11  * Copyright:   (c) 2006 Universitaet Karlsruhe
12  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
13  */
14 #include "firm_types.h"
15
16 struct _exec_freq_t;
17 typedef struct _exec_freq_t exec_freq_t;
18
19 exec_freq_t * compute_execfreq(ir_graph *irg, double loop_weight);
20
21 void free_execfreq(exec_freq_t *ef);
22
23 double get_block_execfreq(const exec_freq_t *ef, const ir_node * irn);
24 unsigned long get_block_execfreq_ulong(const exec_freq_t *ef, const ir_node *bb);
25
26 #endif /* EXECFREQ_H_ */