added status function
[libfirm] / ir / be / beprofile.h
1 /** vim: set sw=4 ts=4:
2  * @file   beprofile.h
3  * @date   2006-04-06
4  * @author Adam M. Szalkowski
5  * @cvs-id $Id$
6  *
7  * Code instrumentation and execution count profiling
8  *
9  * Copyright (C) 2006 Universitaet Karlsruhe
10  * Released under the GPL
11  */
12
13 #ifndef _BEPROFILE_H_
14 #define _BEPROFILE_H_
15
16 /**
17  * Instruments irgs with profile code
18  * @return The irg doing the profile initialization.
19  */
20 ir_graph * be_profile_instrument(void);
21
22 /**
23  * Reads the corresponding profile info file if it exists and returns a
24  * profile info struct
25  */
26 void be_profile_read(char * filename);
27
28 /**
29  * Frees the profile info
30  */
31 void be_profile_free(void);
32
33 /**
34  * Get block execution count as determined be profiling
35  */
36 unsigned int be_profile_get_block_execcount(const ir_node * block);
37
38 /**
39  * Tells whether profile module has aquired data
40  */
41 int be_profile_has_data(void);
42
43 #endif /* _BEPROFILE_H_ */