1/* This file contains the definitions and documentation for the
2   Offloading and Multi Processing builtins used in the GNU compiler.
3   Copyright (C) 2005-2018 Free Software Foundation, Inc.
4
5This file is part of GCC.
6
7GCC is free software; you can redistribute it and/or modify it under
8the terms of the GNU General Public License as published by the Free
9Software Foundation; either version 3, or (at your option) any later
10version.
11
12GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13WARRANTY; without even the implied warranty of MERCHANTABILITY or
14FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15for more details.
16
17You should have received a copy of the GNU General Public License
18along with GCC; see the file COPYING3.  If not see
19<http://www.gnu.org/licenses/>.  */
20
21/* Before including this file, you should define a macro:
22
23     DEF_HSA_BUILTIN (ENUM, NAME, TYPE, ATTRS)
24
25   See builtins.def for details.  */
26
27/* The reason why they aren't in gcc/builtins.def is that the Fortran front end
28   doesn't source those.  */
29
30DEF_HSA_BUILTIN (BUILT_IN_HSA_WORKGROUPID, "hsa_workgroupid",
31	  	 BT_FN_UINT_UINT, ATTR_CONST_NOTHROW_LEAF_LIST)
32DEF_HSA_BUILTIN (BUILT_IN_HSA_WORKITEMID, "hsa_workitemid",
33	  	 BT_FN_UINT_UINT, ATTR_CONST_NOTHROW_LEAF_LIST)
34DEF_HSA_BUILTIN (BUILT_IN_HSA_WORKITEMABSID, "hsa_workitemabsid",
35	  	 BT_FN_UINT_UINT, ATTR_CONST_NOTHROW_LEAF_LIST)
36DEF_HSA_BUILTIN (BUILT_IN_HSA_GRIDSIZE, "hsa_gridsize",
37		 BT_FN_UINT_UINT, ATTR_CONST_NOTHROW_LEAF_LIST)
38DEF_HSA_BUILTIN (BUILT_IN_HSA_CURRENTWORKGROUPSIZE, "hsa_currentworkgroupsize",
39		 BT_FN_UINT_UINT, ATTR_CONST_NOTHROW_LEAF_LIST)
40