]> gcc.gnu.org Git - gcc.git/blame - gcc/tree-ssa-loop-niter.h
ada: Another couple of cleanups in the finalization machinery
[gcc.git] / gcc / tree-ssa-loop-niter.h
CommitLineData
71343877 1/* Header file for loop interation estimates.
aeee4812 2 Copyright (C) 2013-2023 Free Software Foundation, Inc.
71343877
AM
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_NITER_H
21#define GCC_TREE_SSA_LOOP_NITER_H
22
fc06280e 23extern tree expand_simple_operations (tree, tree = NULL);
99b1c316 24extern tree simplify_using_initial_conditions (class loop *, tree);
f10d2d85
RB
25extern bool loop_only_exit_p (const class loop *, basic_block *body,
26 const_edge);
99b1c316
MS
27extern bool number_of_iterations_exit (class loop *, edge,
28 class tree_niter_desc *niter, bool,
f10d2d85
RB
29 bool every_iteration = true,
30 basic_block * = NULL);
99b1c316
MS
31extern bool number_of_iterations_exit_assumptions (class loop *, edge,
32 class tree_niter_desc *,
f10d2d85
RB
33 gcond **, bool = true,
34 basic_block * = NULL);
99b1c316
MS
35extern tree find_loop_niter (class loop *, edge *);
36extern bool finite_loop_p (class loop *);
37extern tree loop_niter_by_eval (class loop *, edge);
38extern tree find_loop_niter_by_eval (class loop *, edge *);
39extern bool estimated_loop_iterations (class loop *, widest_int *);
40extern HOST_WIDE_INT estimated_loop_iterations_int (class loop *);
41extern bool max_loop_iterations (class loop *, widest_int *);
42extern HOST_WIDE_INT max_loop_iterations_int (class loop *);
43extern bool likely_max_loop_iterations (class loop *, widest_int *);
44extern HOST_WIDE_INT likely_max_loop_iterations_int (class loop *);
45extern HOST_WIDE_INT max_stmt_executions_int (class loop *);
46extern HOST_WIDE_INT likely_max_stmt_executions_int (class loop *);
47extern HOST_WIDE_INT estimated_stmt_executions_int (class loop *);
48extern bool max_stmt_executions (class loop *, widest_int *);
49extern bool likely_max_stmt_executions (class loop *, widest_int *);
50extern bool estimated_stmt_executions (class loop *, widest_int *);
adb7eaa2 51extern void estimate_numbers_of_iterations (function *);
99b1c316 52extern void estimate_numbers_of_iterations (class loop *);
355fe088 53extern bool stmt_dominates_stmt_p (gimple *, gimple *);
71343877 54extern bool nowrap_type_p (tree);
b24d9420 55extern bool scev_probably_wraps_p (tree, tree, tree, gimple *,
99b1c316
MS
56 class loop *, bool);
57extern void free_numbers_of_iterations_estimates (class loop *);
61183076 58extern void free_numbers_of_iterations_estimates (function *);
97c14603
AV
59extern tree simplify_replace_tree (tree, tree,
60 tree, tree (*)(tree, void *) = NULL,
f7dff769 61 void * = NULL, bool do_fold = true);
99b1c316 62extern void substitute_in_loop_info (class loop *, tree, tree);
71343877
AM
63
64#endif /* GCC_TREE_SSA_LOOP_NITER_H */
This page took 7.98938 seconds and 5 git commands to generate.