]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/internal-fn.h
Makefile.in (INTERNAL_FN_DEF, [...]): Define.
[thirdparty/gcc.git] / gcc / internal-fn.h
1 /* Internal functions.
2 Copyright (C) 2011 Free Software Foundation, Inc.
3
4 This file is part of GCC.
5
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.
10
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.
15
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/>. */
19
20 #ifndef GCC_INTERNAL_FN_H
21 #define GCC_INTERNAL_FN_H
22
23 enum internal_fn {
24 #define DEF_INTERNAL_FN(CODE, FLAGS) IFN_##CODE,
25 #include "internal-fn.def"
26 #undef DEF_INTERNAL_FN
27 IFN_LAST
28 };
29
30 /* Return the name of internal function FN. The name is only meaningful
31 for dumps; it has no linkage. */
32
33 static inline const char *
34 internal_fn_name (enum internal_fn fn)
35 {
36 extern const char *const internal_fn_name_array[];
37 return internal_fn_name_array[(int) fn];
38 }
39
40 /* Return the ECF_* flags for function FN. */
41
42 static inline int
43 internal_fn_flags (enum internal_fn fn)
44 {
45 extern const int internal_fn_flags_array[];
46 return internal_fn_flags_array[(int) fn];
47 }
48
49 extern void expand_internal_call (gimple);
50
51 #endif