shrink-wrap.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. /* Shrink-wrapping related functions.
  2. Copyright (C) 1989-2019 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_SHRINK_WRAP_H
  16. #define GCC_SHRINK_WRAP_H
  17. #include "function.h"
  18. /* In shrink-wrap.c. */
  19. extern bool requires_stack_frame_p (rtx_insn *, HARD_REG_SET, HARD_REG_SET);
  20. extern void try_shrink_wrapping (edge *entry_edge, rtx_insn *prologue_seq);
  21. extern void try_shrink_wrapping_separate (basic_block first_bb);
  22. #define SHRINK_WRAPPING_ENABLED \
  23. (flag_shrink_wrap && targetm.have_simple_return ())
  24. #endif /* GCC_SHRINK_WRAP_H */