]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/internal-fn.h
backport: As described in http://gcc.gnu.org/ml/gcc/2012-08/msg00015.html...
[thirdparty/gcc.git] / gcc / internal-fn.h
CommitLineData
25583c4f
RS
1/* Internal functions.
2 Copyright (C) 2011 Free Software Foundation, Inc.
3
4This file is part of GCC.
5
6GCC is free software; you can redistribute it and/or modify it under
7the terms of the GNU General Public License as published by the Free
8Software Foundation; either version 3, or (at your option) any later
9version.
10
11GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12WARRANTY; without even the implied warranty of MERCHANTABILITY or
13FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14for more details.
15
16You should have received a copy of the GNU General Public License
17along 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
23enum 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
fbaf0d0c
GDR
33extern const char *const internal_fn_name_array[];
34
25583c4f
RS
35static inline const char *
36internal_fn_name (enum internal_fn fn)
37{
25583c4f
RS
38 return internal_fn_name_array[(int) fn];
39}
40
41/* Return the ECF_* flags for function FN. */
42
fbaf0d0c
GDR
43extern const int internal_fn_flags_array[];
44
25583c4f
RS
45static inline int
46internal_fn_flags (enum internal_fn fn)
47{
25583c4f
RS
48 return internal_fn_flags_array[(int) fn];
49}
50
51extern void expand_internal_call (gimple);
52
53#endif