1*e4b17023SJohn Marino /* Basic block reordering routines for the GNU compiler. 2*e4b17023SJohn Marino Copyright (C) 2000, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010 3*e4b17023SJohn Marino Free Software Foundation, Inc. 4*e4b17023SJohn Marino 5*e4b17023SJohn Marino This file is part of GCC. 6*e4b17023SJohn Marino 7*e4b17023SJohn Marino GCC is free software; you can redistribute it and/or modify it 8*e4b17023SJohn Marino under the terms of the GNU General Public License as published by 9*e4b17023SJohn Marino the Free Software Foundation; either version 3, or (at your option) 10*e4b17023SJohn Marino any later version. 11*e4b17023SJohn Marino 12*e4b17023SJohn Marino GCC is distributed in the hope that it will be useful, but WITHOUT 13*e4b17023SJohn Marino ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14*e4b17023SJohn Marino or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 15*e4b17023SJohn Marino License for more details. 16*e4b17023SJohn Marino 17*e4b17023SJohn Marino You should have received a copy of the GNU General Public License 18*e4b17023SJohn Marino along with GCC; see the file COPYING3. If not see 19*e4b17023SJohn Marino <http://www.gnu.org/licenses/>. */ 20*e4b17023SJohn Marino 21*e4b17023SJohn Marino #ifndef GCC_BB_REORDER 22*e4b17023SJohn Marino #define GCC_BB_REORDER 23*e4b17023SJohn Marino 24*e4b17023SJohn Marino /* Target-specific globals. */ 25*e4b17023SJohn Marino struct target_bb_reorder { 26*e4b17023SJohn Marino /* Length of unconditional jump instruction. */ 27*e4b17023SJohn Marino int x_uncond_jump_length; 28*e4b17023SJohn Marino }; 29*e4b17023SJohn Marino 30*e4b17023SJohn Marino extern GTY(()) struct target_bb_reorder default_target_bb_reorder; 31*e4b17023SJohn Marino #if SWITCHABLE_TARGET 32*e4b17023SJohn Marino extern struct target_bb_reorder *this_target_bb_reorder; 33*e4b17023SJohn Marino #else 34*e4b17023SJohn Marino #define this_target_bb_reorder (&default_target_bb_reorder) 35*e4b17023SJohn Marino #endif 36*e4b17023SJohn Marino 37*e4b17023SJohn Marino extern int get_uncond_jump_length (void); 38*e4b17023SJohn Marino 39*e4b17023SJohn Marino #endif 40