tree-ssa-loop-manip.h revision 1.1
1/* Header file for High-level loop manipulation functions. 2 Copyright (C) 2013-2015 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)(struct loop *, void *); 24 25extern void create_iv (tree, tree, tree, struct loop *, gimple_stmt_iterator *, 26 bool, tree *, tree *); 27extern void rewrite_into_loop_closed_ssa (bitmap, unsigned); 28extern void verify_loop_closed_ssa (bool); 29extern basic_block split_loop_exit_edge (edge); 30extern basic_block ip_end_pos (struct loop *); 31extern basic_block ip_normal_pos (struct loop *); 32extern void standard_iv_increment_position (struct loop *, 33 gimple_stmt_iterator *, bool *); 34extern bool gimple_duplicate_loop_to_header_edge (struct loop *, edge, 35 unsigned int, sbitmap, 36 edge, vec<edge> *, 37 int); 38extern bool can_unroll_loop_p (struct loop *loop, unsigned factor, 39 struct tree_niter_desc *niter); 40extern void tree_transform_and_unroll_loop (struct loop *, unsigned, 41 edge, struct tree_niter_desc *, 42 transform_callback, void *); 43extern void tree_unroll_loop (struct loop *, unsigned, 44 edge, struct tree_niter_desc *); 45extern tree canonicalize_loop_ivs (struct loop *, tree *, bool); 46 47 48 49#endif /* GCC_TREE_SSA_LOOP_MANIP_H */ 50