]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/tree-ssa-loop-manip.h
* doc/install.texi (Specific, alpha): Remove note to use
[thirdparty/gcc.git] / gcc / tree-ssa-loop-manip.h
CommitLineData
f86b328b 1/* Header file for High-level loop manipulation functions.
fbd26352 2 Copyright (C) 2013-2019 Free Software Foundation, Inc.
f86b328b 3
4This file is part of GCC.
5
6GCC is free software; you can redistribute it and/or modify it under
7the terms of the GNU General Public License as published by the Free
8Software Foundation; either version 3, or (at your option) any later
9version.
10
11GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12WARRANTY; without even the implied warranty of MERCHANTABILITY or
13FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 for more details.
15
16You should have received a copy of the GNU General Public License
17along with GCC; see the file COPYING3. If not see
18<http://www.gnu.org/licenses/>. */
19
20#ifndef GCC_TREE_SSA_LOOP_MANIP_H
21#define GCC_TREE_SSA_LOOP_MANIP_H
22
2e966e2a 23typedef void (*transform_callback)(class loop *, void *);
f86b328b 24
2e966e2a 25extern void create_iv (tree, tree, tree, class loop *, gimple_stmt_iterator *,
f86b328b 26 bool, tree *, tree *);
92a2a716 27extern void rewrite_into_loop_closed_ssa_1 (bitmap, unsigned, int,
2e966e2a 28 class loop *);
f86b328b 29extern void rewrite_into_loop_closed_ssa (bitmap, unsigned);
2e966e2a 30extern void rewrite_virtuals_into_loop_closed_ssa (class loop *);
31extern void verify_loop_closed_ssa (bool, class loop * = NULL);
382ecba7 32
33static inline void
2e966e2a 34checking_verify_loop_closed_ssa (bool verify_ssa_p, class loop *loop = NULL)
382ecba7 35{
36 if (flag_checking)
232624e0 37 verify_loop_closed_ssa (verify_ssa_p, loop);
382ecba7 38}
39
6bae816f 40extern basic_block split_loop_exit_edge (edge, bool = false);
2e966e2a 41extern basic_block ip_end_pos (class loop *);
42extern basic_block ip_normal_pos (class loop *);
43extern void standard_iv_increment_position (class loop *,
f86b328b 44 gimple_stmt_iterator *, bool *);
2e966e2a 45extern bool gimple_duplicate_loop_to_header_edge (class loop *, edge,
f86b328b 46 unsigned int, sbitmap,
47 edge, vec<edge> *,
48 int);
2e966e2a 49extern bool can_unroll_loop_p (class loop *loop, unsigned factor,
50 class tree_niter_desc *niter);
51extern gcov_type niter_for_unrolled_loop (class loop *, unsigned);
52extern void tree_transform_and_unroll_loop (class loop *, unsigned,
53 edge, class tree_niter_desc *,
f86b328b 54 transform_callback, void *);
2e966e2a 55extern void tree_unroll_loop (class loop *, unsigned,
56 edge, class tree_niter_desc *);
57extern tree canonicalize_loop_ivs (class loop *, tree *, bool);
f86b328b 58
59
60
61#endif /* GCC_TREE_SSA_LOOP_MANIP_H */