blob: aec25f7794d12b5465b7267c522ff84a1860af5b [file] [log] [blame]
Olivier Deprezf4ef2d02021-04-20 13:36:24 +02001#ifndef LLVM_OpenMP_INC
2#define LLVM_OpenMP_INC
3
4#include "llvm/ADT/BitmaskEnum.h"
5
6namespace llvm {
7class StringRef;
8namespace omp {
9
10LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE();
11
12enum class Directive {
13 OMPD_allocate,
14 OMPD_assumes,
15 OMPD_atomic,
16 OMPD_barrier,
17 OMPD_begin_assumes,
18 OMPD_begin_declare_variant,
19 OMPD_cancel,
20 OMPD_cancellation_point,
21 OMPD_critical,
22 OMPD_declare_mapper,
23 OMPD_declare_reduction,
24 OMPD_declare_simd,
25 OMPD_declare_target,
26 OMPD_declare_variant,
27 OMPD_depobj,
28 OMPD_distribute,
29 OMPD_distribute_parallel_do,
30 OMPD_distribute_parallel_do_simd,
31 OMPD_distribute_parallel_for,
32 OMPD_distribute_parallel_for_simd,
33 OMPD_distribute_simd,
34 OMPD_do,
35 OMPD_do_simd,
36 OMPD_end_assumes,
37 OMPD_end_declare_target,
38 OMPD_end_declare_variant,
39 OMPD_end_do,
40 OMPD_end_do_simd,
41 OMPD_end_sections,
42 OMPD_end_single,
43 OMPD_end_workshare,
44 OMPD_flush,
45 OMPD_for,
46 OMPD_for_simd,
47 OMPD_master,
48 OMPD_master_taskloop,
49 OMPD_master_taskloop_simd,
50 OMPD_ordered,
51 OMPD_parallel,
52 OMPD_parallel_do,
53 OMPD_parallel_do_simd,
54 OMPD_parallel_for,
55 OMPD_parallel_for_simd,
56 OMPD_parallel_master,
57 OMPD_parallel_master_taskloop,
58 OMPD_parallel_master_taskloop_simd,
59 OMPD_parallel_sections,
60 OMPD_parallel_workshare,
61 OMPD_requires,
62 OMPD_scan,
63 OMPD_section,
64 OMPD_sections,
65 OMPD_simd,
66 OMPD_single,
67 OMPD_target,
68 OMPD_target_data,
69 OMPD_target_enter_data,
70 OMPD_target_exit_data,
71 OMPD_target_parallel,
72 OMPD_target_parallel_do,
73 OMPD_target_parallel_do_simd,
74 OMPD_target_parallel_for,
75 OMPD_target_parallel_for_simd,
76 OMPD_target_simd,
77 OMPD_target_teams,
78 OMPD_target_teams_distribute,
79 OMPD_target_teams_distribute_parallel_do,
80 OMPD_target_teams_distribute_parallel_do_simd,
81 OMPD_target_teams_distribute_parallel_for,
82 OMPD_target_teams_distribute_parallel_for_simd,
83 OMPD_target_teams_distribute_simd,
84 OMPD_target_update,
85 OMPD_task,
86 OMPD_taskgroup,
87 OMPD_taskloop,
88 OMPD_taskloop_simd,
89 OMPD_taskwait,
90 OMPD_taskyield,
91 OMPD_teams,
92 OMPD_teams_distribute,
93 OMPD_teams_distribute_parallel_do,
94 OMPD_teams_distribute_parallel_do_simd,
95 OMPD_teams_distribute_parallel_for,
96 OMPD_teams_distribute_parallel_for_simd,
97 OMPD_teams_distribute_simd,
98 OMPD_threadprivate,
99 OMPD_unknown,
100 OMPD_workshare,
101};
102
103static constexpr std::size_t Directive_enumSize = 88;
104
105constexpr auto OMPD_allocate = llvm::omp::Directive::OMPD_allocate;
106constexpr auto OMPD_assumes = llvm::omp::Directive::OMPD_assumes;
107constexpr auto OMPD_atomic = llvm::omp::Directive::OMPD_atomic;
108constexpr auto OMPD_barrier = llvm::omp::Directive::OMPD_barrier;
109constexpr auto OMPD_begin_assumes = llvm::omp::Directive::OMPD_begin_assumes;
110constexpr auto OMPD_begin_declare_variant = llvm::omp::Directive::OMPD_begin_declare_variant;
111constexpr auto OMPD_cancel = llvm::omp::Directive::OMPD_cancel;
112constexpr auto OMPD_cancellation_point = llvm::omp::Directive::OMPD_cancellation_point;
113constexpr auto OMPD_critical = llvm::omp::Directive::OMPD_critical;
114constexpr auto OMPD_declare_mapper = llvm::omp::Directive::OMPD_declare_mapper;
115constexpr auto OMPD_declare_reduction = llvm::omp::Directive::OMPD_declare_reduction;
116constexpr auto OMPD_declare_simd = llvm::omp::Directive::OMPD_declare_simd;
117constexpr auto OMPD_declare_target = llvm::omp::Directive::OMPD_declare_target;
118constexpr auto OMPD_declare_variant = llvm::omp::Directive::OMPD_declare_variant;
119constexpr auto OMPD_depobj = llvm::omp::Directive::OMPD_depobj;
120constexpr auto OMPD_distribute = llvm::omp::Directive::OMPD_distribute;
121constexpr auto OMPD_distribute_parallel_do = llvm::omp::Directive::OMPD_distribute_parallel_do;
122constexpr auto OMPD_distribute_parallel_do_simd = llvm::omp::Directive::OMPD_distribute_parallel_do_simd;
123constexpr auto OMPD_distribute_parallel_for = llvm::omp::Directive::OMPD_distribute_parallel_for;
124constexpr auto OMPD_distribute_parallel_for_simd = llvm::omp::Directive::OMPD_distribute_parallel_for_simd;
125constexpr auto OMPD_distribute_simd = llvm::omp::Directive::OMPD_distribute_simd;
126constexpr auto OMPD_do = llvm::omp::Directive::OMPD_do;
127constexpr auto OMPD_do_simd = llvm::omp::Directive::OMPD_do_simd;
128constexpr auto OMPD_end_assumes = llvm::omp::Directive::OMPD_end_assumes;
129constexpr auto OMPD_end_declare_target = llvm::omp::Directive::OMPD_end_declare_target;
130constexpr auto OMPD_end_declare_variant = llvm::omp::Directive::OMPD_end_declare_variant;
131constexpr auto OMPD_end_do = llvm::omp::Directive::OMPD_end_do;
132constexpr auto OMPD_end_do_simd = llvm::omp::Directive::OMPD_end_do_simd;
133constexpr auto OMPD_end_sections = llvm::omp::Directive::OMPD_end_sections;
134constexpr auto OMPD_end_single = llvm::omp::Directive::OMPD_end_single;
135constexpr auto OMPD_end_workshare = llvm::omp::Directive::OMPD_end_workshare;
136constexpr auto OMPD_flush = llvm::omp::Directive::OMPD_flush;
137constexpr auto OMPD_for = llvm::omp::Directive::OMPD_for;
138constexpr auto OMPD_for_simd = llvm::omp::Directive::OMPD_for_simd;
139constexpr auto OMPD_master = llvm::omp::Directive::OMPD_master;
140constexpr auto OMPD_master_taskloop = llvm::omp::Directive::OMPD_master_taskloop;
141constexpr auto OMPD_master_taskloop_simd = llvm::omp::Directive::OMPD_master_taskloop_simd;
142constexpr auto OMPD_ordered = llvm::omp::Directive::OMPD_ordered;
143constexpr auto OMPD_parallel = llvm::omp::Directive::OMPD_parallel;
144constexpr auto OMPD_parallel_do = llvm::omp::Directive::OMPD_parallel_do;
145constexpr auto OMPD_parallel_do_simd = llvm::omp::Directive::OMPD_parallel_do_simd;
146constexpr auto OMPD_parallel_for = llvm::omp::Directive::OMPD_parallel_for;
147constexpr auto OMPD_parallel_for_simd = llvm::omp::Directive::OMPD_parallel_for_simd;
148constexpr auto OMPD_parallel_master = llvm::omp::Directive::OMPD_parallel_master;
149constexpr auto OMPD_parallel_master_taskloop = llvm::omp::Directive::OMPD_parallel_master_taskloop;
150constexpr auto OMPD_parallel_master_taskloop_simd = llvm::omp::Directive::OMPD_parallel_master_taskloop_simd;
151constexpr auto OMPD_parallel_sections = llvm::omp::Directive::OMPD_parallel_sections;
152constexpr auto OMPD_parallel_workshare = llvm::omp::Directive::OMPD_parallel_workshare;
153constexpr auto OMPD_requires = llvm::omp::Directive::OMPD_requires;
154constexpr auto OMPD_scan = llvm::omp::Directive::OMPD_scan;
155constexpr auto OMPD_section = llvm::omp::Directive::OMPD_section;
156constexpr auto OMPD_sections = llvm::omp::Directive::OMPD_sections;
157constexpr auto OMPD_simd = llvm::omp::Directive::OMPD_simd;
158constexpr auto OMPD_single = llvm::omp::Directive::OMPD_single;
159constexpr auto OMPD_target = llvm::omp::Directive::OMPD_target;
160constexpr auto OMPD_target_data = llvm::omp::Directive::OMPD_target_data;
161constexpr auto OMPD_target_enter_data = llvm::omp::Directive::OMPD_target_enter_data;
162constexpr auto OMPD_target_exit_data = llvm::omp::Directive::OMPD_target_exit_data;
163constexpr auto OMPD_target_parallel = llvm::omp::Directive::OMPD_target_parallel;
164constexpr auto OMPD_target_parallel_do = llvm::omp::Directive::OMPD_target_parallel_do;
165constexpr auto OMPD_target_parallel_do_simd = llvm::omp::Directive::OMPD_target_parallel_do_simd;
166constexpr auto OMPD_target_parallel_for = llvm::omp::Directive::OMPD_target_parallel_for;
167constexpr auto OMPD_target_parallel_for_simd = llvm::omp::Directive::OMPD_target_parallel_for_simd;
168constexpr auto OMPD_target_simd = llvm::omp::Directive::OMPD_target_simd;
169constexpr auto OMPD_target_teams = llvm::omp::Directive::OMPD_target_teams;
170constexpr auto OMPD_target_teams_distribute = llvm::omp::Directive::OMPD_target_teams_distribute;
171constexpr auto OMPD_target_teams_distribute_parallel_do = llvm::omp::Directive::OMPD_target_teams_distribute_parallel_do;
172constexpr auto OMPD_target_teams_distribute_parallel_do_simd = llvm::omp::Directive::OMPD_target_teams_distribute_parallel_do_simd;
173constexpr auto OMPD_target_teams_distribute_parallel_for = llvm::omp::Directive::OMPD_target_teams_distribute_parallel_for;
174constexpr auto OMPD_target_teams_distribute_parallel_for_simd = llvm::omp::Directive::OMPD_target_teams_distribute_parallel_for_simd;
175constexpr auto OMPD_target_teams_distribute_simd = llvm::omp::Directive::OMPD_target_teams_distribute_simd;
176constexpr auto OMPD_target_update = llvm::omp::Directive::OMPD_target_update;
177constexpr auto OMPD_task = llvm::omp::Directive::OMPD_task;
178constexpr auto OMPD_taskgroup = llvm::omp::Directive::OMPD_taskgroup;
179constexpr auto OMPD_taskloop = llvm::omp::Directive::OMPD_taskloop;
180constexpr auto OMPD_taskloop_simd = llvm::omp::Directive::OMPD_taskloop_simd;
181constexpr auto OMPD_taskwait = llvm::omp::Directive::OMPD_taskwait;
182constexpr auto OMPD_taskyield = llvm::omp::Directive::OMPD_taskyield;
183constexpr auto OMPD_teams = llvm::omp::Directive::OMPD_teams;
184constexpr auto OMPD_teams_distribute = llvm::omp::Directive::OMPD_teams_distribute;
185constexpr auto OMPD_teams_distribute_parallel_do = llvm::omp::Directive::OMPD_teams_distribute_parallel_do;
186constexpr auto OMPD_teams_distribute_parallel_do_simd = llvm::omp::Directive::OMPD_teams_distribute_parallel_do_simd;
187constexpr auto OMPD_teams_distribute_parallel_for = llvm::omp::Directive::OMPD_teams_distribute_parallel_for;
188constexpr auto OMPD_teams_distribute_parallel_for_simd = llvm::omp::Directive::OMPD_teams_distribute_parallel_for_simd;
189constexpr auto OMPD_teams_distribute_simd = llvm::omp::Directive::OMPD_teams_distribute_simd;
190constexpr auto OMPD_threadprivate = llvm::omp::Directive::OMPD_threadprivate;
191constexpr auto OMPD_unknown = llvm::omp::Directive::OMPD_unknown;
192constexpr auto OMPD_workshare = llvm::omp::Directive::OMPD_workshare;
193
194enum class Clause {
195 OMPC_acq_rel,
196 OMPC_acquire,
197 OMPC_affinity,
198 OMPC_aligned,
199 OMPC_allocate,
200 OMPC_allocator,
201 OMPC_atomic_default_mem_order,
202 OMPC_capture,
203 OMPC_collapse,
204 OMPC_copyprivate,
205 OMPC_copyin,
206 OMPC_default,
207 OMPC_defaultmap,
208 OMPC_depend,
209 OMPC_depobj,
210 OMPC_destroy,
211 OMPC_detach,
212 OMPC_device,
213 OMPC_device_type,
214 OMPC_dist_schedule,
215 OMPC_dynamic_allocators,
216 OMPC_exclusive,
217 OMPC_final,
218 OMPC_firstprivate,
219 OMPC_flush,
220 OMPC_from,
221 OMPC_grainsize,
222 OMPC_hint,
223 OMPC_if,
224 OMPC_in_reduction,
225 OMPC_inbranch,
226 OMPC_inclusive,
227 OMPC_is_device_ptr,
228 OMPC_lastprivate,
229 OMPC_linear,
230 OMPC_link,
231 OMPC_map,
232 OMPC_match,
233 OMPC_mergeable,
234 OMPC_nogroup,
235 OMPC_nowait,
236 OMPC_nontemporal,
237 OMPC_notinbranch,
238 OMPC_num_tasks,
239 OMPC_num_teams,
240 OMPC_num_threads,
241 OMPC_order,
242 OMPC_ordered,
243 OMPC_priority,
244 OMPC_private,
245 OMPC_proc_bind,
246 OMPC_read,
247 OMPC_reduction,
248 OMPC_relaxed,
249 OMPC_release,
250 OMPC_reverse_offload,
251 OMPC_safelen,
252 OMPC_schedule,
253 OMPC_seq_cst,
254 OMPC_shared,
255 OMPC_simd,
256 OMPC_simdlen,
257 OMPC_task_reduction,
258 OMPC_thread_limit,
259 OMPC_threadprivate,
260 OMPC_threads,
261 OMPC_to,
262 OMPC_unified_address,
263 OMPC_unified_shared_memory,
264 OMPC_uniform,
265 OMPC_unknown,
266 OMPC_untied,
267 OMPC_update,
268 OMPC_use_device_addr,
269 OMPC_use_device_ptr,
270 OMPC_uses_allocators,
271 OMPC_write,
272};
273
274static constexpr std::size_t Clause_enumSize = 77;
275
276constexpr auto OMPC_acq_rel = llvm::omp::Clause::OMPC_acq_rel;
277constexpr auto OMPC_acquire = llvm::omp::Clause::OMPC_acquire;
278constexpr auto OMPC_affinity = llvm::omp::Clause::OMPC_affinity;
279constexpr auto OMPC_aligned = llvm::omp::Clause::OMPC_aligned;
280constexpr auto OMPC_allocate = llvm::omp::Clause::OMPC_allocate;
281constexpr auto OMPC_allocator = llvm::omp::Clause::OMPC_allocator;
282constexpr auto OMPC_atomic_default_mem_order = llvm::omp::Clause::OMPC_atomic_default_mem_order;
283constexpr auto OMPC_capture = llvm::omp::Clause::OMPC_capture;
284constexpr auto OMPC_collapse = llvm::omp::Clause::OMPC_collapse;
285constexpr auto OMPC_copyprivate = llvm::omp::Clause::OMPC_copyprivate;
286constexpr auto OMPC_copyin = llvm::omp::Clause::OMPC_copyin;
287constexpr auto OMPC_default = llvm::omp::Clause::OMPC_default;
288constexpr auto OMPC_defaultmap = llvm::omp::Clause::OMPC_defaultmap;
289constexpr auto OMPC_depend = llvm::omp::Clause::OMPC_depend;
290constexpr auto OMPC_depobj = llvm::omp::Clause::OMPC_depobj;
291constexpr auto OMPC_destroy = llvm::omp::Clause::OMPC_destroy;
292constexpr auto OMPC_detach = llvm::omp::Clause::OMPC_detach;
293constexpr auto OMPC_device = llvm::omp::Clause::OMPC_device;
294constexpr auto OMPC_device_type = llvm::omp::Clause::OMPC_device_type;
295constexpr auto OMPC_dist_schedule = llvm::omp::Clause::OMPC_dist_schedule;
296constexpr auto OMPC_dynamic_allocators = llvm::omp::Clause::OMPC_dynamic_allocators;
297constexpr auto OMPC_exclusive = llvm::omp::Clause::OMPC_exclusive;
298constexpr auto OMPC_final = llvm::omp::Clause::OMPC_final;
299constexpr auto OMPC_firstprivate = llvm::omp::Clause::OMPC_firstprivate;
300constexpr auto OMPC_flush = llvm::omp::Clause::OMPC_flush;
301constexpr auto OMPC_from = llvm::omp::Clause::OMPC_from;
302constexpr auto OMPC_grainsize = llvm::omp::Clause::OMPC_grainsize;
303constexpr auto OMPC_hint = llvm::omp::Clause::OMPC_hint;
304constexpr auto OMPC_if = llvm::omp::Clause::OMPC_if;
305constexpr auto OMPC_in_reduction = llvm::omp::Clause::OMPC_in_reduction;
306constexpr auto OMPC_inbranch = llvm::omp::Clause::OMPC_inbranch;
307constexpr auto OMPC_inclusive = llvm::omp::Clause::OMPC_inclusive;
308constexpr auto OMPC_is_device_ptr = llvm::omp::Clause::OMPC_is_device_ptr;
309constexpr auto OMPC_lastprivate = llvm::omp::Clause::OMPC_lastprivate;
310constexpr auto OMPC_linear = llvm::omp::Clause::OMPC_linear;
311constexpr auto OMPC_link = llvm::omp::Clause::OMPC_link;
312constexpr auto OMPC_map = llvm::omp::Clause::OMPC_map;
313constexpr auto OMPC_match = llvm::omp::Clause::OMPC_match;
314constexpr auto OMPC_mergeable = llvm::omp::Clause::OMPC_mergeable;
315constexpr auto OMPC_nogroup = llvm::omp::Clause::OMPC_nogroup;
316constexpr auto OMPC_nowait = llvm::omp::Clause::OMPC_nowait;
317constexpr auto OMPC_nontemporal = llvm::omp::Clause::OMPC_nontemporal;
318constexpr auto OMPC_notinbranch = llvm::omp::Clause::OMPC_notinbranch;
319constexpr auto OMPC_num_tasks = llvm::omp::Clause::OMPC_num_tasks;
320constexpr auto OMPC_num_teams = llvm::omp::Clause::OMPC_num_teams;
321constexpr auto OMPC_num_threads = llvm::omp::Clause::OMPC_num_threads;
322constexpr auto OMPC_order = llvm::omp::Clause::OMPC_order;
323constexpr auto OMPC_ordered = llvm::omp::Clause::OMPC_ordered;
324constexpr auto OMPC_priority = llvm::omp::Clause::OMPC_priority;
325constexpr auto OMPC_private = llvm::omp::Clause::OMPC_private;
326constexpr auto OMPC_proc_bind = llvm::omp::Clause::OMPC_proc_bind;
327constexpr auto OMPC_read = llvm::omp::Clause::OMPC_read;
328constexpr auto OMPC_reduction = llvm::omp::Clause::OMPC_reduction;
329constexpr auto OMPC_relaxed = llvm::omp::Clause::OMPC_relaxed;
330constexpr auto OMPC_release = llvm::omp::Clause::OMPC_release;
331constexpr auto OMPC_reverse_offload = llvm::omp::Clause::OMPC_reverse_offload;
332constexpr auto OMPC_safelen = llvm::omp::Clause::OMPC_safelen;
333constexpr auto OMPC_schedule = llvm::omp::Clause::OMPC_schedule;
334constexpr auto OMPC_seq_cst = llvm::omp::Clause::OMPC_seq_cst;
335constexpr auto OMPC_shared = llvm::omp::Clause::OMPC_shared;
336constexpr auto OMPC_simd = llvm::omp::Clause::OMPC_simd;
337constexpr auto OMPC_simdlen = llvm::omp::Clause::OMPC_simdlen;
338constexpr auto OMPC_task_reduction = llvm::omp::Clause::OMPC_task_reduction;
339constexpr auto OMPC_thread_limit = llvm::omp::Clause::OMPC_thread_limit;
340constexpr auto OMPC_threadprivate = llvm::omp::Clause::OMPC_threadprivate;
341constexpr auto OMPC_threads = llvm::omp::Clause::OMPC_threads;
342constexpr auto OMPC_to = llvm::omp::Clause::OMPC_to;
343constexpr auto OMPC_unified_address = llvm::omp::Clause::OMPC_unified_address;
344constexpr auto OMPC_unified_shared_memory = llvm::omp::Clause::OMPC_unified_shared_memory;
345constexpr auto OMPC_uniform = llvm::omp::Clause::OMPC_uniform;
346constexpr auto OMPC_unknown = llvm::omp::Clause::OMPC_unknown;
347constexpr auto OMPC_untied = llvm::omp::Clause::OMPC_untied;
348constexpr auto OMPC_update = llvm::omp::Clause::OMPC_update;
349constexpr auto OMPC_use_device_addr = llvm::omp::Clause::OMPC_use_device_addr;
350constexpr auto OMPC_use_device_ptr = llvm::omp::Clause::OMPC_use_device_ptr;
351constexpr auto OMPC_uses_allocators = llvm::omp::Clause::OMPC_uses_allocators;
352constexpr auto OMPC_write = llvm::omp::Clause::OMPC_write;
353
354enum class OrderKind {
355 OMP_ORDER_concurrent=2,
356};
357
358constexpr auto OMP_ORDER_concurrent = llvm::omp::OrderKind::OMP_ORDER_concurrent;
359
360enum class ProcBindKind {
361 OMP_PROC_BIND_master=2,
362 OMP_PROC_BIND_close=3,
363 OMP_PROC_BIND_spread=4,
364 OMP_PROC_BIND_default=5,
365 OMP_PROC_BIND_unknown=6,
366};
367
368constexpr auto OMP_PROC_BIND_master = llvm::omp::ProcBindKind::OMP_PROC_BIND_master;
369constexpr auto OMP_PROC_BIND_close = llvm::omp::ProcBindKind::OMP_PROC_BIND_close;
370constexpr auto OMP_PROC_BIND_spread = llvm::omp::ProcBindKind::OMP_PROC_BIND_spread;
371constexpr auto OMP_PROC_BIND_default = llvm::omp::ProcBindKind::OMP_PROC_BIND_default;
372constexpr auto OMP_PROC_BIND_unknown = llvm::omp::ProcBindKind::OMP_PROC_BIND_unknown;
373
374enum class ScheduleKind {
375 OMP_SCHEDULE_Static=2,
376 OMP_SCHEDULE_Dynamic=3,
377 OMP_SCHEDULE_Guided=4,
378 OMP_SCHEDULE_Auto=5,
379 OMP_SCHEDULE_Runtime=6,
380 OMP_SCHEDULE_Default=7,
381};
382
383constexpr auto OMP_SCHEDULE_Static = llvm::omp::ScheduleKind::OMP_SCHEDULE_Static;
384constexpr auto OMP_SCHEDULE_Dynamic = llvm::omp::ScheduleKind::OMP_SCHEDULE_Dynamic;
385constexpr auto OMP_SCHEDULE_Guided = llvm::omp::ScheduleKind::OMP_SCHEDULE_Guided;
386constexpr auto OMP_SCHEDULE_Auto = llvm::omp::ScheduleKind::OMP_SCHEDULE_Auto;
387constexpr auto OMP_SCHEDULE_Runtime = llvm::omp::ScheduleKind::OMP_SCHEDULE_Runtime;
388constexpr auto OMP_SCHEDULE_Default = llvm::omp::ScheduleKind::OMP_SCHEDULE_Default;
389
390// Enumeration helper functions
391Directive getOpenMPDirectiveKind(llvm::StringRef Str);
392
393llvm::StringRef getOpenMPDirectiveName(Directive D);
394
395Clause getOpenMPClauseKind(llvm::StringRef Str);
396
397llvm::StringRef getOpenMPClauseName(Clause C);
398
399/// Return true if \p C is a valid clause for \p D in version \p Version.
400bool isAllowedClauseForDirective(Directive D, Clause C, unsigned Version);
401
402OrderKind getOrderKind(StringRef);
403llvm::StringRef getOpenMPOrderKindName(OrderKind);
404ProcBindKind getProcBindKind(StringRef);
405llvm::StringRef getOpenMPProcBindKindName(ProcBindKind);
406ScheduleKind getScheduleKind(StringRef);
407llvm::StringRef getOpenMPScheduleKindName(ScheduleKind);
408
409} // namespace omp
410} // namespace llvm
411#endif // LLVM_OpenMP_INC