Lines Matching refs:cfg_hooks

42 static struct cfg_hooks *cfg_hooks;  variable
48 cfg_hooks = &rtl_cfg_hooks; in rtl_register_cfg_hooks()
55 cfg_hooks = &cfg_layout_rtl_cfg_hooks; in cfg_layout_rtl_register_cfg_hooks()
63 cfg_hooks = &gimple_cfg_hooks; in gimple_register_cfg_hooks()
66 struct cfg_hooks
69 return *cfg_hooks; in get_cfg_hooks()
73 set_cfg_hooks (struct cfg_hooks new_cfg_hooks) in set_cfg_hooks()
75 *cfg_hooks = new_cfg_hooks; in set_cfg_hooks()
83 if (cfg_hooks == &gimple_cfg_hooks) in current_ir_type()
85 else if (cfg_hooks == &rtl_cfg_hooks) in current_ir_type()
87 else if (cfg_hooks == &cfg_layout_rtl_cfg_hooks) in current_ir_type()
266 if (cfg_hooks->verify_flow_info) in verify_flow_info()
267 err |= cfg_hooks->verify_flow_info (); in verify_flow_info()
285 if (cfg_hooks->dump_bb) in dump_bb()
286 cfg_hooks->dump_bb (outf, bb, indent, flags); in dump_bb()
326 if (!cfg_hooks->dump_bb_for_graph) in DEFINE_DEBUG_HASH_SET()
328 cfg_hooks->name); in DEFINE_DEBUG_HASH_SET()
334 cfg_hooks->dump_bb_for_graph (pp, bb); in DEFINE_DEBUG_HASH_SET()
369 if (!cfg_hooks->redirect_edge_and_branch) in redirect_edge_and_branch()
371 cfg_hooks->name); in redirect_edge_and_branch()
373 ret = cfg_hooks->redirect_edge_and_branch (e, dest); in redirect_edge_and_branch()
389 if (!cfg_hooks->can_remove_branch_p) in can_remove_branch_p()
391 cfg_hooks->name); in can_remove_branch_p()
396 return cfg_hooks->can_remove_branch_p (e); in can_remove_branch_p()
483 if (!cfg_hooks->redirect_edge_and_branch_force) in redirect_edge_and_branch_force()
485 cfg_hooks->name); in redirect_edge_and_branch_force()
490 ret = cfg_hooks->redirect_edge_and_branch_force (e, dest); in redirect_edge_and_branch_force()
521 if (!cfg_hooks->split_block) in split_block_1()
522 internal_error ("%s does not support split_block", cfg_hooks->name); in split_block_1()
524 new_bb = cfg_hooks->split_block (bb, i); in split_block_1()
587 if (!cfg_hooks->move_block_after) in move_block_after()
588 internal_error ("%s does not support move_block_after", cfg_hooks->name); in move_block_after()
590 ret = cfg_hooks->move_block_after (bb, after); in move_block_after()
600 if (!cfg_hooks->delete_basic_block) in delete_basic_block()
601 internal_error ("%s does not support delete_basic_block", cfg_hooks->name); in delete_basic_block()
603 cfg_hooks->delete_basic_block (bb); in delete_basic_block()
646 if (!cfg_hooks->split_edge) in split_edge()
647 internal_error ("%s does not support split_edge", cfg_hooks->name); in split_edge()
652 ret = cfg_hooks->split_edge (e); in split_edge()
719 if (!cfg_hooks->create_basic_block) in create_basic_block_1()
720 internal_error ("%s does not support create_basic_block", cfg_hooks->name); in create_basic_block_1()
722 ret = cfg_hooks->create_basic_block (head, end, after); in create_basic_block_1()
760 if (!cfg_hooks->can_merge_blocks_p) in can_merge_blocks_p()
761 internal_error ("%s does not support can_merge_blocks_p", cfg_hooks->name); in can_merge_blocks_p()
763 ret = cfg_hooks->can_merge_blocks_p (bb1, bb2); in can_merge_blocks_p()
771 if (!cfg_hooks->predict_edge) in predict_edge()
772 internal_error ("%s does not support predict_edge", cfg_hooks->name); in predict_edge()
774 cfg_hooks->predict_edge (e, predictor, probability); in predict_edge()
780 if (!cfg_hooks->predict_edge) in predicted_by_p()
781 internal_error ("%s does not support predicted_by_p", cfg_hooks->name); in predicted_by_p()
783 return cfg_hooks->predicted_by_p (bb, predictor); in predicted_by_p()
794 if (!cfg_hooks->merge_blocks) in merge_blocks()
795 internal_error ("%s does not support merge_blocks", cfg_hooks->name); in merge_blocks()
797 cfg_hooks->merge_blocks (a, b); in merge_blocks()
875 if (!cfg_hooks->make_forwarder_block) in make_forwarder_block()
877 cfg_hooks->name); in make_forwarder_block()
953 cfg_hooks->make_forwarder_block (fallthru); in make_forwarder_block()
963 if (cfg_hooks->tidy_fallthru_edge) in tidy_fallthru_edge()
964 cfg_hooks->tidy_fallthru_edge (e); in tidy_fallthru_edge()
979 if (!cfg_hooks->tidy_fallthru_edge) in tidy_fallthru_edges()
1024 if (!cfg_hooks->force_nonfallthru) in force_nonfallthru()
1026 cfg_hooks->name); in force_nonfallthru()
1028 ret = cfg_hooks->force_nonfallthru (e); in force_nonfallthru()
1058 if (!cfg_hooks->can_duplicate_block_p) in can_duplicate_block_p()
1060 cfg_hooks->name); in can_duplicate_block_p()
1065 return cfg_hooks->can_duplicate_block_p (bb); in can_duplicate_block_p()
1080 if (!cfg_hooks->duplicate_block) in duplicate_block()
1082 cfg_hooks->name); in duplicate_block()
1089 new_bb = cfg_hooks->duplicate_block (bb, id); in duplicate_block()
1155 if (!cfg_hooks->block_ends_with_call_p) in block_ends_with_call_p()
1156 internal_error ("%s does not support block_ends_with_call_p", cfg_hooks->name); in block_ends_with_call_p()
1158 return (cfg_hooks->block_ends_with_call_p) (bb); in block_ends_with_call_p()
1166 if (!cfg_hooks->block_ends_with_condjump_p) in block_ends_with_condjump_p()
1168 cfg_hooks->name); in block_ends_with_condjump_p()
1170 return (cfg_hooks->block_ends_with_condjump_p) (bb); in block_ends_with_condjump_p()
1184 if (!cfg_hooks->flow_call_edges_add) in flow_call_edges_add()
1186 cfg_hooks->name); in flow_call_edges_add()
1188 return (cfg_hooks->flow_call_edges_add) (blocks); in flow_call_edges_add()
1198 && cfg_hooks->execute_on_growing_pred) in execute_on_growing_pred()
1199 cfg_hooks->execute_on_growing_pred (e); in execute_on_growing_pred()
1209 && cfg_hooks->execute_on_shrinking_pred) in execute_on_shrinking_pred()
1210 cfg_hooks->execute_on_shrinking_pred (e); in execute_on_shrinking_pred()
1219 if (cfg_hooks->flush_pending_stmts) in lv_flush_pending_stmts()
1220 cfg_hooks->flush_pending_stmts (e); in lv_flush_pending_stmts()
1237 gcc_assert (cfg_hooks->cfg_hook_duplicate_loop_to_header_edge); in cfg_hook_duplicate_loop_to_header_edge()
1238 return cfg_hooks->cfg_hook_duplicate_loop_to_header_edge (loop, e, in cfg_hook_duplicate_loop_to_header_edge()
1251 gcc_assert (cfg_hooks->extract_cond_bb_edges); in extract_cond_bb_edges()
1252 cfg_hooks->extract_cond_bb_edges (b, e1, e2); in extract_cond_bb_edges()
1261 if (cfg_hooks->lv_adjust_loop_header_phi) in lv_adjust_loop_header_phi()
1262 cfg_hooks->lv_adjust_loop_header_phi (first, second, new_block, e); in lv_adjust_loop_header_phi()
1272 gcc_assert (cfg_hooks->lv_add_condition_to_bb); in lv_add_condition_to_bb()
1273 cfg_hooks->lv_add_condition_to_bb (first, second, new_block, cond); in lv_add_condition_to_bb()
1418 gcc_assert (cfg_hooks->empty_block_p); in empty_block_p()
1419 return cfg_hooks->empty_block_p (bb); in empty_block_p()
1427 gcc_assert (cfg_hooks->split_block_before_cond_jump); in split_block_before_cond_jump()
1428 return cfg_hooks->split_block_before_cond_jump (bb); in split_block_before_cond_jump()
1478 gcc_assert (cfg_hooks->account_profile_record); in profile_record_check_consistency()
1479 cfg_hooks->account_profile_record (bb, record); in profile_record_check_consistency()
1494 gcc_assert (cfg_hooks->account_profile_record); in profile_record_account_profile()
1495 cfg_hooks->account_profile_record (bb, record); in profile_record_account_profile()