1#ifndef LLVM_OpenMP_INC
2#define LLVM_OpenMP_INC
3
4#include "llvm/ADT/ArrayRef.h"
5#include "llvm/ADT/BitmaskEnum.h"
6#include "llvm/Support/Compiler.h"
7#include <cstddef>
8
9namespace llvm {
10class StringRef;
11namespace omp {
12
13LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE();
14
15enum class Association {
16 Block,
17 Declaration,
18 Delimited,
19 Loop,
20 None,
21 Separating,
22};
23
24static constexpr std::size_t Association_enumSize = 6;
25
26enum class Category {
27 Declarative,
28 Executable,
29 Informational,
30 Meta,
31 Subsidiary,
32 Utility,
33};
34
35static constexpr std::size_t Category_enumSize = 6;
36
37enum class Directive {
38 OMPD_allocate,
39 OMPD_allocators,
40 OMPD_assume,
41 OMPD_assumes,
42 OMPD_atomic,
43 OMPD_barrier,
44 OMPD_begin_assumes,
45 OMPD_begin_declare_target,
46 OMPD_begin_declare_variant,
47 OMPD_cancel,
48 OMPD_cancellation_point,
49 OMPD_critical,
50 OMPD_declare_mapper,
51 OMPD_declare_reduction,
52 OMPD_declare_simd,
53 OMPD_declare_target,
54 OMPD_declare_variant,
55 OMPD_depobj,
56 OMPD_distribute,
57 OMPD_distribute_parallel_do,
58 OMPD_distribute_parallel_do_simd,
59 OMPD_distribute_parallel_for,
60 OMPD_distribute_parallel_for_simd,
61 OMPD_distribute_simd,
62 OMPD_do,
63 OMPD_do_simd,
64 OMPD_end_assumes,
65 OMPD_end_declare_target,
66 OMPD_end_declare_variant,
67 OMPD_end_do,
68 OMPD_end_do_simd,
69 OMPD_end_scope,
70 OMPD_end_sections,
71 OMPD_end_single,
72 OMPD_end_workshare,
73 OMPD_error,
74 OMPD_flush,
75 OMPD_for,
76 OMPD_for_simd,
77 OMPD_interchange,
78 OMPD_masked_taskloop,
79 OMPD_masked_taskloop_simd,
80 OMPD_master,
81 OMPD_master_taskloop,
82 OMPD_master_taskloop_simd,
83 OMPD_metadirective,
84 OMPD_nothing,
85 OMPD_ordered,
86 OMPD_parallel,
87 OMPD_parallel_do,
88 OMPD_parallel_do_simd,
89 OMPD_parallel_for,
90 OMPD_parallel_for_simd,
91 OMPD_parallel_masked,
92 OMPD_parallel_masked_taskloop,
93 OMPD_parallel_masked_taskloop_simd,
94 OMPD_parallel_master,
95 OMPD_parallel_master_taskloop,
96 OMPD_parallel_master_taskloop_simd,
97 OMPD_parallel_sections,
98 OMPD_parallel_workshare,
99 OMPD_requires,
100 OMPD_reverse,
101 OMPD_scan,
102 OMPD_scope,
103 OMPD_section,
104 OMPD_sections,
105 OMPD_simd,
106 OMPD_single,
107 OMPD_target,
108 OMPD_target_data,
109 OMPD_target_enter_data,
110 OMPD_target_exit_data,
111 OMPD_target_parallel,
112 OMPD_target_parallel_do,
113 OMPD_target_parallel_do_simd,
114 OMPD_target_parallel_for,
115 OMPD_target_parallel_for_simd,
116 OMPD_target_simd,
117 OMPD_target_teams,
118 OMPD_target_teams_distribute,
119 OMPD_target_teams_distribute_parallel_do,
120 OMPD_target_teams_distribute_parallel_do_simd,
121 OMPD_target_teams_distribute_parallel_for,
122 OMPD_target_teams_distribute_parallel_for_simd,
123 OMPD_target_teams_distribute_simd,
124 OMPD_target_update,
125 OMPD_task,
126 OMPD_taskgroup,
127 OMPD_taskloop,
128 OMPD_taskloop_simd,
129 OMPD_taskwait,
130 OMPD_taskyield,
131 OMPD_teams,
132 OMPD_teams_distribute,
133 OMPD_teams_distribute_parallel_do,
134 OMPD_teams_distribute_parallel_do_simd,
135 OMPD_teams_distribute_parallel_for,
136 OMPD_teams_distribute_parallel_for_simd,
137 OMPD_teams_distribute_simd,
138 OMPD_threadprivate,
139 OMPD_tile,
140 OMPD_unknown,
141 OMPD_unroll,
142 OMPD_workshare,
143 OMPD_dispatch,
144 OMPD_interop,
145 OMPD_loop,
146 OMPD_masked,
147 OMPD_parallel_loop,
148 OMPD_target_loop,
149 OMPD_target_parallel_loop,
150 OMPD_target_teams_loop,
151 OMPD_teams_loop,
152};
153
154static constexpr std::size_t Directive_enumSize = 114;
155
156constexpr auto OMPD_allocate = llvm::omp::Directive::OMPD_allocate;
157constexpr auto OMPD_allocators = llvm::omp::Directive::OMPD_allocators;
158constexpr auto OMPD_assume = llvm::omp::Directive::OMPD_assume;
159constexpr auto OMPD_assumes = llvm::omp::Directive::OMPD_assumes;
160constexpr auto OMPD_atomic = llvm::omp::Directive::OMPD_atomic;
161constexpr auto OMPD_barrier = llvm::omp::Directive::OMPD_barrier;
162constexpr auto OMPD_begin_assumes = llvm::omp::Directive::OMPD_begin_assumes;
163constexpr auto OMPD_begin_declare_target = llvm::omp::Directive::OMPD_begin_declare_target;
164constexpr auto OMPD_begin_declare_variant = llvm::omp::Directive::OMPD_begin_declare_variant;
165constexpr auto OMPD_cancel = llvm::omp::Directive::OMPD_cancel;
166constexpr auto OMPD_cancellation_point = llvm::omp::Directive::OMPD_cancellation_point;
167constexpr auto OMPD_critical = llvm::omp::Directive::OMPD_critical;
168constexpr auto OMPD_declare_mapper = llvm::omp::Directive::OMPD_declare_mapper;
169constexpr auto OMPD_declare_reduction = llvm::omp::Directive::OMPD_declare_reduction;
170constexpr auto OMPD_declare_simd = llvm::omp::Directive::OMPD_declare_simd;
171constexpr auto OMPD_declare_target = llvm::omp::Directive::OMPD_declare_target;
172constexpr auto OMPD_declare_variant = llvm::omp::Directive::OMPD_declare_variant;
173constexpr auto OMPD_depobj = llvm::omp::Directive::OMPD_depobj;
174constexpr auto OMPD_distribute = llvm::omp::Directive::OMPD_distribute;
175constexpr auto OMPD_distribute_parallel_do = llvm::omp::Directive::OMPD_distribute_parallel_do;
176constexpr auto OMPD_distribute_parallel_do_simd = llvm::omp::Directive::OMPD_distribute_parallel_do_simd;
177constexpr auto OMPD_distribute_parallel_for = llvm::omp::Directive::OMPD_distribute_parallel_for;
178constexpr auto OMPD_distribute_parallel_for_simd = llvm::omp::Directive::OMPD_distribute_parallel_for_simd;
179constexpr auto OMPD_distribute_simd = llvm::omp::Directive::OMPD_distribute_simd;
180constexpr auto OMPD_do = llvm::omp::Directive::OMPD_do;
181constexpr auto OMPD_do_simd = llvm::omp::Directive::OMPD_do_simd;
182constexpr auto OMPD_end_assumes = llvm::omp::Directive::OMPD_end_assumes;
183constexpr auto OMPD_end_declare_target = llvm::omp::Directive::OMPD_end_declare_target;
184constexpr auto OMPD_end_declare_variant = llvm::omp::Directive::OMPD_end_declare_variant;
185constexpr auto OMPD_end_do = llvm::omp::Directive::OMPD_end_do;
186constexpr auto OMPD_end_do_simd = llvm::omp::Directive::OMPD_end_do_simd;
187constexpr auto OMPD_end_scope = llvm::omp::Directive::OMPD_end_scope;
188constexpr auto OMPD_end_sections = llvm::omp::Directive::OMPD_end_sections;
189constexpr auto OMPD_end_single = llvm::omp::Directive::OMPD_end_single;
190constexpr auto OMPD_end_workshare = llvm::omp::Directive::OMPD_end_workshare;
191constexpr auto OMPD_error = llvm::omp::Directive::OMPD_error;
192constexpr auto OMPD_flush = llvm::omp::Directive::OMPD_flush;
193constexpr auto OMPD_for = llvm::omp::Directive::OMPD_for;
194constexpr auto OMPD_for_simd = llvm::omp::Directive::OMPD_for_simd;
195constexpr auto OMPD_interchange = llvm::omp::Directive::OMPD_interchange;
196constexpr auto OMPD_masked_taskloop = llvm::omp::Directive::OMPD_masked_taskloop;
197constexpr auto OMPD_masked_taskloop_simd = llvm::omp::Directive::OMPD_masked_taskloop_simd;
198constexpr auto OMPD_master = llvm::omp::Directive::OMPD_master;
199constexpr auto OMPD_master_taskloop = llvm::omp::Directive::OMPD_master_taskloop;
200constexpr auto OMPD_master_taskloop_simd = llvm::omp::Directive::OMPD_master_taskloop_simd;
201constexpr auto OMPD_metadirective = llvm::omp::Directive::OMPD_metadirective;
202constexpr auto OMPD_nothing = llvm::omp::Directive::OMPD_nothing;
203constexpr auto OMPD_ordered = llvm::omp::Directive::OMPD_ordered;
204constexpr auto OMPD_parallel = llvm::omp::Directive::OMPD_parallel;
205constexpr auto OMPD_parallel_do = llvm::omp::Directive::OMPD_parallel_do;
206constexpr auto OMPD_parallel_do_simd = llvm::omp::Directive::OMPD_parallel_do_simd;
207constexpr auto OMPD_parallel_for = llvm::omp::Directive::OMPD_parallel_for;
208constexpr auto OMPD_parallel_for_simd = llvm::omp::Directive::OMPD_parallel_for_simd;
209constexpr auto OMPD_parallel_masked = llvm::omp::Directive::OMPD_parallel_masked;
210constexpr auto OMPD_parallel_masked_taskloop = llvm::omp::Directive::OMPD_parallel_masked_taskloop;
211constexpr auto OMPD_parallel_masked_taskloop_simd = llvm::omp::Directive::OMPD_parallel_masked_taskloop_simd;
212constexpr auto OMPD_parallel_master = llvm::omp::Directive::OMPD_parallel_master;
213constexpr auto OMPD_parallel_master_taskloop = llvm::omp::Directive::OMPD_parallel_master_taskloop;
214constexpr auto OMPD_parallel_master_taskloop_simd = llvm::omp::Directive::OMPD_parallel_master_taskloop_simd;
215constexpr auto OMPD_parallel_sections = llvm::omp::Directive::OMPD_parallel_sections;
216constexpr auto OMPD_parallel_workshare = llvm::omp::Directive::OMPD_parallel_workshare;
217constexpr auto OMPD_requires = llvm::omp::Directive::OMPD_requires;
218constexpr auto OMPD_reverse = llvm::omp::Directive::OMPD_reverse;
219constexpr auto OMPD_scan = llvm::omp::Directive::OMPD_scan;
220constexpr auto OMPD_scope = llvm::omp::Directive::OMPD_scope;
221constexpr auto OMPD_section = llvm::omp::Directive::OMPD_section;
222constexpr auto OMPD_sections = llvm::omp::Directive::OMPD_sections;
223constexpr auto OMPD_simd = llvm::omp::Directive::OMPD_simd;
224constexpr auto OMPD_single = llvm::omp::Directive::OMPD_single;
225constexpr auto OMPD_target = llvm::omp::Directive::OMPD_target;
226constexpr auto OMPD_target_data = llvm::omp::Directive::OMPD_target_data;
227constexpr auto OMPD_target_enter_data = llvm::omp::Directive::OMPD_target_enter_data;
228constexpr auto OMPD_target_exit_data = llvm::omp::Directive::OMPD_target_exit_data;
229constexpr auto OMPD_target_parallel = llvm::omp::Directive::OMPD_target_parallel;
230constexpr auto OMPD_target_parallel_do = llvm::omp::Directive::OMPD_target_parallel_do;
231constexpr auto OMPD_target_parallel_do_simd = llvm::omp::Directive::OMPD_target_parallel_do_simd;
232constexpr auto OMPD_target_parallel_for = llvm::omp::Directive::OMPD_target_parallel_for;
233constexpr auto OMPD_target_parallel_for_simd = llvm::omp::Directive::OMPD_target_parallel_for_simd;
234constexpr auto OMPD_target_simd = llvm::omp::Directive::OMPD_target_simd;
235constexpr auto OMPD_target_teams = llvm::omp::Directive::OMPD_target_teams;
236constexpr auto OMPD_target_teams_distribute = llvm::omp::Directive::OMPD_target_teams_distribute;
237constexpr auto OMPD_target_teams_distribute_parallel_do = llvm::omp::Directive::OMPD_target_teams_distribute_parallel_do;
238constexpr auto OMPD_target_teams_distribute_parallel_do_simd = llvm::omp::Directive::OMPD_target_teams_distribute_parallel_do_simd;
239constexpr auto OMPD_target_teams_distribute_parallel_for = llvm::omp::Directive::OMPD_target_teams_distribute_parallel_for;
240constexpr auto OMPD_target_teams_distribute_parallel_for_simd = llvm::omp::Directive::OMPD_target_teams_distribute_parallel_for_simd;
241constexpr auto OMPD_target_teams_distribute_simd = llvm::omp::Directive::OMPD_target_teams_distribute_simd;
242constexpr auto OMPD_target_update = llvm::omp::Directive::OMPD_target_update;
243constexpr auto OMPD_task = llvm::omp::Directive::OMPD_task;
244constexpr auto OMPD_taskgroup = llvm::omp::Directive::OMPD_taskgroup;
245constexpr auto OMPD_taskloop = llvm::omp::Directive::OMPD_taskloop;
246constexpr auto OMPD_taskloop_simd = llvm::omp::Directive::OMPD_taskloop_simd;
247constexpr auto OMPD_taskwait = llvm::omp::Directive::OMPD_taskwait;
248constexpr auto OMPD_taskyield = llvm::omp::Directive::OMPD_taskyield;
249constexpr auto OMPD_teams = llvm::omp::Directive::OMPD_teams;
250constexpr auto OMPD_teams_distribute = llvm::omp::Directive::OMPD_teams_distribute;
251constexpr auto OMPD_teams_distribute_parallel_do = llvm::omp::Directive::OMPD_teams_distribute_parallel_do;
252constexpr auto OMPD_teams_distribute_parallel_do_simd = llvm::omp::Directive::OMPD_teams_distribute_parallel_do_simd;
253constexpr auto OMPD_teams_distribute_parallel_for = llvm::omp::Directive::OMPD_teams_distribute_parallel_for;
254constexpr auto OMPD_teams_distribute_parallel_for_simd = llvm::omp::Directive::OMPD_teams_distribute_parallel_for_simd;
255constexpr auto OMPD_teams_distribute_simd = llvm::omp::Directive::OMPD_teams_distribute_simd;
256constexpr auto OMPD_threadprivate = llvm::omp::Directive::OMPD_threadprivate;
257constexpr auto OMPD_tile = llvm::omp::Directive::OMPD_tile;
258constexpr auto OMPD_unknown = llvm::omp::Directive::OMPD_unknown;
259constexpr auto OMPD_unroll = llvm::omp::Directive::OMPD_unroll;
260constexpr auto OMPD_workshare = llvm::omp::Directive::OMPD_workshare;
261constexpr auto OMPD_dispatch = llvm::omp::Directive::OMPD_dispatch;
262constexpr auto OMPD_interop = llvm::omp::Directive::OMPD_interop;
263constexpr auto OMPD_loop = llvm::omp::Directive::OMPD_loop;
264constexpr auto OMPD_masked = llvm::omp::Directive::OMPD_masked;
265constexpr auto OMPD_parallel_loop = llvm::omp::Directive::OMPD_parallel_loop;
266constexpr auto OMPD_target_loop = llvm::omp::Directive::OMPD_target_loop;
267constexpr auto OMPD_target_parallel_loop = llvm::omp::Directive::OMPD_target_parallel_loop;
268constexpr auto OMPD_target_teams_loop = llvm::omp::Directive::OMPD_target_teams_loop;
269constexpr auto OMPD_teams_loop = llvm::omp::Directive::OMPD_teams_loop;
270
271enum class Clause {
272 OMPC_absent,
273 OMPC_acq_rel,
274 OMPC_acquire,
275 OMPC_adjust_args,
276 OMPC_affinity,
277 OMPC_align,
278 OMPC_aligned,
279 OMPC_allocate,
280 OMPC_allocator,
281 OMPC_append_args,
282 OMPC_at,
283 OMPC_atomic_default_mem_order,
284 OMPC_bind,
285 OMPC_cancellation_construct_type,
286 OMPC_capture,
287 OMPC_collapse,
288 OMPC_compare,
289 OMPC_contains,
290 OMPC_copyprivate,
291 OMPC_copyin,
292 OMPC_default,
293 OMPC_defaultmap,
294 OMPC_depend,
295 OMPC_depobj,
296 OMPC_destroy,
297 OMPC_detach,
298 OMPC_device,
299 OMPC_device_type,
300 OMPC_dist_schedule,
301 OMPC_doacross,
302 OMPC_dynamic_allocators,
303 OMPC_enter,
304 OMPC_exclusive,
305 OMPC_fail,
306 OMPC_filter,
307 OMPC_final,
308 OMPC_firstprivate,
309 OMPC_flush,
310 OMPC_from,
311 OMPC_full,
312 OMPC_grainsize,
313 OMPC_has_device_addr,
314 OMPC_hint,
315 OMPC_holds,
316 OMPC_if,
317 OMPC_in_reduction,
318 OMPC_inbranch,
319 OMPC_inclusive,
320 OMPC_indirect,
321 OMPC_init,
322 OMPC_is_device_ptr,
323 OMPC_lastprivate,
324 OMPC_linear,
325 OMPC_link,
326 OMPC_map,
327 OMPC_match,
328 OMPC_memory_order,
329 OMPC_mergeable,
330 OMPC_message,
331 OMPC_nogroup,
332 OMPC_no_openmp,
333 OMPC_no_openmp_routines,
334 OMPC_no_parallelism,
335 OMPC_nowait,
336 OMPC_nocontext,
337 OMPC_nontemporal,
338 OMPC_notinbranch,
339 OMPC_novariants,
340 OMPC_num_tasks,
341 OMPC_num_teams,
342 OMPC_num_threads,
343 OMPC_ompx_attribute,
344 OMPC_ompx_bare,
345 OMPC_ompx_dyn_cgroup_mem,
346 OMPC_order,
347 OMPC_ordered,
348 OMPC_partial,
349 OMPC_permutation,
350 OMPC_priority,
351 OMPC_private,
352 OMPC_proc_bind,
353 OMPC_read,
354 OMPC_reduction,
355 OMPC_relaxed,
356 OMPC_release,
357 OMPC_reverse_offload,
358 OMPC_safelen,
359 OMPC_schedule,
360 OMPC_seq_cst,
361 OMPC_severity,
362 OMPC_shared,
363 OMPC_simd,
364 OMPC_simdlen,
365 OMPC_sizes,
366 OMPC_task_reduction,
367 OMPC_thread_limit,
368 OMPC_threadprivate,
369 OMPC_threads,
370 OMPC_to,
371 OMPC_unified_address,
372 OMPC_unified_shared_memory,
373 OMPC_uniform,
374 OMPC_unknown,
375 OMPC_untied,
376 OMPC_update,
377 OMPC_use,
378 OMPC_use_device_addr,
379 OMPC_use_device_ptr,
380 OMPC_uses_allocators,
381 OMPC_weak,
382 OMPC_when,
383 OMPC_write,
384};
385
386static constexpr std::size_t Clause_enumSize = 112;
387
388constexpr auto OMPC_absent = llvm::omp::Clause::OMPC_absent;
389constexpr auto OMPC_acq_rel = llvm::omp::Clause::OMPC_acq_rel;
390constexpr auto OMPC_acquire = llvm::omp::Clause::OMPC_acquire;
391constexpr auto OMPC_adjust_args = llvm::omp::Clause::OMPC_adjust_args;
392constexpr auto OMPC_affinity = llvm::omp::Clause::OMPC_affinity;
393constexpr auto OMPC_align = llvm::omp::Clause::OMPC_align;
394constexpr auto OMPC_aligned = llvm::omp::Clause::OMPC_aligned;
395constexpr auto OMPC_allocate = llvm::omp::Clause::OMPC_allocate;
396constexpr auto OMPC_allocator = llvm::omp::Clause::OMPC_allocator;
397constexpr auto OMPC_append_args = llvm::omp::Clause::OMPC_append_args;
398constexpr auto OMPC_at = llvm::omp::Clause::OMPC_at;
399constexpr auto OMPC_atomic_default_mem_order = llvm::omp::Clause::OMPC_atomic_default_mem_order;
400constexpr auto OMPC_bind = llvm::omp::Clause::OMPC_bind;
401constexpr auto OMPC_cancellation_construct_type = llvm::omp::Clause::OMPC_cancellation_construct_type;
402constexpr auto OMPC_capture = llvm::omp::Clause::OMPC_capture;
403constexpr auto OMPC_collapse = llvm::omp::Clause::OMPC_collapse;
404constexpr auto OMPC_compare = llvm::omp::Clause::OMPC_compare;
405constexpr auto OMPC_contains = llvm::omp::Clause::OMPC_contains;
406constexpr auto OMPC_copyprivate = llvm::omp::Clause::OMPC_copyprivate;
407constexpr auto OMPC_copyin = llvm::omp::Clause::OMPC_copyin;
408constexpr auto OMPC_default = llvm::omp::Clause::OMPC_default;
409constexpr auto OMPC_defaultmap = llvm::omp::Clause::OMPC_defaultmap;
410constexpr auto OMPC_depend = llvm::omp::Clause::OMPC_depend;
411constexpr auto OMPC_depobj = llvm::omp::Clause::OMPC_depobj;
412constexpr auto OMPC_destroy = llvm::omp::Clause::OMPC_destroy;
413constexpr auto OMPC_detach = llvm::omp::Clause::OMPC_detach;
414constexpr auto OMPC_device = llvm::omp::Clause::OMPC_device;
415constexpr auto OMPC_device_type = llvm::omp::Clause::OMPC_device_type;
416constexpr auto OMPC_dist_schedule = llvm::omp::Clause::OMPC_dist_schedule;
417constexpr auto OMPC_doacross = llvm::omp::Clause::OMPC_doacross;
418constexpr auto OMPC_dynamic_allocators = llvm::omp::Clause::OMPC_dynamic_allocators;
419constexpr auto OMPC_enter = llvm::omp::Clause::OMPC_enter;
420constexpr auto OMPC_exclusive = llvm::omp::Clause::OMPC_exclusive;
421constexpr auto OMPC_fail = llvm::omp::Clause::OMPC_fail;
422constexpr auto OMPC_filter = llvm::omp::Clause::OMPC_filter;
423constexpr auto OMPC_final = llvm::omp::Clause::OMPC_final;
424constexpr auto OMPC_firstprivate = llvm::omp::Clause::OMPC_firstprivate;
425constexpr auto OMPC_flush = llvm::omp::Clause::OMPC_flush;
426constexpr auto OMPC_from = llvm::omp::Clause::OMPC_from;
427constexpr auto OMPC_full = llvm::omp::Clause::OMPC_full;
428constexpr auto OMPC_grainsize = llvm::omp::Clause::OMPC_grainsize;
429constexpr auto OMPC_has_device_addr = llvm::omp::Clause::OMPC_has_device_addr;
430constexpr auto OMPC_hint = llvm::omp::Clause::OMPC_hint;
431constexpr auto OMPC_holds = llvm::omp::Clause::OMPC_holds;
432constexpr auto OMPC_if = llvm::omp::Clause::OMPC_if;
433constexpr auto OMPC_in_reduction = llvm::omp::Clause::OMPC_in_reduction;
434constexpr auto OMPC_inbranch = llvm::omp::Clause::OMPC_inbranch;
435constexpr auto OMPC_inclusive = llvm::omp::Clause::OMPC_inclusive;
436constexpr auto OMPC_indirect = llvm::omp::Clause::OMPC_indirect;
437constexpr auto OMPC_init = llvm::omp::Clause::OMPC_init;
438constexpr auto OMPC_is_device_ptr = llvm::omp::Clause::OMPC_is_device_ptr;
439constexpr auto OMPC_lastprivate = llvm::omp::Clause::OMPC_lastprivate;
440constexpr auto OMPC_linear = llvm::omp::Clause::OMPC_linear;
441constexpr auto OMPC_link = llvm::omp::Clause::OMPC_link;
442constexpr auto OMPC_map = llvm::omp::Clause::OMPC_map;
443constexpr auto OMPC_match = llvm::omp::Clause::OMPC_match;
444constexpr auto OMPC_memory_order = llvm::omp::Clause::OMPC_memory_order;
445constexpr auto OMPC_mergeable = llvm::omp::Clause::OMPC_mergeable;
446constexpr auto OMPC_message = llvm::omp::Clause::OMPC_message;
447constexpr auto OMPC_nogroup = llvm::omp::Clause::OMPC_nogroup;
448constexpr auto OMPC_no_openmp = llvm::omp::Clause::OMPC_no_openmp;
449constexpr auto OMPC_no_openmp_routines = llvm::omp::Clause::OMPC_no_openmp_routines;
450constexpr auto OMPC_no_parallelism = llvm::omp::Clause::OMPC_no_parallelism;
451constexpr auto OMPC_nowait = llvm::omp::Clause::OMPC_nowait;
452constexpr auto OMPC_nocontext = llvm::omp::Clause::OMPC_nocontext;
453constexpr auto OMPC_nontemporal = llvm::omp::Clause::OMPC_nontemporal;
454constexpr auto OMPC_notinbranch = llvm::omp::Clause::OMPC_notinbranch;
455constexpr auto OMPC_novariants = llvm::omp::Clause::OMPC_novariants;
456constexpr auto OMPC_num_tasks = llvm::omp::Clause::OMPC_num_tasks;
457constexpr auto OMPC_num_teams = llvm::omp::Clause::OMPC_num_teams;
458constexpr auto OMPC_num_threads = llvm::omp::Clause::OMPC_num_threads;
459constexpr auto OMPC_ompx_attribute = llvm::omp::Clause::OMPC_ompx_attribute;
460constexpr auto OMPC_ompx_bare = llvm::omp::Clause::OMPC_ompx_bare;
461constexpr auto OMPC_ompx_dyn_cgroup_mem = llvm::omp::Clause::OMPC_ompx_dyn_cgroup_mem;
462constexpr auto OMPC_order = llvm::omp::Clause::OMPC_order;
463constexpr auto OMPC_ordered = llvm::omp::Clause::OMPC_ordered;
464constexpr auto OMPC_partial = llvm::omp::Clause::OMPC_partial;
465constexpr auto OMPC_permutation = llvm::omp::Clause::OMPC_permutation;
466constexpr auto OMPC_priority = llvm::omp::Clause::OMPC_priority;
467constexpr auto OMPC_private = llvm::omp::Clause::OMPC_private;
468constexpr auto OMPC_proc_bind = llvm::omp::Clause::OMPC_proc_bind;
469constexpr auto OMPC_read = llvm::omp::Clause::OMPC_read;
470constexpr auto OMPC_reduction = llvm::omp::Clause::OMPC_reduction;
471constexpr auto OMPC_relaxed = llvm::omp::Clause::OMPC_relaxed;
472constexpr auto OMPC_release = llvm::omp::Clause::OMPC_release;
473constexpr auto OMPC_reverse_offload = llvm::omp::Clause::OMPC_reverse_offload;
474constexpr auto OMPC_safelen = llvm::omp::Clause::OMPC_safelen;
475constexpr auto OMPC_schedule = llvm::omp::Clause::OMPC_schedule;
476constexpr auto OMPC_seq_cst = llvm::omp::Clause::OMPC_seq_cst;
477constexpr auto OMPC_severity = llvm::omp::Clause::OMPC_severity;
478constexpr auto OMPC_shared = llvm::omp::Clause::OMPC_shared;
479constexpr auto OMPC_simd = llvm::omp::Clause::OMPC_simd;
480constexpr auto OMPC_simdlen = llvm::omp::Clause::OMPC_simdlen;
481constexpr auto OMPC_sizes = llvm::omp::Clause::OMPC_sizes;
482constexpr auto OMPC_task_reduction = llvm::omp::Clause::OMPC_task_reduction;
483constexpr auto OMPC_thread_limit = llvm::omp::Clause::OMPC_thread_limit;
484constexpr auto OMPC_threadprivate = llvm::omp::Clause::OMPC_threadprivate;
485constexpr auto OMPC_threads = llvm::omp::Clause::OMPC_threads;
486constexpr auto OMPC_to = llvm::omp::Clause::OMPC_to;
487constexpr auto OMPC_unified_address = llvm::omp::Clause::OMPC_unified_address;
488constexpr auto OMPC_unified_shared_memory = llvm::omp::Clause::OMPC_unified_shared_memory;
489constexpr auto OMPC_uniform = llvm::omp::Clause::OMPC_uniform;
490constexpr auto OMPC_unknown = llvm::omp::Clause::OMPC_unknown;
491constexpr auto OMPC_untied = llvm::omp::Clause::OMPC_untied;
492constexpr auto OMPC_update = llvm::omp::Clause::OMPC_update;
493constexpr auto OMPC_use = llvm::omp::Clause::OMPC_use;
494constexpr auto OMPC_use_device_addr = llvm::omp::Clause::OMPC_use_device_addr;
495constexpr auto OMPC_use_device_ptr = llvm::omp::Clause::OMPC_use_device_ptr;
496constexpr auto OMPC_uses_allocators = llvm::omp::Clause::OMPC_uses_allocators;
497constexpr auto OMPC_weak = llvm::omp::Clause::OMPC_weak;
498constexpr auto OMPC_when = llvm::omp::Clause::OMPC_when;
499constexpr auto OMPC_write = llvm::omp::Clause::OMPC_write;
500
501enum class BindKind {
502 OMP_BIND_parallel=1,
503 OMP_BIND_teams=2,
504 OMP_BIND_thread=3,
505};
506
507constexpr auto OMP_BIND_parallel = llvm::omp::BindKind::OMP_BIND_parallel;
508constexpr auto OMP_BIND_teams = llvm::omp::BindKind::OMP_BIND_teams;
509constexpr auto OMP_BIND_thread = llvm::omp::BindKind::OMP_BIND_thread;
510
511enum class CancellationConstructType {
512 OMP_CANCELLATION_CONSTRUCT_Parallel=1,
513 OMP_CANCELLATION_CONSTRUCT_Loop=2,
514 OMP_CANCELLATION_CONSTRUCT_Sections=3,
515 OMP_CANCELLATION_CONSTRUCT_Taskgroup=4,
516 OMP_CANCELLATION_CONSTRUCT_None=5,
517};
518
519constexpr auto OMP_CANCELLATION_CONSTRUCT_Parallel = llvm::omp::CancellationConstructType::OMP_CANCELLATION_CONSTRUCT_Parallel;
520constexpr auto OMP_CANCELLATION_CONSTRUCT_Loop = llvm::omp::CancellationConstructType::OMP_CANCELLATION_CONSTRUCT_Loop;
521constexpr auto OMP_CANCELLATION_CONSTRUCT_Sections = llvm::omp::CancellationConstructType::OMP_CANCELLATION_CONSTRUCT_Sections;
522constexpr auto OMP_CANCELLATION_CONSTRUCT_Taskgroup = llvm::omp::CancellationConstructType::OMP_CANCELLATION_CONSTRUCT_Taskgroup;
523constexpr auto OMP_CANCELLATION_CONSTRUCT_None = llvm::omp::CancellationConstructType::OMP_CANCELLATION_CONSTRUCT_None;
524
525enum class GrainsizeType {
526 OMP_GRAINSIZE_Strict=1,
527 OMP_GRAINSIZE_Unknown=2,
528};
529
530constexpr auto OMP_GRAINSIZE_Strict = llvm::omp::GrainsizeType::OMP_GRAINSIZE_Strict;
531constexpr auto OMP_GRAINSIZE_Unknown = llvm::omp::GrainsizeType::OMP_GRAINSIZE_Unknown;
532
533enum class MemoryOrderKind {
534 OMP_MEMORY_ORDER_SeqCst=1,
535 OMP_MEMORY_ORDER_AcqRel=2,
536 OMP_MEMORY_ORDER_Acquire=3,
537 OMP_MEMORY_ORDER_Release=4,
538 OMP_MEMORY_ORDER_Relaxed=5,
539 OMP_MEMORY_ORDER_Default=6,
540};
541
542constexpr auto OMP_MEMORY_ORDER_SeqCst = llvm::omp::MemoryOrderKind::OMP_MEMORY_ORDER_SeqCst;
543constexpr auto OMP_MEMORY_ORDER_AcqRel = llvm::omp::MemoryOrderKind::OMP_MEMORY_ORDER_AcqRel;
544constexpr auto OMP_MEMORY_ORDER_Acquire = llvm::omp::MemoryOrderKind::OMP_MEMORY_ORDER_Acquire;
545constexpr auto OMP_MEMORY_ORDER_Release = llvm::omp::MemoryOrderKind::OMP_MEMORY_ORDER_Release;
546constexpr auto OMP_MEMORY_ORDER_Relaxed = llvm::omp::MemoryOrderKind::OMP_MEMORY_ORDER_Relaxed;
547constexpr auto OMP_MEMORY_ORDER_Default = llvm::omp::MemoryOrderKind::OMP_MEMORY_ORDER_Default;
548
549enum class NumTasksType {
550 OMP_NUMTASKS_Strict=1,
551 OMP_NUMTASKS_Unknown=2,
552};
553
554constexpr auto OMP_NUMTASKS_Strict = llvm::omp::NumTasksType::OMP_NUMTASKS_Strict;
555constexpr auto OMP_NUMTASKS_Unknown = llvm::omp::NumTasksType::OMP_NUMTASKS_Unknown;
556
557enum class OrderKind {
558 OMP_ORDER_unknown=2,
559 OMP_ORDER_concurrent=1,
560};
561
562constexpr auto OMP_ORDER_unknown = llvm::omp::OrderKind::OMP_ORDER_unknown;
563constexpr auto OMP_ORDER_concurrent = llvm::omp::OrderKind::OMP_ORDER_concurrent;
564
565enum class ProcBindKind {
566 OMP_PROC_BIND_primary=5,
567 OMP_PROC_BIND_master=2,
568 OMP_PROC_BIND_close=3,
569 OMP_PROC_BIND_spread=4,
570 OMP_PROC_BIND_default=6,
571 OMP_PROC_BIND_unknown=7,
572};
573
574constexpr auto OMP_PROC_BIND_primary = llvm::omp::ProcBindKind::OMP_PROC_BIND_primary;
575constexpr auto OMP_PROC_BIND_master = llvm::omp::ProcBindKind::OMP_PROC_BIND_master;
576constexpr auto OMP_PROC_BIND_close = llvm::omp::ProcBindKind::OMP_PROC_BIND_close;
577constexpr auto OMP_PROC_BIND_spread = llvm::omp::ProcBindKind::OMP_PROC_BIND_spread;
578constexpr auto OMP_PROC_BIND_default = llvm::omp::ProcBindKind::OMP_PROC_BIND_default;
579constexpr auto OMP_PROC_BIND_unknown = llvm::omp::ProcBindKind::OMP_PROC_BIND_unknown;
580
581enum class ScheduleKind {
582 OMP_SCHEDULE_Static=2,
583 OMP_SCHEDULE_Dynamic=3,
584 OMP_SCHEDULE_Guided=4,
585 OMP_SCHEDULE_Auto=5,
586 OMP_SCHEDULE_Runtime=6,
587 OMP_SCHEDULE_Default=7,
588};
589
590constexpr auto OMP_SCHEDULE_Static = llvm::omp::ScheduleKind::OMP_SCHEDULE_Static;
591constexpr auto OMP_SCHEDULE_Dynamic = llvm::omp::ScheduleKind::OMP_SCHEDULE_Dynamic;
592constexpr auto OMP_SCHEDULE_Guided = llvm::omp::ScheduleKind::OMP_SCHEDULE_Guided;
593constexpr auto OMP_SCHEDULE_Auto = llvm::omp::ScheduleKind::OMP_SCHEDULE_Auto;
594constexpr auto OMP_SCHEDULE_Runtime = llvm::omp::ScheduleKind::OMP_SCHEDULE_Runtime;
595constexpr auto OMP_SCHEDULE_Default = llvm::omp::ScheduleKind::OMP_SCHEDULE_Default;
596
597// Enumeration helper functions
598LLVM_ABI Directive getOpenMPDirectiveKind(llvm::StringRef Str);
599
600LLVM_ABI llvm::StringRef getOpenMPDirectiveName(Directive D);
601
602LLVM_ABI Clause getOpenMPClauseKind(llvm::StringRef Str);
603
604LLVM_ABI llvm::StringRef getOpenMPClauseName(Clause C);
605
606/// Return true if \p C is a valid clause for \p D in version \p Version.
607LLVM_ABI bool isAllowedClauseForDirective(Directive D, Clause C, unsigned Version);
608
609constexpr std::size_t getMaxLeafCount() { return 6; }
610LLVM_ABI Association getDirectiveAssociation(Directive D);
611LLVM_ABI Category getDirectiveCategory(Directive D);
612LLVM_ABI BindKind getBindKind(StringRef);
613LLVM_ABI llvm::StringRef getOpenMPBindKindName(BindKind);
614LLVM_ABI CancellationConstructType getCancellationConstructType(StringRef);
615LLVM_ABI llvm::StringRef getOpenMPCancellationConstructTypeName(CancellationConstructType);
616LLVM_ABI GrainsizeType getGrainsizeType(StringRef);
617LLVM_ABI llvm::StringRef getOpenMPGrainsizeTypeName(GrainsizeType);
618LLVM_ABI MemoryOrderKind getMemoryOrderKind(StringRef);
619LLVM_ABI llvm::StringRef getOpenMPMemoryOrderKindName(MemoryOrderKind);
620LLVM_ABI NumTasksType getNumTasksType(StringRef);
621LLVM_ABI llvm::StringRef getOpenMPNumTasksTypeName(NumTasksType);
622LLVM_ABI OrderKind getOrderKind(StringRef);
623LLVM_ABI llvm::StringRef getOpenMPOrderKindName(OrderKind);
624LLVM_ABI ProcBindKind getProcBindKind(StringRef);
625LLVM_ABI llvm::StringRef getOpenMPProcBindKindName(ProcBindKind);
626LLVM_ABI ScheduleKind getScheduleKind(StringRef);
627LLVM_ABI llvm::StringRef getOpenMPScheduleKindName(ScheduleKind);
628
629} // namespace omp
630} // namespace llvm
631#endif // LLVM_OpenMP_INC
632

source code of include/llvm-20/llvm/Frontend/OpenMP/OMP.h.inc