X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firprofile.h;h=139b49b6b8f0a74d14a5a31dc92302e3b0cc080a;hb=3425dde7c85323534890cdcfe11b232a707d04e1;hp=84752410527b1343f6f338ca6cc1a77c2551a42c;hpb=1ce363f80e6a204d4011f85813362d9bd1d0e7e4;p=libfirm diff --git a/ir/ir/irprofile.h b/ir/ir/irprofile.h index 847524105..139b49b6b 100644 --- a/ir/ir/irprofile.h +++ b/ir/ir/irprofile.h @@ -22,20 +22,14 @@ * @brief Code instrumentation and execution count profiling. * @author Adam M. Szalkowski * @date 06.04.2006 - * @version $Id$ */ #ifndef FIRM_BE_BEPROFILE_H #define FIRM_BE_BEPROFILE_H +#include #include "irgraph.h" #include "irnode.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 * @@ -44,14 +38,14 @@ enum profile_flags { * * @return The irg doing the profile initialization. */ -ir_graph *ir_profile_instrument(const char *filename, unsigned flags); +ir_graph *ir_profile_instrument(const char *filename); /** * 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 ir_profile_read(const char *filename); +bool ir_profile_read(const char *filename); /** * Frees the profile info @@ -61,7 +55,7 @@ void ir_profile_free(void); /** * Get block execution count as determined be profiling */ -unsigned int ir_profile_get_block_execcount(const ir_node * block); +unsigned int ir_profile_get_block_execcount(const ir_node *block); /** * Initializes exec_freq structure for an irg based on profile data @@ -71,6 +65,6 @@ ir_exec_freq *ir_create_execfreqs_from_profile(ir_graph *irg); /** * Tells whether profile module has acquired data */ -int ir_profile_has_data(void); +bool ir_profile_has_data(void); -#endif /* FIRM_BE_BEPROFILE_H */ +#endif