GCC Middle and Back End API Reference
tree-ssa-loop-manip.h
Go to the documentation of this file.
1/* Header file for High-level loop manipulation functions.
2 Copyright (C) 2013-2024 Free Software Foundation, Inc.
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
23typedef void (*transform_callback)(class loop *, void *);
24
25extern void create_iv (tree, tree_code, tree, tree, class loop *,
26 gimple_stmt_iterator *, bool, tree *, tree *);
27extern void rewrite_into_loop_closed_ssa (bitmap, unsigned);
28extern void verify_loop_closed_ssa (bool, class loop * = NULL);
29
30inline void
31checking_verify_loop_closed_ssa (bool verify_ssa_p, class loop *loop = NULL)
32{
33 if (flag_checking)
34 verify_loop_closed_ssa (verify_ssa_p, loop);
35}
36
37extern basic_block split_loop_exit_edge (edge, bool = false);
38extern basic_block ip_end_pos (class loop *);
39extern basic_block ip_normal_pos (class loop *);
40extern void standard_iv_increment_position (class loop *,
41 gimple_stmt_iterator *, bool *);
42extern bool
44 sbitmap, edge, vec<edge> *, int);
45extern bool can_unroll_loop_p (class loop *loop, unsigned factor,
46 class tree_niter_desc *niter);
47extern gcov_type niter_for_unrolled_loop (class loop *, unsigned);
48extern void tree_transform_and_unroll_loop (class loop *, unsigned,
50 transform_callback, void *);
51extern void tree_unroll_loop (class loop *, unsigned, tree_niter_desc *);
52extern tree canonicalize_loop_ivs (class loop *, tree *, bool);
53extern unsigned int loop_invariant_motion_in_fun (function *, bool);
54
55
56#endif /* GCC_TREE_SSA_LOOP_MANIP_H */
Definition cfgloop.h:120
Definition tree-ssa-loop.h:40
class edge_def * edge
Definition coretypes.h:352
class bitmap_head * bitmap
Definition coretypes.h:51
int64_t gcov_type
Definition coretypes.h:46
union tree_node * tree
Definition coretypes.h:97
tree_code
Definition genmatch.cc:347
Definition basic-block.h:117
Definition function.h:249
Definition gimple-iterator.h:26
Definition sbitmap.h:87
Definition vec.h:450
#define NULL
Definition system.h:50
basic_block split_loop_exit_edge(edge, bool=false)
Definition tree-ssa-loop-manip.cc:723
void(* transform_callback)(class loop *, void *)
Definition tree-ssa-loop-manip.h:23
void create_iv(tree, tree_code, tree, tree, class loop *, gimple_stmt_iterator *, bool, tree *, tree *)
Definition tree-ssa-loop-manip.cc:62
basic_block ip_normal_pos(class loop *)
Definition tree-ssa-loop-manip.cc:771
unsigned int loop_invariant_motion_in_fun(function *, bool)
Definition tree-ssa-loop-im.cc:3661
void rewrite_into_loop_closed_ssa(bitmap, unsigned)
Definition tree-ssa-loop-manip.cc:626
bool gimple_duplicate_loop_body_to_header_edge(class loop *, edge, unsigned int, sbitmap, edge, vec< edge > *, int)
Definition tree-ssa-loop-manip.cc:847
void tree_unroll_loop(class loop *, unsigned, tree_niter_desc *)
Definition tree-ssa-loop-manip.cc:1311
gcov_type niter_for_unrolled_loop(class loop *, unsigned)
void tree_transform_and_unroll_loop(class loop *, unsigned, tree_niter_desc *, transform_callback, void *)
Definition tree-ssa-loop-manip.cc:1102
void checking_verify_loop_closed_ssa(bool verify_ssa_p, class loop *loop=NULL)
Definition tree-ssa-loop-manip.h:31
tree canonicalize_loop_ivs(class loop *, tree *, bool)
Definition tree-ssa-loop-manip.cc:1393
void verify_loop_closed_ssa(bool, class loop *=NULL)
Definition tree-ssa-loop-manip.cc:681
bool can_unroll_loop_p(class loop *loop, unsigned factor, class tree_niter_desc *niter)
Definition tree-ssa-loop-manip.cc:879
basic_block ip_end_pos(class loop *)
Definition tree-ssa-loop-manip.cc:762
void standard_iv_increment_position(class loop *, gimple_stmt_iterator *, bool *)
Definition tree-ssa-loop-manip.cc:799