projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BugFix: when a node in schedule got exchanged, it is turned into Bad: do not set...
[libfirm]
/
ir
/
be
/
beprofile.h
diff --git
a/ir/be/beprofile.h
b/ir/be/beprofile.h
index
a1cb80d
..
6d136a6
100644
(file)
--- a/
ir/be/beprofile.h
+++ b/
ir/be/beprofile.h
@@
-13,19
+13,28
@@
#ifndef _BEPROFILE_H_
#define _BEPROFILE_H_
#ifndef _BEPROFILE_H_
#define _BEPROFILE_H_
+/** Additional flags for profiling */
+enum profile_flags {
+ profile_with_locations = 0x0001, /**< create location table */
+ profile_default = 0 /**< default settings */
+};
+
/**
* Instruments irgs with profile code
/**
* Instruments irgs with profile code
- * @param filename The name of the output file for the profile information
+ *
+ * @param filename The name of the output file for the profile information
+ * @param flags Additional flags
+ *
* @return The irg doing the profile initialization.
*/
* @return The irg doing the profile initialization.
*/
-ir_graph *
be_profile_instrument(char * filename
);
+ir_graph *
be_profile_instrument(const char *filename, unsigned flags
);
/**
* Reads the corresponding profile info file if it exists and returns a
* profile info struct
* @param filename The name of the file containing profile information
*/
/**
* Reads the corresponding profile info file if it exists and returns a
* profile info struct
* @param filename The name of the file containing profile information
*/
-void be_profile_read(c
har *
filename);
+void be_profile_read(c
onst char *
filename);
/**
* Frees the profile info
/**
* Frees the profile info
@@
-38,7
+47,12
@@
void be_profile_free(void);
unsigned int be_profile_get_block_execcount(const ir_node * block);
/**
unsigned int be_profile_get_block_execcount(const ir_node * block);
/**
- * Tells whether profile module has aquired data
+ * Initializes exec_freq structure for an irg based on profile data
+ */
+ir_exec_freq *be_create_execfreqs_from_profile(ir_graph *irg);
+
+/**
+ * Tells whether profile module has acquired data
*/
int be_profile_has_data(void);
*/
int be_profile_has_data(void);