internal-fn.h 1.6 KB

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