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