comparison gcc/sese.h @ 63:b7f97abdc517 gcc-4.6-20100522

update gcc from gcc-4.5.0 to gcc-4.6
author ryoma <e075725@ie.u-ryukyu.ac.jp>
date Mon, 24 May 2010 12:47:05 +0900
parents 77e2b8dfacca
children f6334be47118
comparison
equal deleted inserted replaced
56:3c8a44c06a95 63:b7f97abdc517
1 /* Single entry single exit control flow regions. 1 /* Single entry single exit control flow regions.
2 Copyright (C) 2008, 2009 Free Software Foundation, Inc. 2 Copyright (C) 2008, 2009, 2010
3 Free Software Foundation, Inc.
3 Contributed by Jan Sjodin <jan.sjodin@amd.com> and 4 Contributed by Jan Sjodin <jan.sjodin@amd.com> and
4 Sebastian Pop <sebastian.pop@amd.com>. 5 Sebastian Pop <sebastian.pop@amd.com>.
5 6
6 This file is part of GCC. 7 This file is part of GCC.
7 8
223 sese true_region; 224 sese true_region;
224 sese false_region; 225 sese false_region;
225 } *ifsese; 226 } *ifsese;
226 227
227 extern void if_region_set_false_region (ifsese, sese); 228 extern void if_region_set_false_region (ifsese, sese);
228 extern ifsese create_if_region_on_edge (edge, tree);
229 extern ifsese move_sese_in_condition (sese); 229 extern ifsese move_sese_in_condition (sese);
230 extern edge get_true_edge_from_guard_bb (basic_block); 230 extern edge get_true_edge_from_guard_bb (basic_block);
231 extern edge get_false_edge_from_guard_bb (basic_block); 231 extern edge get_false_edge_from_guard_bb (basic_block);
232 extern void set_ifsese_condition (ifsese, tree);
232 233
233 static inline edge 234 static inline edge
234 if_region_entry (ifsese if_region) 235 if_region_entry (ifsese if_region)
235 { 236 {
236 return SESE_ENTRY (if_region->region); 237 return SESE_ENTRY (if_region->region);
260 261
261 extern void debug_rename_map (htab_t); 262 extern void debug_rename_map (htab_t);
262 extern hashval_t rename_map_elt_info (const void *); 263 extern hashval_t rename_map_elt_info (const void *);
263 extern int eq_rename_map_elts (const void *, const void *); 264 extern int eq_rename_map_elts (const void *, const void *);
264 extern void set_rename (htab_t, tree, tree); 265 extern void set_rename (htab_t, tree, tree);
266 extern void rename_nb_iterations (htab_t);
267 extern void rename_sese_parameters (htab_t, sese);
265 268
266 /* Constructs a new SCEV_INFO_STR structure for VAR and INSTANTIATED_BELOW. */ 269 /* Constructs a new SCEV_INFO_STR structure for VAR and INSTANTIATED_BELOW. */
267 270
268 static inline rename_map_elt 271 static inline rename_map_elt
269 new_rename_map_elt (tree old_name, tree expr) 272 new_rename_map_elt (tree old_name, tree expr)
340 SWITCH_EXPR the corresponding element in CONDITION_CASES is a 343 SWITCH_EXPR the corresponding element in CONDITION_CASES is a
341 CASE_LABEL_EXPR. */ 344 CASE_LABEL_EXPR. */
342 VEC (gimple, heap) *conditions; 345 VEC (gimple, heap) *conditions;
343 VEC (gimple, heap) *condition_cases; 346 VEC (gimple, heap) *condition_cases;
344 VEC (data_reference_p, heap) *data_refs; 347 VEC (data_reference_p, heap) *data_refs;
345 htab_t cloog_iv_types;
346 } *gimple_bb_p; 348 } *gimple_bb_p;
347 349
348 #define GBB_BB(GBB) GBB->bb 350 #define GBB_BB(GBB) GBB->bb
349 #define GBB_DATA_REFS(GBB) GBB->data_refs 351 #define GBB_DATA_REFS(GBB) GBB->data_refs
350 #define GBB_CONDITIONS(GBB) GBB->conditions 352 #define GBB_CONDITIONS(GBB) GBB->conditions
351 #define GBB_CONDITION_CASES(GBB) GBB->condition_cases 353 #define GBB_CONDITION_CASES(GBB) GBB->condition_cases
352 #define GBB_CLOOG_IV_TYPES(GBB) GBB->cloog_iv_types
353 354
354 /* Return the innermost loop that contains the basic block GBB. */ 355 /* Return the innermost loop that contains the basic block GBB. */
355 356
356 static inline struct loop * 357 static inline struct loop *
357 gbb_loop (struct gimple_bb *gbb) 358 gbb_loop (struct gimple_bb *gbb)
386 loop_p common = find_common_loop (l1, l2); 387 loop_p common = find_common_loop (l1, l2);
387 388
388 return sese_loop_depth (region, common); 389 return sese_loop_depth (region, common);
389 } 390 }
390 391
391 extern void print_gimple_bb (FILE *, gimple_bb_p, int, int);
392 extern void debug_gbb (gimple_bb_p, int);
393
394 #endif 392 #endif