]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/cfg.h
2014-10-21 Andrew MacLeod <amacleod@redhat.com>
[thirdparty/gcc.git] / gcc / cfg.h
CommitLineData
f7b51129 1/* Control flow graph manipulation code header file.
2 Copyright (C) 2014 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
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_CFG_H
21#define GCC_CFG_H
22
23extern void init_flow (struct function *);
24extern void clear_edges (void);
25extern basic_block alloc_block (void);
26extern void link_block (basic_block, basic_block);
27extern void unlink_block (basic_block);
28extern void compact_blocks (void);
29extern void expunge_block (basic_block);
30extern edge unchecked_make_edge (basic_block, basic_block, int);
31extern edge cached_make_edge (sbitmap, basic_block, basic_block, int);
32extern edge make_edge (basic_block, basic_block, int);
33extern edge make_single_succ_edge (basic_block, basic_block, int);
34extern void remove_edge_raw (edge);
35extern void redirect_edge_succ (edge, basic_block);
36extern void redirect_edge_pred (edge, basic_block);
37extern void clear_bb_flags (void);
38extern void dump_edge_info (FILE *, edge, int, int);
39extern void debug (edge_def &ref);
40extern void debug (edge_def *ptr);
41extern void alloc_aux_for_blocks (int);
42extern void clear_aux_for_blocks (void);
43extern void free_aux_for_blocks (void);
44extern void alloc_aux_for_edge (edge, int);
45extern void alloc_aux_for_edges (int);
46extern void clear_aux_for_edges (void);
47extern void free_aux_for_edges (void);
48extern void debug_bb (basic_block);
49extern basic_block debug_bb_n (int);
50extern void dump_bb_info (FILE *, basic_block, int, int, bool, bool);
51extern void brief_dump_cfg (FILE *, int);
52extern void update_bb_profile_for_threading (basic_block, int, gcov_type, edge);
53extern void scale_bbs_frequencies_int (basic_block *, int, int, int);
54extern void scale_bbs_frequencies_gcov_type (basic_block *, int, gcov_type,
55 gcov_type);
56extern void initialize_original_copy_tables (void);
57extern void free_original_copy_tables (void);
58extern void set_bb_original (basic_block, basic_block);
59extern basic_block get_bb_original (basic_block);
60extern void set_bb_copy (basic_block, basic_block);
61extern basic_block get_bb_copy (basic_block);
62void set_loop_copy (struct loop *, struct loop *);
63struct loop *get_loop_copy (struct loop *);
64
65#endif /* GCC_CFG_H */