added ir/opt include
[libfirm] / ir / be / beprofile.c
index 42c0d4c..fd3165b 100644 (file)
@@ -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;