cfgcleanup.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. /* Control flow optimization header file.
  2. Copyright (C) 2014-2015 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify it under
  5. the terms of the GNU General Public License as published by the Free
  6. Software Foundation; either version 3, or (at your option) any later
  7. version.
  8. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  9. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11. for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GCC; see the file COPYING3. If not see
  14. <http://www.gnu.org/licenses/>. */
  15. #ifndef GCC_CFGCLEANUP_H
  16. #define GCC_CFGCLEANUP_H
  17. enum replace_direction { dir_none, dir_forward, dir_backward, dir_both };
  18. extern int flow_find_cross_jump (basic_block, basic_block, rtx_insn **,
  19. rtx_insn **, enum replace_direction*);
  20. extern int flow_find_head_matching_sequence (basic_block, basic_block,
  21. rtx_insn **, rtx_insn **, int);
  22. extern bool delete_unreachable_blocks (void);
  23. extern void delete_dead_jumptables (void);
  24. extern bool cleanup_cfg (int);
  25. #endif /* GCC_CFGCLEANUP_H */