annotate gcc/cfgloopmanip.h @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Loop manipulation header.
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
2 Copyright (C) 2014-2020 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 This file is part of GCC.
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 GCC is free software; you can redistribute it and/or modify it under
kono
parents:
diff changeset
7 the terms of the GNU General Public License as published by the Free
kono
parents:
diff changeset
8 Software Foundation; either version 3, or (at your option) any later
kono
parents:
diff changeset
9 version.
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
kono
parents:
diff changeset
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
kono
parents:
diff changeset
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
kono
parents:
diff changeset
14 for more details.
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
17 along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
18 <http://www.gnu.org/licenses/>. */
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 #ifndef GCC_CFGLOOPMANIP_H
kono
parents:
diff changeset
21 #define GCC_CFGLOOPMANIP_H
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 enum
kono
parents:
diff changeset
24 {
kono
parents:
diff changeset
25 CP_SIMPLE_PREHEADERS = 1,
kono
parents:
diff changeset
26 CP_FALLTHRU_PREHEADERS = 2
kono
parents:
diff changeset
27 };
kono
parents:
diff changeset
28
kono
parents:
diff changeset
29 #define DLTHE_FLAG_UPDATE_FREQ 1 /* Update frequencies in
kono
parents:
diff changeset
30 duplicate_loop_to_header_edge. */
kono
parents:
diff changeset
31 #define DLTHE_RECORD_COPY_NUMBER 2 /* Record copy number in the aux
kono
parents:
diff changeset
32 field of newly create BB. */
kono
parents:
diff changeset
33 #define DLTHE_FLAG_COMPLETTE_PEEL 4 /* Update frequencies expecting
kono
parents:
diff changeset
34 a complete peeling. */
kono
parents:
diff changeset
35 extern edge mfb_kj_edge;
kono
parents:
diff changeset
36
kono
parents:
diff changeset
37 extern bool remove_path (edge, bool * = NULL, bitmap = NULL);
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
38 extern void place_new_loop (struct function *, class loop *);
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
39 extern void add_loop (class loop *, class loop *);
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
40 extern void scale_loop_frequencies (class loop *, profile_probability);
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
41 extern void scale_loop_profile (class loop *, profile_probability, gcov_type);
111
kono
parents:
diff changeset
42 extern edge create_empty_if_region_on_edge (edge, tree);
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
43 extern class loop *create_empty_loop_on_edge (edge, tree, tree, tree, tree,
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
44 tree *, tree *, class loop *);
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
45 extern class loop *loopify (edge, edge,
111
kono
parents:
diff changeset
46 basic_block, edge, edge, bool,
kono
parents:
diff changeset
47 profile_probability, profile_probability);
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
48 extern void unloop (class loop *, bool *, bitmap);
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
49 extern void copy_loop_info (class loop *loop, class loop *target);
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
50 extern class loop * duplicate_loop (class loop *, class loop *,
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
51 class loop * = NULL);
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
52 extern void duplicate_subloops (class loop *, class loop *);
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
53 extern bool can_duplicate_loop_p (const class loop *loop);
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
54 extern bool duplicate_loop_to_header_edge (class loop *, edge,
111
kono
parents:
diff changeset
55 unsigned, sbitmap, edge,
kono
parents:
diff changeset
56 vec<edge> *, int);
kono
parents:
diff changeset
57 extern bool mfb_keep_just (edge);
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
58 basic_block create_preheader (class loop *, int);
111
kono
parents:
diff changeset
59 extern void create_preheaders (int);
kono
parents:
diff changeset
60 extern void force_single_succ_latches (void);
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
61 class loop * loop_version (class loop *, void *,
111
kono
parents:
diff changeset
62 basic_block *,
kono
parents:
diff changeset
63 profile_probability, profile_probability,
kono
parents:
diff changeset
64 profile_probability, profile_probability, bool);
kono
parents:
diff changeset
65
kono
parents:
diff changeset
66 #endif /* GCC_CFGLOOPMANIP_H */