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