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