]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/internal-fn.h
sh.c: Do not include algorithm.
[thirdparty/gcc.git] / gcc / internal-fn.h
CommitLineData
25583c4f 1/* Internal functions.
23a5b65a 2 Copyright (C) 2011-2014 Free Software Foundation, Inc.
25583c4f
RS
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
b78475cf
YG
23#include "coretypes.h"
24
25/* Initialize internal function tables. */
26
27extern void init_internal_fns ();
28
25583c4f
RS
29/* Return the name of internal function FN. The name is only meaningful
30 for dumps; it has no linkage. */
31
fbaf0d0c
GDR
32extern const char *const internal_fn_name_array[];
33
25583c4f
RS
34static inline const char *
35internal_fn_name (enum internal_fn fn)
36{
25583c4f
RS
37 return internal_fn_name_array[(int) fn];
38}
39
40/* Return the ECF_* flags for function FN. */
41
fbaf0d0c
GDR
42extern const int internal_fn_flags_array[];
43
25583c4f
RS
44static inline int
45internal_fn_flags (enum internal_fn fn)
46{
25583c4f
RS
47 return internal_fn_flags_array[(int) fn];
48}
49
b78475cf
YG
50/* Return fnspec for function FN. */
51
52extern GTY(()) const_tree internal_fn_fnspec_array[IFN_LAST + 1];
53
54static inline const_tree
55internal_fn_fnspec (enum internal_fn fn)
56{
57 return internal_fn_fnspec_array[(int) fn];
58}
59
25583c4f
RS
60extern void expand_internal_call (gimple);
61
62#endif