Remove unused libgfortran functions
[official-gcc.git] / gcc / cfgloopmanip.h
blob5c4552c5c433bb94bdfac90f87c76b74fa0c947d
1 /* Loop manipulation header.
2 Copyright (C) 2014-2016 Free Software Foundation, Inc.
4 This file is part of GCC.
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.
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.
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/>. */
20 #ifndef GCC_CFGLOOPMANIP_H
21 #define GCC_CFGLOOPMANIP_H
23 enum
25 CP_SIMPLE_PREHEADERS = 1,
26 CP_FALLTHRU_PREHEADERS = 2
29 #define DLTHE_FLAG_UPDATE_FREQ 1 /* Update frequencies in
30 duplicate_loop_to_header_edge. */
31 #define DLTHE_RECORD_COPY_NUMBER 2 /* Record copy number in the aux
32 field of newly create BB. */
33 #define DLTHE_FLAG_COMPLETTE_PEEL 4 /* Update frequencies expecting
34 a complete peeling. */
35 extern edge mfb_kj_edge;
37 extern bool remove_path (edge, bool * = NULL, bitmap = NULL);
38 extern void place_new_loop (struct function *, struct loop *);
39 extern void add_loop (struct loop *, struct loop *);
40 extern void scale_loop_frequencies (struct loop *, int, int);
41 extern void scale_loop_profile (struct loop *, int, gcov_type);
42 extern edge create_empty_if_region_on_edge (edge, tree);
43 extern struct loop *create_empty_loop_on_edge (edge, tree, tree, tree, tree,
44 tree *, tree *, struct loop *);
45 extern struct loop *loopify (edge, edge,
46 basic_block, edge, edge, bool,
47 unsigned, unsigned);
48 extern void unloop (struct loop *, bool *, bitmap);
49 extern void copy_loop_info (struct loop *loop, struct loop *target);
50 extern struct loop * duplicate_loop (struct loop *, struct loop *);
51 extern void duplicate_subloops (struct loop *, struct loop *);
52 extern bool can_duplicate_loop_p (const struct loop *loop);
53 extern bool duplicate_loop_to_header_edge (struct loop *, edge,
54 unsigned, sbitmap, edge,
55 vec<edge> *, int);
56 extern bool mfb_keep_just (edge);
57 basic_block create_preheader (struct loop *, int);
58 extern void create_preheaders (int);
59 extern void force_single_succ_latches (void);
60 struct loop * loop_version (struct loop *, void *,
61 basic_block *, unsigned, unsigned, unsigned, bool);
63 #endif /* GCC_CFGLOOPMANIP_H */