tree-ssa-loop-niter.h revision 1.7 1 1.1 mrg /* Header file for loop interation estimates.
2 1.7 mrg Copyright (C) 2013-2022 Free Software Foundation, Inc.
3 1.1 mrg
4 1.1 mrg This file is part of GCC.
5 1.1 mrg
6 1.1 mrg GCC is free software; you can redistribute it and/or modify it under
7 1.1 mrg the terms of the GNU General Public License as published by the Free
8 1.1 mrg Software Foundation; either version 3, or (at your option) any later
9 1.1 mrg version.
10 1.1 mrg
11 1.1 mrg GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 1.1 mrg WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 1.1 mrg FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 1.1 mrg for more details.
15 1.1 mrg
16 1.1 mrg You should have received a copy of the GNU General Public License
17 1.1 mrg along with GCC; see the file COPYING3. If not see
18 1.1 mrg <http://www.gnu.org/licenses/>. */
19 1.1 mrg
20 1.1 mrg #ifndef GCC_TREE_SSA_LOOP_NITER_H
21 1.1 mrg #define GCC_TREE_SSA_LOOP_NITER_H
22 1.1 mrg
23 1.1 mrg extern tree expand_simple_operations (tree, tree = NULL);
24 1.6 mrg extern tree simplify_using_initial_conditions (class loop *, tree);
25 1.6 mrg extern bool loop_only_exit_p (const class loop *, basic_block *body,
26 1.6 mrg const_edge);
27 1.6 mrg extern bool number_of_iterations_exit (class loop *, edge,
28 1.6 mrg class tree_niter_desc *niter, bool,
29 1.6 mrg bool every_iteration = true,
30 1.6 mrg basic_block * = NULL);
31 1.6 mrg extern bool number_of_iterations_exit_assumptions (class loop *, edge,
32 1.6 mrg class tree_niter_desc *,
33 1.6 mrg gcond **, bool = true,
34 1.6 mrg basic_block * = NULL);
35 1.6 mrg extern tree find_loop_niter (class loop *, edge *);
36 1.6 mrg extern bool finite_loop_p (class loop *);
37 1.6 mrg extern tree loop_niter_by_eval (class loop *, edge);
38 1.6 mrg extern tree find_loop_niter_by_eval (class loop *, edge *);
39 1.6 mrg extern bool estimated_loop_iterations (class loop *, widest_int *);
40 1.6 mrg extern HOST_WIDE_INT estimated_loop_iterations_int (class loop *);
41 1.6 mrg extern bool max_loop_iterations (class loop *, widest_int *);
42 1.6 mrg extern HOST_WIDE_INT max_loop_iterations_int (class loop *);
43 1.6 mrg extern bool likely_max_loop_iterations (class loop *, widest_int *);
44 1.6 mrg extern HOST_WIDE_INT likely_max_loop_iterations_int (class loop *);
45 1.6 mrg extern HOST_WIDE_INT max_stmt_executions_int (class loop *);
46 1.6 mrg extern HOST_WIDE_INT likely_max_stmt_executions_int (class loop *);
47 1.6 mrg extern HOST_WIDE_INT estimated_stmt_executions_int (class loop *);
48 1.6 mrg extern bool max_stmt_executions (class loop *, widest_int *);
49 1.6 mrg extern bool likely_max_stmt_executions (class loop *, widest_int *);
50 1.6 mrg extern bool estimated_stmt_executions (class loop *, widest_int *);
51 1.4 mrg extern void estimate_numbers_of_iterations (function *);
52 1.6 mrg extern void estimate_numbers_of_iterations (class loop *);
53 1.3 mrg extern bool stmt_dominates_stmt_p (gimple *, gimple *);
54 1.1 mrg extern bool nowrap_type_p (tree);
55 1.3 mrg extern bool scev_probably_wraps_p (tree, tree, tree, gimple *,
56 1.6 mrg class loop *, bool);
57 1.6 mrg extern void free_numbers_of_iterations_estimates (class loop *);
58 1.3 mrg extern void free_numbers_of_iterations_estimates (function *);
59 1.6 mrg extern tree simplify_replace_tree (tree, tree,
60 1.6 mrg tree, tree (*)(tree, void *) = NULL,
61 1.6 mrg void * = NULL, bool do_fold = true);
62 1.6 mrg extern void substitute_in_loop_info (class loop *, tree, tree);
63 1.1 mrg
64 1.1 mrg #endif /* GCC_TREE_SSA_LOOP_NITER_H */
65