tree-eh.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* Header file for exception handling.
  2. Copyright (C) 2013-2020 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_TREE_EH_H
  16. #define GCC_TREE_EH_H
  17. typedef struct eh_region_d *eh_region;
  18. extern void using_eh_for_cleanups (void);
  19. extern void add_stmt_to_eh_lp (gimple *, int);
  20. extern bool remove_stmt_from_eh_lp_fn (struct function *, gimple *);
  21. extern bool remove_stmt_from_eh_lp (gimple *);
  22. extern int lookup_stmt_eh_lp_fn (struct function *, const gimple *);
  23. extern int lookup_stmt_eh_lp (const gimple *);
  24. extern bool make_eh_dispatch_edges (geh_dispatch *);
  25. extern void make_eh_edges (gimple *);
  26. extern edge redirect_eh_edge (edge, basic_block);
  27. extern void redirect_eh_dispatch_edge (geh_dispatch *, edge, basic_block);
  28. extern bool operation_could_trap_helper_p (enum tree_code, bool, bool, bool,
  29. bool, tree, bool *);
  30. extern bool operation_could_trap_p (enum tree_code, bool, bool, tree);
  31. extern bool tree_could_trap_p (tree);
  32. extern tree rewrite_to_non_trapping_overflow (tree);
  33. extern bool stmt_could_throw_p (function *, gimple *);
  34. extern bool stmt_unremovable_because_of_non_call_eh_p (function *, gimple *);
  35. extern bool tree_could_throw_p (tree);
  36. extern bool stmt_can_throw_external (function *, gimple *);
  37. extern bool stmt_can_throw_internal (function *, gimple *);
  38. extern bool maybe_clean_eh_stmt_fn (struct function *, gimple *);
  39. extern bool maybe_clean_eh_stmt (gimple *);
  40. extern bool maybe_clean_or_replace_eh_stmt (gimple *, gimple *);
  41. extern bool maybe_duplicate_eh_stmt_fn (struct function *, gimple *,
  42. struct function *, gimple *,
  43. hash_map<void *, void *> *, int);
  44. extern bool maybe_duplicate_eh_stmt (gimple *, gimple *);
  45. extern void maybe_remove_unreachable_handlers (void);
  46. extern void unsplit_eh_edges (void);
  47. extern bool verify_eh_edges (gimple *);
  48. extern bool verify_eh_dispatch_edge (geh_dispatch *);
  49. #endif /* GCC_TREE_EH_H */