GCC Middle and Back End API Reference
cfgcleanup.h
Go to the documentation of this file.
1/* Control flow optimization header file.
2 Copyright (C) 2014-2026 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
25
27 rtx_insn **, enum replace_direction*);
29 rtx_insn **, rtx_insn **, int);
30extern bool delete_unreachable_blocks (void);
31extern void delete_dead_jumptables (void);
32extern bool cleanup_cfg (int);
34
35#endif /* GCC_CFGCLEANUP_H */
int flow_find_cross_jump(basic_block bb1, basic_block bb2, rtx_insn **f1, rtx_insn **f2, enum replace_direction *dir_p)
Definition cfgcleanup.cc:1352
bool delete_unreachable_blocks(void)
Definition cfgcleanup.cc:3000
bool cleanup_cfg(int mode)
Definition cfgcleanup.cc:3111
bool bb_is_just_return(basic_block bb, rtx_insn **ret, rtx_insn **use)
Definition cfgcleanup.cc:2604
void delete_dead_jumptables(void)
Definition cfgcleanup.cc:3074
int flow_find_head_matching_sequence(basic_block bb1, basic_block bb2, rtx_insn **f1, rtx_insn **f2, int stop_after)
Definition cfgcleanup.cc:1487
replace_direction
Definition cfgcleanup.h:24
@ dir_forward
Definition cfgcleanup.h:24
@ dir_backward
Definition cfgcleanup.h:24
@ dir_none
Definition cfgcleanup.h:24
@ dir_both
Definition cfgcleanup.h:24
struct basic_block_def * basic_block
Definition coretypes.h:351
Definition rtl.h:549