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