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