]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/cfgloopmanip.h
* doc/install.texi (Specific, alpha): Remove note to use
[thirdparty/gcc.git] / gcc / cfgloopmanip.h
CommitLineData
e5a23585 1/* Loop manipulation header.
fbd26352 2 Copyright (C) 2014-2019 Free Software Foundation, Inc.
e5a23585 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
14for 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_CFGLOOPMANIP_H
21#define GCC_CFGLOOPMANIP_H
22
23enum
24{
25 CP_SIMPLE_PREHEADERS = 1,
26 CP_FALLTHRU_PREHEADERS = 2
27};
28
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. */
35extern edge mfb_kj_edge;
36
7465dbcd 37extern bool remove_path (edge, bool * = NULL, bitmap = NULL);
2e966e2a 38extern void place_new_loop (struct function *, class loop *);
39extern void add_loop (class loop *, class loop *);
40extern void scale_loop_frequencies (class loop *, profile_probability);
41extern void scale_loop_profile (class loop *, profile_probability, gcov_type);
e5a23585 42extern edge create_empty_if_region_on_edge (edge, tree);
2e966e2a 43extern class loop *create_empty_loop_on_edge (edge, tree, tree, tree, tree,
44 tree *, tree *, class loop *);
45extern class loop *loopify (edge, edge,
e5a23585 46 basic_block, edge, edge, bool,
ca69b069 47 profile_probability, profile_probability);
2e966e2a 48extern void unloop (class loop *, bool *, bitmap);
49extern void copy_loop_info (class loop *loop, class loop *target);
50extern class loop * duplicate_loop (class loop *, class loop *,
51 class loop * = NULL);
52extern void duplicate_subloops (class loop *, class loop *);
53extern bool can_duplicate_loop_p (const class loop *loop);
54extern bool duplicate_loop_to_header_edge (class loop *, edge,
e5a23585 55 unsigned, sbitmap, edge,
56 vec<edge> *, int);
57extern bool mfb_keep_just (edge);
2e966e2a 58basic_block create_preheader (class loop *, int);
e5a23585 59extern void create_preheaders (int);
60extern void force_single_succ_latches (void);
2e966e2a 61class loop * loop_version (class loop *, void *,
720cfc43 62 basic_block *,
63 profile_probability, profile_probability,
ca69b069 64 profile_probability, profile_probability, bool);
e5a23585 65
66#endif /* GCC_CFGLOOPMANIP_H */