gcc/
[official-gcc.git] / gcc / internal-fn.h
blob2ff3347241fce8eed4848803657e6df4cf20b7d0
1 /* Internal functions.
2 Copyright (C) 2011-2015 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 3, or (at your option) any later
9 version.
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 for more details.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
20 #ifndef GCC_INTERNAL_FN_H
21 #define GCC_INTERNAL_FN_H
23 /* Initialize internal function tables. */
25 extern void init_internal_fns ();
27 /* Return the name of internal function FN. The name is only meaningful
28 for dumps; it has no linkage. */
30 extern const char *const internal_fn_name_array[];
32 static inline const char *
33 internal_fn_name (enum internal_fn fn)
35 return internal_fn_name_array[(int) fn];
38 /* Return the ECF_* flags for function FN. */
40 extern const int internal_fn_flags_array[];
42 static inline int
43 internal_fn_flags (enum internal_fn fn)
45 return internal_fn_flags_array[(int) fn];
48 /* Return fnspec for function FN. */
50 extern GTY(()) const_tree internal_fn_fnspec_array[IFN_LAST + 1];
52 static inline const_tree
53 internal_fn_fnspec (enum internal_fn fn)
55 return internal_fn_fnspec_array[(int) fn];
58 extern void expand_internal_call (gcall *);
60 #endif