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-2025 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_GOACC_BUILTIN (ENUM
, NAME
, TYPE, ATTRS
)
24 DEF_GOACC_BUILTIN_COMPILER (ENUM
, NAME
, TYPE, ATTRS
)
25 DEF_GOMP_BUILTIN (ENUM
, NAME
, TYPE, ATTRS
)
26 DEF_GOMP_BUILTIN_COMPILER (ENUM
, NAME
, TYPE, ATTRS
)
28 See builtins.def for details.
*/
30 /* The reason why they aren
't in gcc/builtins.def is that the Fortran front end
31 doesn't source those.
*/
33 DEF_GOACC_BUILTIN (BUILT_IN_GOACC_DATA_START
, "GOACC_data_start",
34 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR
, ATTR_NOTHROW_LIST
)
35 DEF_GOACC_BUILTIN (BUILT_IN_GOACC_DATA_END
, "GOACC_data_end",
36 BT_FN_VOID
, ATTR_NOTHROW_LIST
)
37 DEF_GOACC_BUILTIN (BUILT_IN_GOACC_ENTER_DATA
, "GOACC_enter_data",
38 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR
,
40 DEF_GOACC_BUILTIN (BUILT_IN_GOACC_EXIT_DATA
, "GOACC_exit_data",
41 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR
,
43 DEF_GOACC_BUILTIN (BUILT_IN_GOACC_PARALLEL
, "GOACC_parallel_keyed",
44 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_VAR
,
46 DEF_GOACC_BUILTIN (BUILT_IN_GOACC_UPDATE
, "GOACC_update",
47 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR
,
49 DEF_GOACC_BUILTIN (BUILT_IN_GOACC_WAIT
, "GOACC_wait",
50 BT_FN_VOID_INT_INT_VAR
,
52 DEF_GOACC_BUILTIN (BUILT_IN_GOACC_DECLARE
, "GOACC_declare",
53 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR
, ATTR_NOTHROW_LIST
)
55 DEF_GOACC_BUILTIN_COMPILER (BUILT_IN_ACC_ON_DEVICE
, "acc_on_device",
56 BT_FN_INT_INT
, ATTR_CONST_NOTHROW_LEAF_LIST
)
58 DEF_GOACC_BUILTIN_ONLY (BUILT_IN_GOACC_PARLEVEL_ID
, "goacc_parlevel_id",
59 BT_FN_INT_INT
, ATTR_NOTHROW_LEAF_LIST
)
60 DEF_GOACC_BUILTIN_ONLY (BUILT_IN_GOACC_PARLEVEL_SIZE
, "goacc_parlevel_size",
61 BT_FN_INT_INT
, ATTR_NOTHROW_LEAF_LIST
)
63 DEF_GOACC_BUILTIN_ONLY (BUILT_IN_GOACC_BARRIER
, "GOACC_barrier",
64 BT_FN_VOID
, ATTR_NOTHROW_LEAF_LIST
)
65 DEF_GOACC_BUILTIN_ONLY (BUILT_IN_GOACC_SINGLE_START
, "GOACC_single_start",
66 BT_FN_BOOL
, ATTR_NOTHROW_LEAF_LIST
)
67 DEF_GOACC_BUILTIN_ONLY (BUILT_IN_GOACC_SINGLE_COPY_START
, "GOACC_single_copy_start",
68 BT_FN_PTR
, ATTR_NOTHROW_LEAF_LIST
)
69 DEF_GOACC_BUILTIN_ONLY (BUILT_IN_GOACC_SINGLE_COPY_END
, "GOACC_single_copy_end",
70 BT_FN_VOID_PTR
, ATTR_NOTHROW_LEAF_LIST
)
72 DEF_GOMP_BUILTIN_COMPILER (BUILT_IN_OMP_IS_INITIAL_DEVICE
,
73 "omp_is_initial_device", BT_FN_INT
,
74 ATTR_CONST_NOTHROW_LEAF_LIST
)
75 DEF_GOMP_BUILTIN (BUILT_IN_OMP_GET_THREAD_NUM
, "omp_get_thread_num",
76 BT_FN_INT
, ATTR_CONST_NOTHROW_LEAF_LIST
)
77 DEF_GOMP_BUILTIN (BUILT_IN_OMP_GET_NUM_THREADS
, "omp_get_num_threads",
78 BT_FN_INT
, ATTR_CONST_NOTHROW_LEAF_LIST
)
79 DEF_GOMP_BUILTIN (BUILT_IN_OMP_GET_TEAM_NUM
, "omp_get_team_num",
80 BT_FN_INT
, ATTR_CONST_NOTHROW_LEAF_LIST
)
81 DEF_GOMP_BUILTIN (BUILT_IN_OMP_GET_NUM_TEAMS
, "omp_get_num_teams",
82 BT_FN_INT
, ATTR_CONST_NOTHROW_LEAF_LIST
)
83 DEF_GOMP_BUILTIN (BUILT_IN_OMP_GET_MAPPED_PTR
, "omp_get_mapped_ptr",
84 BT_FN_PTR_CONST_PTR_INT
, ATTR_NOTHROW_LEAF_LIST
)
85 DEF_GOMP_BUILTIN (BUILT_IN_OMP_GET_DEFAULT_DEVICE
, "omp_get_default_device",
86 BT_FN_INT
, ATTR_NOTHROW_LEAF_LIST
)
87 DEF_GOMP_BUILTIN (BUILT_IN_OMP_SET_DEFAULT_DEVICE
, "omp_set_default_device",
88 BT_FN_INT
, ATTR_NOTHROW_LEAF_LIST
)
89 DEF_GOMP_BUILTIN (BUILT_IN_OMP_GET_INTEROP_INT
, "omp_get_interop_int",
90 BT_FN_PTRMODE_PTR_INT_PTR
, ATTR_NOTHROW_LEAF_LIST
)
91 DEF_GOMP_BUILTIN (BUILT_IN_OMP_GET_NUM_DEVICES
, "omp_get_num_devices",
92 BT_FN_INT
, ATTR_NOTHROW_LEAF_LIST
)
94 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_ATOMIC_START
, "GOMP_atomic_start",
95 BT_FN_VOID
, ATTR_NOTHROW_LEAF_LIST
)
96 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_ATOMIC_END
, "GOMP_atomic_end",
97 BT_FN_VOID
, ATTR_NOTHROW_LEAF_LIST
)
98 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_BARRIER
, "GOMP_barrier",
99 BT_FN_VOID
, ATTR_NOTHROW_LEAF_LIST
)
100 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_BARRIER_CANCEL
, "GOMP_barrier_cancel",
101 BT_FN_BOOL
, ATTR_NOTHROW_LEAF_LIST
)
102 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_TASKWAIT
, "GOMP_taskwait",
103 BT_FN_VOID
, ATTR_NOTHROW_LEAF_LIST
)
104 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_TASKWAIT_DEPEND
, "GOMP_taskwait_depend",
105 BT_FN_VOID_PTR
, ATTR_NOTHROW_LEAF_LIST
)
106 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_TASKWAIT_DEPEND_NOWAIT
,
107 "GOMP_taskwait_depend_nowait",
108 BT_FN_VOID_PTR
, ATTR_NOTHROW_LEAF_LIST
)
109 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_TASKYIELD
, "GOMP_taskyield",
110 BT_FN_VOID
, ATTR_NOTHROW_LEAF_LIST
)
111 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_TASKGROUP_START
, "GOMP_taskgroup_start",
112 BT_FN_VOID
, ATTR_NOTHROW_LEAF_LIST
)
113 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_TASKGROUP_END
, "GOMP_taskgroup_end",
114 BT_FN_VOID
, ATTR_NOTHROW_LEAF_LIST
)
115 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_CANCEL
, "GOMP_cancel",
116 BT_FN_BOOL_INT_BOOL
, ATTR_NOTHROW_LEAF_LIST
)
117 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_CANCELLATION_POINT
, "GOMP_cancellation_point",
118 BT_FN_BOOL_INT
, ATTR_NOTHROW_LEAF_LIST
)
119 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_CRITICAL_START
, "GOMP_critical_start",
120 BT_FN_VOID
, ATTR_NOTHROW_LEAF_LIST
)
121 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_CRITICAL_END
, "GOMP_critical_end",
122 BT_FN_VOID
, ATTR_NOTHROW_LEAF_LIST
)
123 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_CRITICAL_NAME_START
,
124 "GOMP_critical_name_start",
125 BT_FN_VOID_PTRPTR
, ATTR_NOTHROW_LEAF_LIST
)
126 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_CRITICAL_NAME_END
,
127 "GOMP_critical_name_end",
128 BT_FN_VOID_PTRPTR
, ATTR_NOTHROW_LEAF_LIST
)
129 /* NOTE
: Do not change the order of BUILT_IN_GOMP_LOOP_
*_START. They
130 are used in index arithmetic with enum omp_clause_schedule_kind
132 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_STATIC_START
,
133 "GOMP_loop_static_start",
134 BT_FN_BOOL_LONG_LONG_LONG_LONG_LONGPTR_LONGPTR
,
135 ATTR_NOTHROW_LEAF_LIST
)
136 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_DYNAMIC_START
,
137 "GOMP_loop_dynamic_start",
138 BT_FN_BOOL_LONG_LONG_LONG_LONG_LONGPTR_LONGPTR
,
139 ATTR_NOTHROW_LEAF_LIST
)
140 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_GUIDED_START
,
141 "GOMP_loop_guided_start",
142 BT_FN_BOOL_LONG_LONG_LONG_LONG_LONGPTR_LONGPTR
,
143 ATTR_NOTHROW_LEAF_LIST
)
144 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_RUNTIME_START
,
145 "GOMP_loop_runtime_start",
146 BT_FN_BOOL_LONG_LONG_LONG_LONGPTR_LONGPTR
,
147 ATTR_NOTHROW_LEAF_LIST
)
148 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START
,
149 "GOMP_loop_nonmonotonic_dynamic_start",
150 BT_FN_BOOL_LONG_LONG_LONG_LONG_LONGPTR_LONGPTR
,
151 ATTR_NOTHROW_LEAF_LIST
)
152 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START
,
153 "GOMP_loop_nonmonotonic_guided_start",
154 BT_FN_BOOL_LONG_LONG_LONG_LONG_LONGPTR_LONGPTR
,
155 ATTR_NOTHROW_LEAF_LIST
)
156 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_NONMONOTONIC_RUNTIME_START
,
157 "GOMP_loop_nonmonotonic_runtime_start",
158 BT_FN_BOOL_LONG_LONG_LONG_LONGPTR_LONGPTR
,
159 ATTR_NOTHROW_LEAF_LIST
)
160 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_MAYBE_NONMONOTONIC_RUNTIME_START
,
161 "GOMP_loop_maybe_nonmonotonic_runtime_start",
162 BT_FN_BOOL_LONG_LONG_LONG_LONGPTR_LONGPTR
,
163 ATTR_NOTHROW_LEAF_LIST
)
164 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ORDERED_STATIC_START
,
165 "GOMP_loop_ordered_static_start",
166 BT_FN_BOOL_LONG_LONG_LONG_LONG_LONGPTR_LONGPTR
,
167 ATTR_NOTHROW_LEAF_LIST
)
168 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_START
,
169 "GOMP_loop_ordered_dynamic_start",
170 BT_FN_BOOL_LONG_LONG_LONG_LONG_LONGPTR_LONGPTR
,
171 ATTR_NOTHROW_LEAF_LIST
)
172 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_START
,
173 "GOMP_loop_ordered_guided_start",
174 BT_FN_BOOL_LONG_LONG_LONG_LONG_LONGPTR_LONGPTR
,
175 ATTR_NOTHROW_LEAF_LIST
)
176 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_START
,
177 "GOMP_loop_ordered_runtime_start",
178 BT_FN_BOOL_LONG_LONG_LONG_LONGPTR_LONGPTR
,
179 ATTR_NOTHROW_LEAF_LIST
)
180 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START
,
181 "GOMP_loop_doacross_static_start",
182 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR
,
183 ATTR_NOTHROW_LEAF_LIST
)
184 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START
,
185 "GOMP_loop_doacross_dynamic_start",
186 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR
,
187 ATTR_NOTHROW_LEAF_LIST
)
188 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START
,
189 "GOMP_loop_doacross_guided_start",
190 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR
,
191 ATTR_NOTHROW_LEAF_LIST
)
192 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START
,
193 "GOMP_loop_doacross_runtime_start",
194 BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR
,
195 ATTR_NOTHROW_LEAF_LIST
)
196 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_START
,
198 BT_FN_BOOL_LONG_LONG_LONG_LONG_LONG_LONGPTR_LONGPTR_PTR_PTR
,
199 ATTR_NOTHROW_LEAF_LIST
)
200 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ORDERED_START
,
201 "GOMP_loop_ordered_start",
202 BT_FN_BOOL_LONG_LONG_LONG_LONG_LONG_LONGPTR_LONGPTR_PTR_PTR
,
203 ATTR_NOTHROW_LEAF_LIST
)
204 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_DOACROSS_START
,
205 "GOMP_loop_doacross_start",
206 BT_FN_BOOL_UINT_LONGPTR_LONG_LONG_LONGPTR_LONGPTR_PTR_PTR
,
207 ATTR_NOTHROW_LEAF_LIST
)
208 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_STATIC_NEXT
, "GOMP_loop_static_next",
209 BT_FN_BOOL_LONGPTR_LONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
210 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_DYNAMIC_NEXT
, "GOMP_loop_dynamic_next",
211 BT_FN_BOOL_LONGPTR_LONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
212 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_GUIDED_NEXT
, "GOMP_loop_guided_next",
213 BT_FN_BOOL_LONGPTR_LONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
214 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_RUNTIME_NEXT
, "GOMP_loop_runtime_next",
215 BT_FN_BOOL_LONGPTR_LONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
216 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT
,
217 "GOMP_loop_nonmonotonic_dynamic_next",
218 BT_FN_BOOL_LONGPTR_LONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
219 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT
,
220 "GOMP_loop_nonmonotonic_guided_next",
221 BT_FN_BOOL_LONGPTR_LONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
222 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_NONMONOTONIC_RUNTIME_NEXT
,
223 "GOMP_loop_nonmonotonic_runtime_next",
224 BT_FN_BOOL_LONGPTR_LONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
225 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_MAYBE_NONMONOTONIC_RUNTIME_NEXT
,
226 "GOMP_loop_maybe_nonmonotonic_runtime_next",
227 BT_FN_BOOL_LONGPTR_LONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
228 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ORDERED_STATIC_NEXT
,
229 "GOMP_loop_ordered_static_next",
230 BT_FN_BOOL_LONGPTR_LONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
231 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_NEXT
,
232 "GOMP_loop_ordered_dynamic_next",
233 BT_FN_BOOL_LONGPTR_LONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
234 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_NEXT
,
235 "GOMP_loop_ordered_guided_next",
236 BT_FN_BOOL_LONGPTR_LONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
237 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_NEXT
,
238 "GOMP_loop_ordered_runtime_next",
239 BT_FN_BOOL_LONGPTR_LONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
240 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_STATIC_START
,
241 "GOMP_loop_ull_static_start",
242 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR
,
243 ATTR_NOTHROW_LEAF_LIST
)
244 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START
,
245 "GOMP_loop_ull_dynamic_start",
246 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR
,
247 ATTR_NOTHROW_LEAF_LIST
)
248 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_GUIDED_START
,
249 "GOMP_loop_ull_guided_start",
250 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR
,
251 ATTR_NOTHROW_LEAF_LIST
)
252 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START
,
253 "GOMP_loop_ull_runtime_start",
254 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR
,
255 ATTR_NOTHROW_LEAF_LIST
)
256 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START
,
257 "GOMP_loop_ull_nonmonotonic_dynamic_start",
258 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR
,
259 ATTR_NOTHROW_LEAF_LIST
)
260 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START
,
261 "GOMP_loop_ull_nonmonotonic_guided_start",
262 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR
,
263 ATTR_NOTHROW_LEAF_LIST
)
264 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_RUNTIME_START
,
265 "GOMP_loop_ull_nonmonotonic_runtime_start",
266 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR
,
267 ATTR_NOTHROW_LEAF_LIST
)
268 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_MAYBE_NONMONOTONIC_RUNTIME_START
,
269 "GOMP_loop_ull_maybe_nonmonotonic_runtime_start",
270 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR
,
271 ATTR_NOTHROW_LEAF_LIST
)
272 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START
,
273 "GOMP_loop_ull_ordered_static_start",
274 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR
,
275 ATTR_NOTHROW_LEAF_LIST
)
276 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START
,
277 "GOMP_loop_ull_ordered_dynamic_start",
278 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR
,
279 ATTR_NOTHROW_LEAF_LIST
)
280 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START
,
281 "GOMP_loop_ull_ordered_guided_start",
282 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR
,
283 ATTR_NOTHROW_LEAF_LIST
)
284 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START
,
285 "GOMP_loop_ull_ordered_runtime_start",
286 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR
,
287 ATTR_NOTHROW_LEAF_LIST
)
288 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START
,
289 "GOMP_loop_ull_doacross_static_start",
290 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR
,
291 ATTR_NOTHROW_LEAF_LIST
)
292 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START
,
293 "GOMP_loop_ull_doacross_dynamic_start",
294 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR
,
295 ATTR_NOTHROW_LEAF_LIST
)
296 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START
,
297 "GOMP_loop_ull_doacross_guided_start",
298 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR
,
299 ATTR_NOTHROW_LEAF_LIST
)
300 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START
,
301 "GOMP_loop_ull_doacross_runtime_start",
302 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR
,
303 ATTR_NOTHROW_LEAF_LIST
)
304 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_START
,
305 "GOMP_loop_ull_start",
306 BT_FN_BOOL_BOOL_ULL_ULL_ULL_LONG_ULL_ULLPTR_ULLPTR_PTR_PTR
,
307 ATTR_NOTHROW_LEAF_LIST
)
308 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_ORDERED_START
,
309 "GOMP_loop_ull_ordered_start",
310 BT_FN_BOOL_BOOL_ULL_ULL_ULL_LONG_ULL_ULLPTR_ULLPTR_PTR_PTR
,
311 ATTR_NOTHROW_LEAF_LIST
)
312 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_DOACROSS_START
,
313 "GOMP_loop_ull_doacross_start",
314 BT_FN_BOOL_UINT_ULLPTR_LONG_ULL_ULLPTR_ULLPTR_PTR_PTR
,
315 ATTR_NOTHROW_LEAF_LIST
)
316 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT
,
317 "GOMP_loop_ull_static_next",
318 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
319 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT
,
320 "GOMP_loop_ull_dynamic_next",
321 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
322 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT
,
323 "GOMP_loop_ull_guided_next",
324 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
325 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT
,
326 "GOMP_loop_ull_runtime_next",
327 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
328 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT
,
329 "GOMP_loop_ull_nonmonotonic_dynamic_next",
330 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
331 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT
,
332 "GOMP_loop_ull_nonmonotonic_guided_next",
333 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
334 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_RUNTIME_NEXT
,
335 "GOMP_loop_ull_nonmonotonic_runtime_next",
336 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
337 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_MAYBE_NONMONOTONIC_RUNTIME_NEXT
,
338 "GOMP_loop_ull_maybe_nonmonotonic_runtime_next",
339 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
340 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT
,
341 "GOMP_loop_ull_ordered_static_next",
342 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
343 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT
,
344 "GOMP_loop_ull_ordered_dynamic_next",
345 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
346 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT
,
347 "GOMP_loop_ull_ordered_guided_next",
348 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
349 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT
,
350 "GOMP_loop_ull_ordered_runtime_next",
351 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR
, ATTR_NOTHROW_LEAF_LIST
)
352 /* NOTE
: Do not change the order of BUILT_IN_GOMP_PARALLEL_LOOP_
*.
353 They are used in index arithmetic with enum omp_clause_schedule_kind
355 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC
,
356 "GOMP_parallel_loop_static",
357 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT
,
359 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC
,
360 "GOMP_parallel_loop_dynamic",
361 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT
,
363 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED
,
364 "GOMP_parallel_loop_guided",
365 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT
,
367 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME
,
368 "GOMP_parallel_loop_runtime",
369 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT
,
371 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC
,
372 "GOMP_parallel_loop_nonmonotonic_dynamic",
373 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT
,
375 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED
,
376 "GOMP_parallel_loop_nonmonotonic_guided",
377 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT
,
379 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_RUNTIME
,
380 "GOMP_parallel_loop_nonmonotonic_runtime",
381 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT
,
383 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_PARALLEL_LOOP_MAYBE_NONMONOTONIC_RUNTIME
,
384 "GOMP_parallel_loop_maybe_nonmonotonic_runtime",
385 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT
,
387 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_END
, "GOMP_loop_end",
388 BT_FN_VOID
, ATTR_NOTHROW_LEAF_LIST
)
389 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_END_CANCEL
, "GOMP_loop_end_cancel",
390 BT_FN_BOOL
, ATTR_NOTHROW_LEAF_LIST
)
391 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_LOOP_END_NOWAIT
, "GOMP_loop_end_nowait",
392 BT_FN_VOID
, ATTR_NOTHROW_LEAF_LIST
)
393 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_ORDERED_START
, "GOMP_ordered_start",
394 BT_FN_VOID
, ATTR_NOTHROW_LEAF_LIST
)
395 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_ORDERED_END
, "GOMP_ordered_end",
396 BT_FN_VOID
, ATTR_NOTHROW_LEAF_LIST
)
397 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_DOACROSS_POST
, "GOMP_doacross_post",
398 BT_FN_VOID_PTR
, ATTR_NOTHROW_LEAF_LIST
)
399 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_DOACROSS_WAIT
, "GOMP_doacross_wait",
400 BT_FN_VOID_LONG_VAR
, ATTR_NOTHROW_LEAF_LIST
)
401 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_DOACROSS_ULL_POST
, "GOMP_doacross_ull_post",
402 BT_FN_VOID_PTR
, ATTR_NOTHROW_LEAF_LIST
)
403 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_DOACROSS_ULL_WAIT
, "GOMP_doacross_ull_wait",
404 BT_FN_VOID_ULL_VAR
, ATTR_NOTHROW_LEAF_LIST
)
405 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_PARALLEL
, "GOMP_parallel",
406 BT_FN_VOID_OMPFN_PTR_UINT_UINT
, ATTR_NOTHROW_LIST
)
407 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_PARALLEL_REDUCTIONS
,
408 "GOMP_parallel_reductions",
409 BT_FN_UINT_OMPFN_PTR_UINT_UINT
, ATTR_NOTHROW_LIST
)
410 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_TASK
, "GOMP_task",
411 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR
,
413 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_TASKLOOP
, "GOMP_taskloop",
414 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG
,
416 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_TASKLOOP_ULL
, "GOMP_taskloop_ull",
417 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL
,
419 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_SECTIONS_START
, "GOMP_sections_start",
420 BT_FN_UINT_UINT
, ATTR_NOTHROW_LEAF_LIST
)
421 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_SECTIONS2_START
, "GOMP_sections2_start",
422 BT_FN_UINT_UINT_PTR_PTR
, ATTR_NOTHROW_LEAF_LIST
)
423 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_SECTIONS_NEXT
, "GOMP_sections_next",
424 BT_FN_UINT
, ATTR_NOTHROW_LEAF_LIST
)
425 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_PARALLEL_SECTIONS
,
426 "GOMP_parallel_sections",
427 BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT
, ATTR_NOTHROW_LIST
)
428 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_SECTIONS_END
, "GOMP_sections_end",
429 BT_FN_VOID
, ATTR_NOTHROW_LEAF_LIST
)
430 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_SECTIONS_END_CANCEL
,
431 "GOMP_sections_end_cancel",
432 BT_FN_BOOL
, ATTR_NOTHROW_LEAF_LIST
)
433 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_SECTIONS_END_NOWAIT
,
434 "GOMP_sections_end_nowait",
435 BT_FN_VOID
, ATTR_NOTHROW_LEAF_LIST
)
436 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_SINGLE_START
, "GOMP_single_start",
437 BT_FN_BOOL
, ATTR_NOTHROW_LEAF_LIST
)
438 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_SINGLE_COPY_START
, "GOMP_single_copy_start",
439 BT_FN_PTR
, ATTR_NOTHROW_LEAF_LIST
)
440 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_SINGLE_COPY_END
, "GOMP_single_copy_end",
441 BT_FN_VOID_PTR
, ATTR_NOTHROW_LEAF_LIST
)
442 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_SCOPE_START
, "GOMP_scope_start",
443 BT_FN_VOID_PTR
, ATTR_NOTHROW_LEAF_LIST
)
444 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_OFFLOAD_REGISTER
, "GOMP_offload_register_ver",
445 BT_FN_VOID_UINT_PTR_INT_PTR
, ATTR_NOTHROW_LIST
)
446 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_OFFLOAD_UNREGISTER
,
447 "GOMP_offload_unregister_ver",
448 BT_FN_VOID_UINT_PTR_INT_PTR
, ATTR_NOTHROW_LIST
)
449 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_TARGET
, "GOMP_target_ext",
450 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR
,
452 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_TARGET_DATA
, "GOMP_target_data_ext",
453 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR
, ATTR_NOTHROW_LIST
)
454 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_TARGET_END_DATA
, "GOMP_target_end_data",
455 BT_FN_VOID
, ATTR_NOTHROW_LIST
)
456 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_TARGET_UPDATE
, "GOMP_target_update_ext",
457 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR
,
459 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA
,
460 "GOMP_target_enter_exit_data",
461 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR
, ATTR_NOTHROW_LIST
)
462 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_TARGET_MAP_INDIRECT_PTR
,
463 "GOMP_target_map_indirect_ptr",
464 BT_FN_PTR_PTR
, ATTR_NOTHROW_LIST
)
465 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_TEAMS4
, "GOMP_teams4",
466 BT_FN_BOOL_UINT_UINT_UINT_BOOL
, ATTR_NOTHROW_LIST
)
467 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_TEAMS_REG
, "GOMP_teams_reg",
468 BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT
, ATTR_NOTHROW_LIST
)
469 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_TASKGROUP_REDUCTION_REGISTER
,
470 "GOMP_taskgroup_reduction_register",
471 BT_FN_VOID_PTR
, ATTR_NOTHROW_LEAF_LIST
)
472 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_TASKGROUP_REDUCTION_UNREGISTER
,
473 "GOMP_taskgroup_reduction_unregister",
474 BT_FN_VOID_PTR
, ATTR_NOTHROW_LEAF_LIST
)
475 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_TASK_REDUCTION_REMAP
,
476 "GOMP_task_reduction_remap",
477 BT_FN_VOID_SIZE_SIZE_PTR
, ATTR_NOTHROW_LEAF_LIST
)
478 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_WORKSHARE_TASK_REDUCTION_UNREGISTER
,
479 "GOMP_workshare_task_reduction_unregister",
480 BT_FN_VOID_BOOL
, ATTR_NOTHROW_LEAF_LIST
)
481 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_ALLOC
,
482 "GOMP_alloc", BT_FN_PTR_SIZE_SIZE_PTRMODE
,
483 ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST
)
484 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_REALLOC
,
485 "omp_realloc", BT_FN_PTR_PTR_SIZE_PTRMODE_PTRMODE
,
486 ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST
)
487 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_FREE
,
488 "GOMP_free", BT_FN_VOID_PTR_PTRMODE
, ATTR_NOTHROW_LEAF_LIST
)
489 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_WARNING
, "GOMP_warning",
490 BT_FN_VOID_CONST_PTR_SIZE
, ATTR_NOTHROW_LEAF_LIST
)
491 DEF_GOMP_BUILTIN (BUILT_IN_GOMP_ERROR
, "GOMP_error",
492 BT_FN_VOID_CONST_PTR_SIZE
, ATTR_COLD_NORETURN_NOTHROW_LEAF_LIST
)