tree-eh.h 2.2 KB

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