1*e4b17023SJohn Marino /* Internal functions. 2*e4b17023SJohn Marino Copyright (C) 2011 Free Software Foundation, Inc. 3*e4b17023SJohn Marino 4*e4b17023SJohn Marino This file is part of GCC. 5*e4b17023SJohn Marino 6*e4b17023SJohn Marino GCC is free software; you can redistribute it and/or modify it under 7*e4b17023SJohn Marino the terms of the GNU General Public License as published by the Free 8*e4b17023SJohn Marino Software Foundation; either version 3, or (at your option) any later 9*e4b17023SJohn Marino version. 10*e4b17023SJohn Marino 11*e4b17023SJohn Marino GCC is distributed in the hope that it will be useful, but WITHOUT ANY 12*e4b17023SJohn Marino WARRANTY; without even the implied warranty of MERCHANTABILITY or 13*e4b17023SJohn Marino FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14*e4b17023SJohn Marino for more details. 15*e4b17023SJohn Marino 16*e4b17023SJohn Marino You should have received a copy of the GNU General Public License 17*e4b17023SJohn Marino along with GCC; see the file COPYING3. If not see 18*e4b17023SJohn Marino <http://www.gnu.org/licenses/>. */ 19*e4b17023SJohn Marino 20*e4b17023SJohn Marino #ifndef GCC_INTERNAL_FN_H 21*e4b17023SJohn Marino #define GCC_INTERNAL_FN_H 22*e4b17023SJohn Marino 23*e4b17023SJohn Marino enum internal_fn { 24*e4b17023SJohn Marino #define DEF_INTERNAL_FN(CODE, FLAGS) IFN_##CODE, 25*e4b17023SJohn Marino #include "internal-fn.def" 26*e4b17023SJohn Marino #undef DEF_INTERNAL_FN 27*e4b17023SJohn Marino IFN_LAST 28*e4b17023SJohn Marino }; 29*e4b17023SJohn Marino 30*e4b17023SJohn Marino /* Return the name of internal function FN. The name is only meaningful 31*e4b17023SJohn Marino for dumps; it has no linkage. */ 32*e4b17023SJohn Marino 33*e4b17023SJohn Marino extern const char *const internal_fn_name_array[]; 34*e4b17023SJohn Marino 35*e4b17023SJohn Marino static inline const char * internal_fn_name(enum internal_fn fn)36*e4b17023SJohn Marinointernal_fn_name (enum internal_fn fn) 37*e4b17023SJohn Marino { 38*e4b17023SJohn Marino return internal_fn_name_array[(int) fn]; 39*e4b17023SJohn Marino } 40*e4b17023SJohn Marino 41*e4b17023SJohn Marino /* Return the ECF_* flags for function FN. */ 42*e4b17023SJohn Marino 43*e4b17023SJohn Marino extern const int internal_fn_flags_array[]; 44*e4b17023SJohn Marino 45*e4b17023SJohn Marino static inline int internal_fn_flags(enum internal_fn fn)46*e4b17023SJohn Marinointernal_fn_flags (enum internal_fn fn) 47*e4b17023SJohn Marino { 48*e4b17023SJohn Marino return internal_fn_flags_array[(int) fn]; 49*e4b17023SJohn Marino } 50*e4b17023SJohn Marino 51*e4b17023SJohn Marino extern void expand_internal_call (gimple); 52*e4b17023SJohn Marino 53*e4b17023SJohn Marino #endif 54