Lines Matching refs:cfun

70   pre = XCNEWVEC (int, last_basic_block_for_fn (cfun));  in mark_dfs_back_edges()
71 post = XCNEWVEC (int, last_basic_block_for_fn (cfun)); in mark_dfs_back_edges()
74 auto_vec<edge_iterator, 20> stack (n_basic_blocks_for_fn (cfun) + 1); in mark_dfs_back_edges()
77 auto_sbitmap visited (last_basic_block_for_fn (cfun)); in mark_dfs_back_edges()
83 stack.quick_push (ei_start (ENTRY_BLOCK_PTR_FOR_FN (cfun)->succs)); in mark_dfs_back_edges()
97 if (dest != EXIT_BLOCK_PTR_FOR_FN (cfun) && ! bitmap_bit_p (visited, in mark_dfs_back_edges()
115 if (dest != EXIT_BLOCK_PTR_FOR_FN (cfun) in mark_dfs_back_edges()
116 && src != ENTRY_BLOCK_PTR_FOR_FN (cfun) in mark_dfs_back_edges()
122 && src != ENTRY_BLOCK_PTR_FOR_FN (cfun)) in mark_dfs_back_edges()
149 tos = worklist = XNEWVEC (basic_block, n_basic_blocks_for_fn (cfun)); in find_unreachable_blocks()
153 FOR_EACH_BB_FN (bb, cfun) in find_unreachable_blocks()
160 FOR_EACH_EDGE (e, ei, ENTRY_BLOCK_PTR_FOR_FN (cfun)->succs) in find_unreachable_blocks()
197 FOR_EACH_BB_FN (bb, cfun) in verify_no_unreachable_blocks()
227 FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR_FOR_FN (cfun), in create_edge_list()
228 EXIT_BLOCK_PTR_FOR_FN (cfun), next_bb) in create_edge_list()
240 FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR_FOR_FN (cfun), in create_edge_list()
241 EXIT_BLOCK_PTR_FOR_FN (cfun), next_bb) in create_edge_list()
268 n_basic_blocks_for_fn (cfun), elist->num_edges); in print_edge_list()
273 if (INDEX_EDGE_PRED_BB (elist, x) == ENTRY_BLOCK_PTR_FOR_FN (cfun)) in print_edge_list()
278 if (INDEX_EDGE_SUCC_BB (elist, x) == EXIT_BLOCK_PTR_FOR_FN (cfun)) in print_edge_list()
297 FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR_FOR_FN (cfun), in verify_edge_list()
298 EXIT_BLOCK_PTR_FOR_FN (cfun), next_bb) in verify_edge_list()
323 FOR_BB_BETWEEN (p, ENTRY_BLOCK_PTR_FOR_FN (cfun), in verify_edge_list()
324 EXIT_BLOCK_PTR_FOR_FN (cfun), next_bb) in verify_edge_list()
325 FOR_BB_BETWEEN (s, ENTRY_BLOCK_PTR_FOR_FN (cfun)->next_bb, NULL, next_bb) in verify_edge_list()
362 if (bb == ENTRY_BLOCK_PTR_FOR_FN (cfun)) in set_control_dependence_map_bit()
364 gcc_assert (bb != EXIT_BLOCK_PTR_FOR_FN (cfun)); in set_control_dependence_map_bit()
381 gcc_assert (block != ENTRY_BLOCK_PTR_FOR_FN (cfun)); in find_pdom()
383 if (block == EXIT_BLOCK_PTR_FOR_FN (cfun)) in find_pdom()
384 return EXIT_BLOCK_PTR_FOR_FN (cfun); in find_pdom()
389 return EXIT_BLOCK_PTR_FOR_FN (cfun); in find_pdom()
403 gcc_assert (get_edge_src (edge_index) != EXIT_BLOCK_PTR_FOR_FN (cfun)); in find_control_dependence()
412 if (get_edge_src (edge_index) == ENTRY_BLOCK_PTR_FOR_FN (cfun)) in find_control_dependence()
413 ending_block = single_succ (ENTRY_BLOCK_PTR_FOR_FN (cfun)); in find_control_dependence()
419 && current_block != EXIT_BLOCK_PTR_FOR_FN (cfun); in find_control_dependence()
434 FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR_FOR_FN (cfun), in control_dependences()
435 EXIT_BLOCK_PTR_FOR_FN (cfun), next_bb) in control_dependences()
440 FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR_FOR_FN (cfun), in control_dependences()
441 EXIT_BLOCK_PTR_FOR_FN (cfun), next_bb) in control_dependences()
445 control_dependence_map.create (last_basic_block_for_fn (cfun)); in control_dependences()
446 for (int i = 0; i < last_basic_block_for_fn (cfun); ++i) in control_dependences()
477 return BASIC_BLOCK_FOR_FN (cfun, m_el[i].first); in get_edge_src()
485 return BASIC_BLOCK_FOR_FN (cfun, m_el[i].second); in get_edge_dest()
558 FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR_FOR_FN (cfun)->next_bb, NULL, next_bb) in remove_fake_edges()
567 remove_fake_predecessors (EXIT_BLOCK_PTR_FOR_FN (cfun)); in remove_fake_exit_edges()
580 FOR_EACH_BB_FN (bb, cfun) in add_noreturn_fake_exit_edges()
582 make_single_succ_edge (bb, EXIT_BLOCK_PTR_FOR_FN (cfun), EDGE_FAKE); in add_noreturn_fake_exit_edges()
602 dfs.add_bb (EXIT_BLOCK_PTR_FOR_FN (cfun)); in connect_infinite_loops_to_exit()
605 basic_block unvisited_block = EXIT_BLOCK_PTR_FOR_FN (cfun); in connect_infinite_loops_to_exit()
613 edge e = make_edge (deadend_block, EXIT_BLOCK_PTR_FOR_FN (cfun), in connect_infinite_loops_to_exit()
636 auto_vec<edge_iterator, 20> stack (n_basic_blocks_for_fn (cfun) + 1); in post_order_compute()
639 auto_sbitmap visited (last_basic_block_for_fn (cfun)); in post_order_compute()
645 stack.quick_push (ei_start (ENTRY_BLOCK_PTR_FOR_FN (cfun)->succs)); in post_order_compute()
658 if (dest != EXIT_BLOCK_PTR_FOR_FN (cfun) in post_order_compute()
674 && src != ENTRY_BLOCK_PTR_FOR_FN (cfun)) in post_order_compute()
694 if (delete_unreachable && (count != n_basic_blocks_for_fn (cfun))) in post_order_compute()
698 for (b = ENTRY_BLOCK_PTR_FOR_FN (cfun)->next_bb; b in post_order_compute()
699 != EXIT_BLOCK_PTR_FOR_FN (cfun); b = next_bb) in post_order_compute()
801 post_order->reserve_exact (n_basic_blocks_for_fn (cfun)); in inverted_post_order_compute()
807 auto_vec<edge_iterator, 20> stack (n_basic_blocks_for_fn (cfun) + 1); in inverted_post_order_compute()
810 auto_sbitmap visited (last_basic_block_for_fn (cfun)); in inverted_post_order_compute()
817 FOR_ALL_BB_FN (bb, cfun) in inverted_post_order_compute()
824 if (EDGE_COUNT (EXIT_BLOCK_PTR_FOR_FN (cfun)->preds)) in inverted_post_order_compute()
826 stack.quick_push (ei_start (EXIT_BLOCK_PTR_FOR_FN (cfun)->preds)); in inverted_post_order_compute()
827 bitmap_set_bit (visited, EXIT_BLOCK_PTR_FOR_FN (cfun)->index); in inverted_post_order_compute()
832 FOR_ALL_BB_FN (bb, cfun) in inverted_post_order_compute()
873 if (bb != EXIT_BLOCK_PTR_FOR_FN (cfun) in inverted_post_order_compute()
887 FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR_FOR_FN (cfun), in inverted_post_order_compute()
888 EXIT_BLOCK_PTR_FOR_FN (cfun), next_bb) in inverted_post_order_compute()
921 basic_block be = dfs_find_deadend (ENTRY_BLOCK_PTR_FOR_FN (cfun)); in inverted_post_order_compute()
1049 = pre_and_rev_post_order_compute_fn (cfun, pre_order, rev_post_order, in pre_and_rev_post_order_compute()
1053 gcc_assert (pre_order_num == n_basic_blocks_for_fn (cfun)); in pre_and_rev_post_order_compute()
1058 == (n_basic_blocks_for_fn (cfun) - NUM_FIXED_BLOCKS)); in pre_and_rev_post_order_compute()
1483 m_stack (n_basic_blocks_for_fn (cfun)), in depth_first_search()
1484 m_visited_blocks (last_basic_block_for_fn (cfun)) in depth_first_search()
1541 auto_bb_flag visited (cfun); in dfs_enumerate_from()
1616 FOR_EACH_BB_FN (b, cfun) in compute_dominance_frontiers()
1624 if (runner == ENTRY_BLOCK_PTR_FOR_FN (cfun)) in compute_dominance_frontiers()
1683 < (unsigned) last_basic_block_for_fn (cfun)); in compute_idf()
1716 if (e->dest == EXIT_BLOCK_PTR_FOR_FN (cfun)) in bitmap_intersection_of_succs()
1732 if (e->dest == EXIT_BLOCK_PTR_FOR_FN (cfun)) in bitmap_intersection_of_succs()
1755 if (e->src == ENTRY_BLOCK_PTR_FOR_FN (cfun)) in bitmap_intersection_of_preds()
1771 if (e->src == ENTRY_BLOCK_PTR_FOR_FN (cfun)) in bitmap_intersection_of_preds()
1794 if (e->dest == EXIT_BLOCK_PTR_FOR_FN (cfun)) in bitmap_union_of_succs()
1810 if (e->dest == EXIT_BLOCK_PTR_FOR_FN (cfun)) in bitmap_union_of_succs()
1833 if (e->src== ENTRY_BLOCK_PTR_FOR_FN (cfun)) in bitmap_union_of_preds()
1849 if (e->src == ENTRY_BLOCK_PTR_FOR_FN (cfun)) in bitmap_union_of_preds()
1867 basic_block *order = XNEWVEC (basic_block, n_basic_blocks_for_fn (cfun)); in single_pred_before_succ_order()
1868 unsigned n = n_basic_blocks_for_fn (cfun) - NUM_FIXED_BLOCKS; in single_pred_before_succ_order()
1870 auto_sbitmap visited (last_basic_block_for_fn (cfun)); in single_pred_before_succ_order()
1877 MARK_VISITED (ENTRY_BLOCK_PTR_FOR_FN (cfun)); in single_pred_before_succ_order()
1878 FOR_EACH_BB_FN (x, cfun) in single_pred_before_succ_order()