tree-ssa-loop-manip.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* Header file for High-level loop manipulation functions.
  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_SSA_LOOP_MANIP_H
  16. #define GCC_TREE_SSA_LOOP_MANIP_H
  17. typedef void (*transform_callback)(struct loop *, void *);
  18. extern void create_iv (tree, tree, tree, struct loop *, gimple_stmt_iterator *,
  19. bool, tree *, tree *);
  20. extern void rewrite_into_loop_closed_ssa (bitmap, unsigned);
  21. extern void verify_loop_closed_ssa (bool);
  22. extern basic_block split_loop_exit_edge (edge);
  23. extern basic_block ip_end_pos (struct loop *);
  24. extern basic_block ip_normal_pos (struct loop *);
  25. extern void standard_iv_increment_position (struct loop *,
  26. gimple_stmt_iterator *, bool *);
  27. extern bool gimple_duplicate_loop_to_header_edge (struct loop *, edge,
  28. unsigned int, sbitmap,
  29. edge, vec<edge> *,
  30. int);
  31. extern bool can_unroll_loop_p (struct loop *loop, unsigned factor,
  32. struct tree_niter_desc *niter);
  33. extern void tree_transform_and_unroll_loop (struct loop *, unsigned,
  34. edge, struct tree_niter_desc *,
  35. transform_callback, void *);
  36. extern void tree_unroll_loop (struct loop *, unsigned,
  37. edge, struct tree_niter_desc *);
  38. extern tree canonicalize_loop_ivs (struct loop *, tree *, bool);
  39. #endif /* GCC_TREE_SSA_LOOP_MANIP_H */