bb-reorder.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* Basic block reordering routines for the GNU compiler.
  2. Copyright (C) 2000-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
  5. under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3, or (at your option)
  7. any later version.
  8. GCC is distributed in the hope that it will be useful, but WITHOUT
  9. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  10. or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
  11. License 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_BB_REORDER
  16. #define GCC_BB_REORDER
  17. /* Target-specific globals. */
  18. struct target_bb_reorder {
  19. /* Length of unconditional jump instruction. */
  20. int x_uncond_jump_length;
  21. };
  22. extern struct target_bb_reorder default_target_bb_reorder;
  23. #if SWITCHABLE_TARGET
  24. extern struct target_bb_reorder *this_target_bb_reorder;
  25. #else
  26. #define this_target_bb_reorder (&default_target_bb_reorder)
  27. #endif
  28. extern int get_uncond_jump_length (void);
  29. extern void insert_section_boundary_note (void);
  30. #endif