X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firprofile.h;h=85a0e2d5935561df4ba1c461c3508f456d0ba4eb;hb=d72b7e3a579f396c1820c57179c2c82a596b8811;hp=b891fc0d5af8e3733a90ecf6e429dd0f2771707d;hpb=7d070c58e7bef1ed875fac066b57f29de449724b;p=libfirm diff --git a/ir/ir/irprofile.h b/ir/ir/irprofile.h index b891fc0d5..85a0e2d59 100644 --- a/ir/ir/irprofile.h +++ b/ir/ir/irprofile.h @@ -22,22 +22,20 @@ * @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 #include "irgraph.h" #include "irnode.h" /** - * Instruments irgs with profile code - * - * @param filename The name of the output file for the profile information - * @param flags Additional flags - * - * @return The irg doing the profile initialization. + * Instruments all irgs in the program with profile code. + * The final code will have a counter for each basic block which is + * incremented in that block. After the program has run the info is written + * to @p filename. */ ir_graph *ir_profile_instrument(const char *filename); @@ -56,16 +54,11 @@ void ir_profile_free(void); /** * Get block execution count as determined be profiling */ -unsigned int ir_profile_get_block_execcount(const ir_node *block); +uint32_t ir_profile_get_block_execcount(const ir_node *block); /** * Initializes exec_freq structure for an irg based on profile data */ -ir_exec_freq *ir_create_execfreqs_from_profile(ir_graph *irg); - -/** - * Tells whether profile module has acquired data - */ -bool ir_profile_has_data(void); +void ir_create_execfreqs_from_profile(void); #endif