xref: /dflybsd-src/contrib/gcc-4.7/gcc/gcse.h (revision 04febcfb30580676d3e95f58a16c5137ee478b32)
1*e4b17023SJohn Marino /* Global common subexpression elimination/Partial redundancy elimination
2*e4b17023SJohn Marino    and global constant/copy propagation for GNU compiler.
3*e4b17023SJohn Marino    Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
4*e4b17023SJohn Marino    2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
5*e4b17023SJohn Marino 
6*e4b17023SJohn Marino This file is part of GCC.
7*e4b17023SJohn Marino 
8*e4b17023SJohn Marino GCC is free software; you can redistribute it and/or modify it under
9*e4b17023SJohn Marino the terms of the GNU General Public License as published by the Free
10*e4b17023SJohn Marino Software Foundation; either version 3, or (at your option) any later
11*e4b17023SJohn Marino version.
12*e4b17023SJohn Marino 
13*e4b17023SJohn Marino GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14*e4b17023SJohn Marino WARRANTY; without even the implied warranty of MERCHANTABILITY or
15*e4b17023SJohn Marino FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
16*e4b17023SJohn Marino for more details.
17*e4b17023SJohn Marino 
18*e4b17023SJohn Marino You should have received a copy of the GNU General Public License
19*e4b17023SJohn Marino along with GCC; see the file COPYING3.  If not see
20*e4b17023SJohn Marino <http://www.gnu.org/licenses/>.  */
21*e4b17023SJohn Marino 
22*e4b17023SJohn Marino #ifndef GCC_GCSE_H
23*e4b17023SJohn Marino #define GCC_GCSE_H
24*e4b17023SJohn Marino 
25*e4b17023SJohn Marino /* Target-dependent globals.  */
26*e4b17023SJohn Marino struct target_gcse {
27*e4b17023SJohn Marino   /* Nonzero for each mode that supports (set (reg) (reg)).
28*e4b17023SJohn Marino      This is trivially true for integer and floating point values.
29*e4b17023SJohn Marino      It may or may not be true for condition codes.  */
30*e4b17023SJohn Marino   char x_can_copy[(int) NUM_MACHINE_MODES];
31*e4b17023SJohn Marino 
32*e4b17023SJohn Marino   /* True if the previous field has been initialized.  */
33*e4b17023SJohn Marino   bool x_can_copy_init_p;
34*e4b17023SJohn Marino };
35*e4b17023SJohn Marino 
36*e4b17023SJohn Marino extern GTY(()) struct target_gcse default_target_gcse;
37*e4b17023SJohn Marino #if SWITCHABLE_TARGET
38*e4b17023SJohn Marino extern struct target_gcse *this_target_gcse;
39*e4b17023SJohn Marino #else
40*e4b17023SJohn Marino #define this_target_gcse (&default_target_gcse)
41*e4b17023SJohn Marino #endif
42*e4b17023SJohn Marino 
43*e4b17023SJohn Marino #endif
44