tree-ssa-threadupdate.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* Communication between registering jump thread requests and
  2. updating the SSA/CFG for jump threading.
  3. Copyright (C) 2013-2015 Free Software Foundation, Inc.
  4. This file is part of GCC.
  5. GCC is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 3, or (at your option)
  8. any later version.
  9. GCC is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with GCC; see the file COPYING3. If not see
  15. <http://www.gnu.org/licenses/>. */
  16. #ifndef _TREE_SSA_THREADUPDATE_H
  17. #define _TREE_SSA_THREADUPDATE_H 1
  18. /* In tree-ssa-threadupdate.c. */
  19. extern bool thread_through_all_blocks (bool);
  20. enum jump_thread_edge_type
  21. {
  22. EDGE_START_JUMP_THREAD,
  23. EDGE_FSM_THREAD,
  24. EDGE_COPY_SRC_BLOCK,
  25. EDGE_COPY_SRC_JOINER_BLOCK,
  26. EDGE_NO_COPY_SRC_BLOCK
  27. };
  28. class jump_thread_edge
  29. {
  30. public:
  31. jump_thread_edge (edge e, enum jump_thread_edge_type type)
  32. : e (e), type (type) {}
  33. edge e;
  34. enum jump_thread_edge_type type;
  35. };
  36. extern void register_jump_thread (vec <class jump_thread_edge *> *);
  37. extern void delete_jump_thread_path (vec <class jump_thread_edge *> *);
  38. #endif