cfgrtl.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* Define control flow data structures for the CFG.
  2. Copyright (C) 2014-2019 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify it under
  5. the terms of the GNU General Public License as published by the Free
  6. Software Foundation; either version 3, or (at your option) any later
  7. version.
  8. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  9. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11. for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GCC; see the file COPYING3. If not see
  14. <http://www.gnu.org/licenses/>. */
  15. #ifndef GCC_CFGRTL_H
  16. #define GCC_CFGRTL_H
  17. extern void delete_insn (rtx_insn *);
  18. extern bool delete_insn_and_edges (rtx_insn *);
  19. extern void delete_insn_chain (rtx, rtx_insn *, bool);
  20. extern basic_block create_basic_block_structure (rtx_insn *, rtx_insn *,
  21. rtx_note *, basic_block);
  22. extern void compute_bb_for_insn (void);
  23. extern unsigned int free_bb_for_insn (void);
  24. extern rtx_insn *entry_of_function (void);
  25. extern void update_bb_for_insn (basic_block);
  26. extern bool contains_no_active_insn_p (const_basic_block);
  27. extern bool forwarder_block_p (const_basic_block);
  28. extern bool can_fallthru (basic_block, basic_block);
  29. extern rtx_note *bb_note (basic_block);
  30. extern rtx_code_label *block_label (basic_block);
  31. extern edge try_redirect_by_replacing_jump (edge, basic_block, bool);
  32. extern void emit_barrier_after_bb (basic_block bb);
  33. extern basic_block force_nonfallthru_and_redirect (edge, basic_block, rtx);
  34. extern void insert_insn_on_edge (rtx, edge);
  35. extern void commit_one_edge_insertion (edge e);
  36. extern void commit_edge_insertions (void);
  37. extern void print_rtl_with_bb (FILE *, const rtx_insn *, dump_flags_t);
  38. extern void update_br_prob_note (basic_block);
  39. extern rtx_insn *get_last_bb_insn (basic_block);
  40. extern void fixup_partitions (void);
  41. extern bool purge_dead_edges (basic_block);
  42. extern bool purge_all_dead_edges (void);
  43. extern bool fixup_abnormal_edges (void);
  44. extern rtx_insn *unlink_insn_chain (rtx_insn *, rtx_insn *);
  45. extern void relink_block_chain (bool);
  46. extern rtx_insn *duplicate_insn_chain (rtx_insn *, rtx_insn *);
  47. extern void cfg_layout_initialize (int);
  48. extern void cfg_layout_finalize (void);
  49. extern void break_superblocks (void);
  50. extern void init_rtl_bb_info (basic_block);
  51. extern void find_bbs_reachable_by_hot_paths (hash_set <basic_block> *);
  52. #endif /* GCC_CFGRTL_H */