tree-ssa-loop-ivopts.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* Header file for Induction variable optimizations.
  2. Copyright (C) 2013-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_TREE_SSA_LOOP_IVOPTS_H
  16. #define GCC_TREE_SSA_LOOP_IVOPTS_H
  17. extern edge single_dom_exit (struct loop *);
  18. extern void dump_iv (FILE *, struct iv *);
  19. extern void dump_use (FILE *, struct iv_use *);
  20. extern void dump_uses (FILE *, struct ivopts_data *);
  21. extern void dump_cand (FILE *, struct iv_cand *);
  22. extern bool contains_abnormal_ssa_name_p (tree);
  23. extern struct loop *outermost_invariant_loop_for_expr (struct loop *, tree);
  24. extern bool expr_invariant_in_loop_p (struct loop *, tree);
  25. extern tree strip_offset (tree, poly_uint64_pod *);
  26. bool may_be_nonaddressable_p (tree expr);
  27. void tree_ssa_iv_optimize (void);
  28. void create_canonical_iv (struct loop *, edge, tree,
  29. tree * = NULL, tree * = NULL);
  30. #endif /* GCC_TREE_SSA_LOOP_IVOPTS_H */