X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeprofile.c;h=fd3165bc9ef1fefd31ef615ca6ee01fcecef7fd5;hb=48f0393daa5d5a14ed7e3e32ee2b090759c9371e;hp=42c0d4c2b5b37ef2e1f857e55d30b14af6066c30;hpb=bf1c019636f24dc00d86d111e5fffdf6984c9c73;p=libfirm diff --git a/ir/be/beprofile.c b/ir/be/beprofile.c index 42c0d4c2b..fd3165bc9 100644 --- a/ir/be/beprofile.c +++ b/ir/be/beprofile.c @@ -313,18 +313,29 @@ block_id_walker(ir_node * bb, void * data) ir_graph * be_profile_instrument(const char *filename, unsigned flags) { - int n, i; - unsigned int n_blocks = 0; - entity *bblock_id, *bblock_counts, *ent_filename, *ent_locations, - *loc_lineno, *loc_name, *ent; - ir_type *array_type, *uint_type, *string_type, *character_type, - *loc_type, *charptr_type, *gtp; - tarval **tarval_array, **tarval_string, *tv; - int filename_len = strlen(filename)+1; - ident *cur_ident; - int align_l, align_n, size; - ir_graph *rem; - + int n, i; + unsigned int n_blocks = 0; + entity *bblock_id; + entity *bblock_counts; + entity *ent_filename; + entity *ent_locations = NULL; + entity *loc_lineno = NULL; + entity *loc_name = NULL; + entity *ent; + ir_type *array_type; + ir_type *uint_type; + ir_type *string_type; + ir_type *character_type; + ir_type *loc_type = NULL; + ir_type *charptr_type; + ir_type *gtp; + tarval **tarval_array; + tarval **tarval_string; + tarval *tv; + int filename_len = strlen(filename)+1; + ident *cur_ident; + int align_l, align_n, size; + ir_graph *rem; block_id_walker_data_t wd; symconst_symbol sym; @@ -607,7 +618,7 @@ be_profile_get_block_execcount(const ir_node *block) typedef struct _intialize_execfreq_env_t { ir_graph *irg; - exec_freq_t *execfreqs; + ir_exec_freq *execfreqs; double freq_factor; } initialize_execfreq_env_t; @@ -631,7 +642,7 @@ static void initialize_execfreq(ir_node *block, void *data) { set_execfreq(env->execfreqs, block, freq); } -exec_freq_t *be_create_execfreqs_from_profile(ir_graph *irg) +ir_exec_freq *be_create_execfreqs_from_profile(ir_graph *irg) { ir_node *block2 = NULL; ir_node *start_block;