cilkplus.def 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* This file contains the definitions and documentation for the
  2. CilkPlus builtins used in the GNU compiler.
  3. Copyright (C) 2013-2015 Free Software Foundation, Inc.
  4. This file is part of GCC.
  5. GCC is free software; you can redistribute it and/or modify it under
  6. the terms of the GNU General Public License as published by the Free
  7. Software Foundation; either version 3, or (at your option) any later
  8. version.
  9. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  12. for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with GCC; see the file COPYING3. If not see
  15. <http://www.gnu.org/licenses/>. */
  16. /* Before including this file, you should define a macro:
  17. DEF_CILKPLUS_BUILTIN (ENUM, NAME, TYPE, ATTRS)
  18. See builtins.def for details. */
  19. DEF_CILKPLUS_BUILTIN (BUILT_IN_CILKPLUS_SEC_REDUCE_ADD,
  20. "__sec_reduce_add", BT_FN_INT_PTR, ATTR_NULL)
  21. DEF_CILKPLUS_BUILTIN (BUILT_IN_CILKPLUS_SEC_REDUCE_MUL,
  22. "__sec_reduce_mul", BT_FN_INT_PTR, ATTR_NULL)
  23. DEF_CILKPLUS_BUILTIN (BUILT_IN_CILKPLUS_SEC_REDUCE_ALL_ZERO,
  24. "__sec_reduce_all_zero", BT_FN_INT_PTR, ATTR_NULL)
  25. DEF_CILKPLUS_BUILTIN (BUILT_IN_CILKPLUS_SEC_REDUCE_ANY_ZERO,
  26. "__sec_reduce_any_zero", BT_FN_INT_PTR, ATTR_NULL)
  27. DEF_CILKPLUS_BUILTIN (BUILT_IN_CILKPLUS_SEC_REDUCE_MAX,
  28. "__sec_reduce_max", BT_FN_INT_PTR, ATTR_NULL)
  29. DEF_CILKPLUS_BUILTIN (BUILT_IN_CILKPLUS_SEC_REDUCE_MIN,
  30. "__sec_reduce_min", BT_FN_INT_PTR, ATTR_NULL)
  31. DEF_CILKPLUS_BUILTIN (BUILT_IN_CILKPLUS_SEC_REDUCE_MIN_IND,
  32. "__sec_reduce_min_ind", BT_FN_INT_PTR, ATTR_NULL)
  33. DEF_CILKPLUS_BUILTIN (BUILT_IN_CILKPLUS_SEC_REDUCE_MAX_IND,
  34. "__sec_reduce_max_ind", BT_FN_INT_PTR, ATTR_NULL)
  35. DEF_CILKPLUS_BUILTIN (BUILT_IN_CILKPLUS_SEC_REDUCE_ANY_NONZERO,
  36. "__sec_reduce_any_nonzero", BT_FN_INT_PTR, ATTR_NULL)
  37. DEF_CILKPLUS_BUILTIN (BUILT_IN_CILKPLUS_SEC_REDUCE_ALL_NONZERO,
  38. "__sec_reduce_all_nonzero", BT_FN_INT_PTR, ATTR_NULL)
  39. DEF_CILKPLUS_BUILTIN (BUILT_IN_CILKPLUS_SEC_REDUCE,
  40. "__sec_reduce", BT_FN_INT_PTR_PTR_PTR, ATTR_NULL)
  41. DEF_CILKPLUS_BUILTIN (BUILT_IN_CILKPLUS_SEC_REDUCE_MUTATING,
  42. "__sec_reduce_mutating", BT_FN_INT_PTR_PTR_PTR, ATTR_NULL)
  43. // FIXME: This probably needs to be rewritten as a keyword.
  44. DEF_CILKPLUS_BUILTIN (BUILT_IN_CILKPLUS_SEC_IMPLICIT_INDEX,
  45. "__sec_implicit_index", BT_FN_INT_INT, ATTR_NULL)
  46. /*
  47. Local variables:
  48. mode:c
  49. End:
  50. */