1/* Control flow optimization header file.
2 Copyright (C) 2014-2023 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
21#ifndef GCC_CFGCLEANUP_H
22#define GCC_CFGCLEANUP_H
23
24enum replace_direction { dir_none, dir_forward, dir_backward, dir_both };
25
26extern int flow_find_cross_jump (basic_block, basic_block, rtx_insn **,
27 rtx_insn **, enum replace_direction*);
28extern int flow_find_head_matching_sequence (basic_block, basic_block,
29 rtx_insn **, rtx_insn **, int);
30extern bool delete_unreachable_blocks (void);
31extern void delete_dead_jumptables (void);
32extern bool cleanup_cfg (int);
33extern bool bb_is_just_return (basic_block, rtx_insn **, rtx_insn **);
34
35#endif /* GCC_CFGCLEANUP_H */
36

source code of gcc/cfgcleanup.h