xref: /dflybsd-src/contrib/gcc-4.7/gcc/builtins.h (revision 04febcfb30580676d3e95f58a16c5137ee478b32)
1*e4b17023SJohn Marino /* Expand builtin functions.
2*e4b17023SJohn Marino    Copyright (C) 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3*e4b17023SJohn Marino    2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
4*e4b17023SJohn Marino    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_BUILTINS_H
23*e4b17023SJohn Marino #define GCC_BUILTINS_H
24*e4b17023SJohn Marino 
25*e4b17023SJohn Marino /* Target-dependent globals.  */
26*e4b17023SJohn Marino struct target_builtins {
27*e4b17023SJohn Marino   /* For each register that may be used for calling a function, this
28*e4b17023SJohn Marino      gives a mode used to copy the register's value.  VOIDmode indicates
29*e4b17023SJohn Marino      the register is not used for calling a function.  If the machine
30*e4b17023SJohn Marino      has register windows, this gives only the outbound registers.
31*e4b17023SJohn Marino      INCOMING_REGNO gives the corresponding inbound register.  */
32*e4b17023SJohn Marino   enum machine_mode x_apply_args_mode[FIRST_PSEUDO_REGISTER];
33*e4b17023SJohn Marino 
34*e4b17023SJohn Marino   /* For each register that may be used for returning values, this gives
35*e4b17023SJohn Marino      a mode used to copy the register's value.  VOIDmode indicates the
36*e4b17023SJohn Marino      register is not used for returning values.  If the machine has
37*e4b17023SJohn Marino      register windows, this gives only the outbound registers.
38*e4b17023SJohn Marino      INCOMING_REGNO gives the corresponding inbound register.  */
39*e4b17023SJohn Marino   enum machine_mode x_apply_result_mode[FIRST_PSEUDO_REGISTER];
40*e4b17023SJohn Marino };
41*e4b17023SJohn Marino 
42*e4b17023SJohn Marino extern GTY(()) struct target_builtins default_target_builtins;
43*e4b17023SJohn Marino #if SWITCHABLE_TARGET
44*e4b17023SJohn Marino extern struct target_builtins *this_target_builtins;
45*e4b17023SJohn Marino #else
46*e4b17023SJohn Marino #define this_target_builtins (&default_target_builtins)
47*e4b17023SJohn Marino #endif
48*e4b17023SJohn Marino 
49*e4b17023SJohn Marino #endif
50