Olivier Deprez | f4ef2d0 | 2021-04-20 13:36:24 +0200 | [diff] [blame] | 1 | #ifndef LLVM_OpenMP_INC |
| 2 | #define LLVM_OpenMP_INC |
| 3 | |
| 4 | #include "llvm/ADT/BitmaskEnum.h" |
| 5 | |
| 6 | namespace llvm { |
| 7 | class StringRef; |
| 8 | namespace omp { |
| 9 | |
| 10 | LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE(); |
| 11 | |
| 12 | enum 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 | |
| 103 | static constexpr std::size_t Directive_enumSize = 88; |
| 104 | |
| 105 | constexpr auto OMPD_allocate = llvm::omp::Directive::OMPD_allocate; |
| 106 | constexpr auto OMPD_assumes = llvm::omp::Directive::OMPD_assumes; |
| 107 | constexpr auto OMPD_atomic = llvm::omp::Directive::OMPD_atomic; |
| 108 | constexpr auto OMPD_barrier = llvm::omp::Directive::OMPD_barrier; |
| 109 | constexpr auto OMPD_begin_assumes = llvm::omp::Directive::OMPD_begin_assumes; |
| 110 | constexpr auto OMPD_begin_declare_variant = llvm::omp::Directive::OMPD_begin_declare_variant; |
| 111 | constexpr auto OMPD_cancel = llvm::omp::Directive::OMPD_cancel; |
| 112 | constexpr auto OMPD_cancellation_point = llvm::omp::Directive::OMPD_cancellation_point; |
| 113 | constexpr auto OMPD_critical = llvm::omp::Directive::OMPD_critical; |
| 114 | constexpr auto OMPD_declare_mapper = llvm::omp::Directive::OMPD_declare_mapper; |
| 115 | constexpr auto OMPD_declare_reduction = llvm::omp::Directive::OMPD_declare_reduction; |
| 116 | constexpr auto OMPD_declare_simd = llvm::omp::Directive::OMPD_declare_simd; |
| 117 | constexpr auto OMPD_declare_target = llvm::omp::Directive::OMPD_declare_target; |
| 118 | constexpr auto OMPD_declare_variant = llvm::omp::Directive::OMPD_declare_variant; |
| 119 | constexpr auto OMPD_depobj = llvm::omp::Directive::OMPD_depobj; |
| 120 | constexpr auto OMPD_distribute = llvm::omp::Directive::OMPD_distribute; |
| 121 | constexpr auto OMPD_distribute_parallel_do = llvm::omp::Directive::OMPD_distribute_parallel_do; |
| 122 | constexpr auto OMPD_distribute_parallel_do_simd = llvm::omp::Directive::OMPD_distribute_parallel_do_simd; |
| 123 | constexpr auto OMPD_distribute_parallel_for = llvm::omp::Directive::OMPD_distribute_parallel_for; |
| 124 | constexpr auto OMPD_distribute_parallel_for_simd = llvm::omp::Directive::OMPD_distribute_parallel_for_simd; |
| 125 | constexpr auto OMPD_distribute_simd = llvm::omp::Directive::OMPD_distribute_simd; |
| 126 | constexpr auto OMPD_do = llvm::omp::Directive::OMPD_do; |
| 127 | constexpr auto OMPD_do_simd = llvm::omp::Directive::OMPD_do_simd; |
| 128 | constexpr auto OMPD_end_assumes = llvm::omp::Directive::OMPD_end_assumes; |
| 129 | constexpr auto OMPD_end_declare_target = llvm::omp::Directive::OMPD_end_declare_target; |
| 130 | constexpr auto OMPD_end_declare_variant = llvm::omp::Directive::OMPD_end_declare_variant; |
| 131 | constexpr auto OMPD_end_do = llvm::omp::Directive::OMPD_end_do; |
| 132 | constexpr auto OMPD_end_do_simd = llvm::omp::Directive::OMPD_end_do_simd; |
| 133 | constexpr auto OMPD_end_sections = llvm::omp::Directive::OMPD_end_sections; |
| 134 | constexpr auto OMPD_end_single = llvm::omp::Directive::OMPD_end_single; |
| 135 | constexpr auto OMPD_end_workshare = llvm::omp::Directive::OMPD_end_workshare; |
| 136 | constexpr auto OMPD_flush = llvm::omp::Directive::OMPD_flush; |
| 137 | constexpr auto OMPD_for = llvm::omp::Directive::OMPD_for; |
| 138 | constexpr auto OMPD_for_simd = llvm::omp::Directive::OMPD_for_simd; |
| 139 | constexpr auto OMPD_master = llvm::omp::Directive::OMPD_master; |
| 140 | constexpr auto OMPD_master_taskloop = llvm::omp::Directive::OMPD_master_taskloop; |
| 141 | constexpr auto OMPD_master_taskloop_simd = llvm::omp::Directive::OMPD_master_taskloop_simd; |
| 142 | constexpr auto OMPD_ordered = llvm::omp::Directive::OMPD_ordered; |
| 143 | constexpr auto OMPD_parallel = llvm::omp::Directive::OMPD_parallel; |
| 144 | constexpr auto OMPD_parallel_do = llvm::omp::Directive::OMPD_parallel_do; |
| 145 | constexpr auto OMPD_parallel_do_simd = llvm::omp::Directive::OMPD_parallel_do_simd; |
| 146 | constexpr auto OMPD_parallel_for = llvm::omp::Directive::OMPD_parallel_for; |
| 147 | constexpr auto OMPD_parallel_for_simd = llvm::omp::Directive::OMPD_parallel_for_simd; |
| 148 | constexpr auto OMPD_parallel_master = llvm::omp::Directive::OMPD_parallel_master; |
| 149 | constexpr auto OMPD_parallel_master_taskloop = llvm::omp::Directive::OMPD_parallel_master_taskloop; |
| 150 | constexpr auto OMPD_parallel_master_taskloop_simd = llvm::omp::Directive::OMPD_parallel_master_taskloop_simd; |
| 151 | constexpr auto OMPD_parallel_sections = llvm::omp::Directive::OMPD_parallel_sections; |
| 152 | constexpr auto OMPD_parallel_workshare = llvm::omp::Directive::OMPD_parallel_workshare; |
| 153 | constexpr auto OMPD_requires = llvm::omp::Directive::OMPD_requires; |
| 154 | constexpr auto OMPD_scan = llvm::omp::Directive::OMPD_scan; |
| 155 | constexpr auto OMPD_section = llvm::omp::Directive::OMPD_section; |
| 156 | constexpr auto OMPD_sections = llvm::omp::Directive::OMPD_sections; |
| 157 | constexpr auto OMPD_simd = llvm::omp::Directive::OMPD_simd; |
| 158 | constexpr auto OMPD_single = llvm::omp::Directive::OMPD_single; |
| 159 | constexpr auto OMPD_target = llvm::omp::Directive::OMPD_target; |
| 160 | constexpr auto OMPD_target_data = llvm::omp::Directive::OMPD_target_data; |
| 161 | constexpr auto OMPD_target_enter_data = llvm::omp::Directive::OMPD_target_enter_data; |
| 162 | constexpr auto OMPD_target_exit_data = llvm::omp::Directive::OMPD_target_exit_data; |
| 163 | constexpr auto OMPD_target_parallel = llvm::omp::Directive::OMPD_target_parallel; |
| 164 | constexpr auto OMPD_target_parallel_do = llvm::omp::Directive::OMPD_target_parallel_do; |
| 165 | constexpr auto OMPD_target_parallel_do_simd = llvm::omp::Directive::OMPD_target_parallel_do_simd; |
| 166 | constexpr auto OMPD_target_parallel_for = llvm::omp::Directive::OMPD_target_parallel_for; |
| 167 | constexpr auto OMPD_target_parallel_for_simd = llvm::omp::Directive::OMPD_target_parallel_for_simd; |
| 168 | constexpr auto OMPD_target_simd = llvm::omp::Directive::OMPD_target_simd; |
| 169 | constexpr auto OMPD_target_teams = llvm::omp::Directive::OMPD_target_teams; |
| 170 | constexpr auto OMPD_target_teams_distribute = llvm::omp::Directive::OMPD_target_teams_distribute; |
| 171 | constexpr auto OMPD_target_teams_distribute_parallel_do = llvm::omp::Directive::OMPD_target_teams_distribute_parallel_do; |
| 172 | constexpr auto OMPD_target_teams_distribute_parallel_do_simd = llvm::omp::Directive::OMPD_target_teams_distribute_parallel_do_simd; |
| 173 | constexpr auto OMPD_target_teams_distribute_parallel_for = llvm::omp::Directive::OMPD_target_teams_distribute_parallel_for; |
| 174 | constexpr auto OMPD_target_teams_distribute_parallel_for_simd = llvm::omp::Directive::OMPD_target_teams_distribute_parallel_for_simd; |
| 175 | constexpr auto OMPD_target_teams_distribute_simd = llvm::omp::Directive::OMPD_target_teams_distribute_simd; |
| 176 | constexpr auto OMPD_target_update = llvm::omp::Directive::OMPD_target_update; |
| 177 | constexpr auto OMPD_task = llvm::omp::Directive::OMPD_task; |
| 178 | constexpr auto OMPD_taskgroup = llvm::omp::Directive::OMPD_taskgroup; |
| 179 | constexpr auto OMPD_taskloop = llvm::omp::Directive::OMPD_taskloop; |
| 180 | constexpr auto OMPD_taskloop_simd = llvm::omp::Directive::OMPD_taskloop_simd; |
| 181 | constexpr auto OMPD_taskwait = llvm::omp::Directive::OMPD_taskwait; |
| 182 | constexpr auto OMPD_taskyield = llvm::omp::Directive::OMPD_taskyield; |
| 183 | constexpr auto OMPD_teams = llvm::omp::Directive::OMPD_teams; |
| 184 | constexpr auto OMPD_teams_distribute = llvm::omp::Directive::OMPD_teams_distribute; |
| 185 | constexpr auto OMPD_teams_distribute_parallel_do = llvm::omp::Directive::OMPD_teams_distribute_parallel_do; |
| 186 | constexpr auto OMPD_teams_distribute_parallel_do_simd = llvm::omp::Directive::OMPD_teams_distribute_parallel_do_simd; |
| 187 | constexpr auto OMPD_teams_distribute_parallel_for = llvm::omp::Directive::OMPD_teams_distribute_parallel_for; |
| 188 | constexpr auto OMPD_teams_distribute_parallel_for_simd = llvm::omp::Directive::OMPD_teams_distribute_parallel_for_simd; |
| 189 | constexpr auto OMPD_teams_distribute_simd = llvm::omp::Directive::OMPD_teams_distribute_simd; |
| 190 | constexpr auto OMPD_threadprivate = llvm::omp::Directive::OMPD_threadprivate; |
| 191 | constexpr auto OMPD_unknown = llvm::omp::Directive::OMPD_unknown; |
| 192 | constexpr auto OMPD_workshare = llvm::omp::Directive::OMPD_workshare; |
| 193 | |
| 194 | enum 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 | |
| 274 | static constexpr std::size_t Clause_enumSize = 77; |
| 275 | |
| 276 | constexpr auto OMPC_acq_rel = llvm::omp::Clause::OMPC_acq_rel; |
| 277 | constexpr auto OMPC_acquire = llvm::omp::Clause::OMPC_acquire; |
| 278 | constexpr auto OMPC_affinity = llvm::omp::Clause::OMPC_affinity; |
| 279 | constexpr auto OMPC_aligned = llvm::omp::Clause::OMPC_aligned; |
| 280 | constexpr auto OMPC_allocate = llvm::omp::Clause::OMPC_allocate; |
| 281 | constexpr auto OMPC_allocator = llvm::omp::Clause::OMPC_allocator; |
| 282 | constexpr auto OMPC_atomic_default_mem_order = llvm::omp::Clause::OMPC_atomic_default_mem_order; |
| 283 | constexpr auto OMPC_capture = llvm::omp::Clause::OMPC_capture; |
| 284 | constexpr auto OMPC_collapse = llvm::omp::Clause::OMPC_collapse; |
| 285 | constexpr auto OMPC_copyprivate = llvm::omp::Clause::OMPC_copyprivate; |
| 286 | constexpr auto OMPC_copyin = llvm::omp::Clause::OMPC_copyin; |
| 287 | constexpr auto OMPC_default = llvm::omp::Clause::OMPC_default; |
| 288 | constexpr auto OMPC_defaultmap = llvm::omp::Clause::OMPC_defaultmap; |
| 289 | constexpr auto OMPC_depend = llvm::omp::Clause::OMPC_depend; |
| 290 | constexpr auto OMPC_depobj = llvm::omp::Clause::OMPC_depobj; |
| 291 | constexpr auto OMPC_destroy = llvm::omp::Clause::OMPC_destroy; |
| 292 | constexpr auto OMPC_detach = llvm::omp::Clause::OMPC_detach; |
| 293 | constexpr auto OMPC_device = llvm::omp::Clause::OMPC_device; |
| 294 | constexpr auto OMPC_device_type = llvm::omp::Clause::OMPC_device_type; |
| 295 | constexpr auto OMPC_dist_schedule = llvm::omp::Clause::OMPC_dist_schedule; |
| 296 | constexpr auto OMPC_dynamic_allocators = llvm::omp::Clause::OMPC_dynamic_allocators; |
| 297 | constexpr auto OMPC_exclusive = llvm::omp::Clause::OMPC_exclusive; |
| 298 | constexpr auto OMPC_final = llvm::omp::Clause::OMPC_final; |
| 299 | constexpr auto OMPC_firstprivate = llvm::omp::Clause::OMPC_firstprivate; |
| 300 | constexpr auto OMPC_flush = llvm::omp::Clause::OMPC_flush; |
| 301 | constexpr auto OMPC_from = llvm::omp::Clause::OMPC_from; |
| 302 | constexpr auto OMPC_grainsize = llvm::omp::Clause::OMPC_grainsize; |
| 303 | constexpr auto OMPC_hint = llvm::omp::Clause::OMPC_hint; |
| 304 | constexpr auto OMPC_if = llvm::omp::Clause::OMPC_if; |
| 305 | constexpr auto OMPC_in_reduction = llvm::omp::Clause::OMPC_in_reduction; |
| 306 | constexpr auto OMPC_inbranch = llvm::omp::Clause::OMPC_inbranch; |
| 307 | constexpr auto OMPC_inclusive = llvm::omp::Clause::OMPC_inclusive; |
| 308 | constexpr auto OMPC_is_device_ptr = llvm::omp::Clause::OMPC_is_device_ptr; |
| 309 | constexpr auto OMPC_lastprivate = llvm::omp::Clause::OMPC_lastprivate; |
| 310 | constexpr auto OMPC_linear = llvm::omp::Clause::OMPC_linear; |
| 311 | constexpr auto OMPC_link = llvm::omp::Clause::OMPC_link; |
| 312 | constexpr auto OMPC_map = llvm::omp::Clause::OMPC_map; |
| 313 | constexpr auto OMPC_match = llvm::omp::Clause::OMPC_match; |
| 314 | constexpr auto OMPC_mergeable = llvm::omp::Clause::OMPC_mergeable; |
| 315 | constexpr auto OMPC_nogroup = llvm::omp::Clause::OMPC_nogroup; |
| 316 | constexpr auto OMPC_nowait = llvm::omp::Clause::OMPC_nowait; |
| 317 | constexpr auto OMPC_nontemporal = llvm::omp::Clause::OMPC_nontemporal; |
| 318 | constexpr auto OMPC_notinbranch = llvm::omp::Clause::OMPC_notinbranch; |
| 319 | constexpr auto OMPC_num_tasks = llvm::omp::Clause::OMPC_num_tasks; |
| 320 | constexpr auto OMPC_num_teams = llvm::omp::Clause::OMPC_num_teams; |
| 321 | constexpr auto OMPC_num_threads = llvm::omp::Clause::OMPC_num_threads; |
| 322 | constexpr auto OMPC_order = llvm::omp::Clause::OMPC_order; |
| 323 | constexpr auto OMPC_ordered = llvm::omp::Clause::OMPC_ordered; |
| 324 | constexpr auto OMPC_priority = llvm::omp::Clause::OMPC_priority; |
| 325 | constexpr auto OMPC_private = llvm::omp::Clause::OMPC_private; |
| 326 | constexpr auto OMPC_proc_bind = llvm::omp::Clause::OMPC_proc_bind; |
| 327 | constexpr auto OMPC_read = llvm::omp::Clause::OMPC_read; |
| 328 | constexpr auto OMPC_reduction = llvm::omp::Clause::OMPC_reduction; |
| 329 | constexpr auto OMPC_relaxed = llvm::omp::Clause::OMPC_relaxed; |
| 330 | constexpr auto OMPC_release = llvm::omp::Clause::OMPC_release; |
| 331 | constexpr auto OMPC_reverse_offload = llvm::omp::Clause::OMPC_reverse_offload; |
| 332 | constexpr auto OMPC_safelen = llvm::omp::Clause::OMPC_safelen; |
| 333 | constexpr auto OMPC_schedule = llvm::omp::Clause::OMPC_schedule; |
| 334 | constexpr auto OMPC_seq_cst = llvm::omp::Clause::OMPC_seq_cst; |
| 335 | constexpr auto OMPC_shared = llvm::omp::Clause::OMPC_shared; |
| 336 | constexpr auto OMPC_simd = llvm::omp::Clause::OMPC_simd; |
| 337 | constexpr auto OMPC_simdlen = llvm::omp::Clause::OMPC_simdlen; |
| 338 | constexpr auto OMPC_task_reduction = llvm::omp::Clause::OMPC_task_reduction; |
| 339 | constexpr auto OMPC_thread_limit = llvm::omp::Clause::OMPC_thread_limit; |
| 340 | constexpr auto OMPC_threadprivate = llvm::omp::Clause::OMPC_threadprivate; |
| 341 | constexpr auto OMPC_threads = llvm::omp::Clause::OMPC_threads; |
| 342 | constexpr auto OMPC_to = llvm::omp::Clause::OMPC_to; |
| 343 | constexpr auto OMPC_unified_address = llvm::omp::Clause::OMPC_unified_address; |
| 344 | constexpr auto OMPC_unified_shared_memory = llvm::omp::Clause::OMPC_unified_shared_memory; |
| 345 | constexpr auto OMPC_uniform = llvm::omp::Clause::OMPC_uniform; |
| 346 | constexpr auto OMPC_unknown = llvm::omp::Clause::OMPC_unknown; |
| 347 | constexpr auto OMPC_untied = llvm::omp::Clause::OMPC_untied; |
| 348 | constexpr auto OMPC_update = llvm::omp::Clause::OMPC_update; |
| 349 | constexpr auto OMPC_use_device_addr = llvm::omp::Clause::OMPC_use_device_addr; |
| 350 | constexpr auto OMPC_use_device_ptr = llvm::omp::Clause::OMPC_use_device_ptr; |
| 351 | constexpr auto OMPC_uses_allocators = llvm::omp::Clause::OMPC_uses_allocators; |
| 352 | constexpr auto OMPC_write = llvm::omp::Clause::OMPC_write; |
| 353 | |
| 354 | enum class OrderKind { |
| 355 | OMP_ORDER_concurrent=2, |
| 356 | }; |
| 357 | |
| 358 | constexpr auto OMP_ORDER_concurrent = llvm::omp::OrderKind::OMP_ORDER_concurrent; |
| 359 | |
| 360 | enum 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 | |
| 368 | constexpr auto OMP_PROC_BIND_master = llvm::omp::ProcBindKind::OMP_PROC_BIND_master; |
| 369 | constexpr auto OMP_PROC_BIND_close = llvm::omp::ProcBindKind::OMP_PROC_BIND_close; |
| 370 | constexpr auto OMP_PROC_BIND_spread = llvm::omp::ProcBindKind::OMP_PROC_BIND_spread; |
| 371 | constexpr auto OMP_PROC_BIND_default = llvm::omp::ProcBindKind::OMP_PROC_BIND_default; |
| 372 | constexpr auto OMP_PROC_BIND_unknown = llvm::omp::ProcBindKind::OMP_PROC_BIND_unknown; |
| 373 | |
| 374 | enum 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 | |
| 383 | constexpr auto OMP_SCHEDULE_Static = llvm::omp::ScheduleKind::OMP_SCHEDULE_Static; |
| 384 | constexpr auto OMP_SCHEDULE_Dynamic = llvm::omp::ScheduleKind::OMP_SCHEDULE_Dynamic; |
| 385 | constexpr auto OMP_SCHEDULE_Guided = llvm::omp::ScheduleKind::OMP_SCHEDULE_Guided; |
| 386 | constexpr auto OMP_SCHEDULE_Auto = llvm::omp::ScheduleKind::OMP_SCHEDULE_Auto; |
| 387 | constexpr auto OMP_SCHEDULE_Runtime = llvm::omp::ScheduleKind::OMP_SCHEDULE_Runtime; |
| 388 | constexpr auto OMP_SCHEDULE_Default = llvm::omp::ScheduleKind::OMP_SCHEDULE_Default; |
| 389 | |
| 390 | // Enumeration helper functions |
| 391 | Directive getOpenMPDirectiveKind(llvm::StringRef Str); |
| 392 | |
| 393 | llvm::StringRef getOpenMPDirectiveName(Directive D); |
| 394 | |
| 395 | Clause getOpenMPClauseKind(llvm::StringRef Str); |
| 396 | |
| 397 | llvm::StringRef getOpenMPClauseName(Clause C); |
| 398 | |
| 399 | /// Return true if \p C is a valid clause for \p D in version \p Version. |
| 400 | bool isAllowedClauseForDirective(Directive D, Clause C, unsigned Version); |
| 401 | |
| 402 | OrderKind getOrderKind(StringRef); |
| 403 | llvm::StringRef getOpenMPOrderKindName(OrderKind); |
| 404 | ProcBindKind getProcBindKind(StringRef); |
| 405 | llvm::StringRef getOpenMPProcBindKindName(ProcBindKind); |
| 406 | ScheduleKind getScheduleKind(StringRef); |
| 407 | llvm::StringRef getOpenMPScheduleKindName(ScheduleKind); |
| 408 | |
| 409 | } // namespace omp |
| 410 | } // namespace llvm |
| 411 | #endif // LLVM_OpenMP_INC |