| 1 |
//===--- OMPKinds.def - OpenMP directives, clauses, rt-calls -*- C++ -*-===// |
| 2 |
// |
| 3 |
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 |
// See https://llvm.org/LICENSE.txt for license information. |
| 5 |
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 |
// |
| 7 |
//===----------------------------------------------------------------------===// |
| 8 |
/// \file |
| 9 |
/// |
| 10 |
/// This file defines the list of supported OpenMP runtime |
| 11 |
/// calls, and other things that need to be listed in enums. |
| 12 |
/// |
| 13 |
/// This file is under transition to OMP.td with TableGen code generation. |
| 14 |
/// |
| 15 |
//===----------------------------------------------------------------------===// |
| 16 |
|
| 17 |
/// OpenMP Directives, combined directives and Clauses |
| 18 |
/// - Moved to OMP.td |
| 19 |
|
| 20 |
/// Types used in runtime structs or runtime functions |
| 21 |
/// |
| 22 |
///{ |
| 23 |
|
| 24 |
#ifndef OMP_TYPE |
| 25 |
#define OMP_TYPE(VarName, InitValue) |
| 26 |
#endif |
| 27 |
|
| 28 |
#define __OMP_TYPE(VarName) OMP_TYPE(VarName, Type::get##VarName##Ty(Ctx)) |
| 29 |
|
| 30 |
__OMP_TYPE(Void) |
| 31 |
__OMP_TYPE(Int1) |
| 32 |
__OMP_TYPE(Int8) |
| 33 |
__OMP_TYPE(Int16) |
| 34 |
__OMP_TYPE(Int32) |
| 35 |
__OMP_TYPE(Int64) |
| 36 |
__OMP_TYPE(Int8Ptr) |
| 37 |
__OMP_TYPE(Int16Ptr) |
| 38 |
__OMP_TYPE(Int32Ptr) |
| 39 |
__OMP_TYPE(Int64Ptr) |
| 40 |
|
| 41 |
OMP_TYPE(SizeTy, M.getDataLayout().getIntPtrType(Ctx)) |
| 42 |
|
| 43 |
#define __OMP_PTR_TYPE(NAME, BASE) OMP_TYPE(NAME, BASE->getPointerTo()) |
| 44 |
|
| 45 |
__OMP_PTR_TYPE(VoidPtr, Int8) |
| 46 |
__OMP_PTR_TYPE(VoidPtrPtr, VoidPtr) |
| 47 |
__OMP_PTR_TYPE(VoidPtrPtrPtr, VoidPtrPtr) |
| 48 |
|
| 49 |
__OMP_PTR_TYPE(Int8PtrPtr, Int8Ptr) |
| 50 |
__OMP_PTR_TYPE(Int8PtrPtrPtr, Int8PtrPtr) |
| 51 |
|
| 52 |
#undef __OMP_PTR_TYPE |
| 53 |
|
| 54 |
#undef __OMP_TYPE |
| 55 |
#undef OMP_TYPE |
| 56 |
|
| 57 |
///} |
| 58 |
|
| 59 |
/// array types |
| 60 |
/// |
| 61 |
///{ |
| 62 |
|
| 63 |
#ifndef OMP_ARRAY_TYPE |
| 64 |
#define OMP_ARRAY_TYPE(VarName, ElemTy, ArraySize) |
| 65 |
#endif |
| 66 |
|
| 67 |
#define __OMP_ARRAY_TYPE(VarName, ElemTy, ArraySize) \ |
| 68 |
OMP_ARRAY_TYPE(VarName, ElemTy, ArraySize) |
| 69 |
|
| 70 |
__OMP_ARRAY_TYPE(KmpCriticalName, Int32, 8) |
| 71 |
|
| 72 |
#undef __OMP_ARRAY_TYPE |
| 73 |
#undef OMP_ARRAY_TYPE |
| 74 |
|
| 75 |
///} |
| 76 |
|
| 77 |
/// Struct and function types |
| 78 |
/// |
| 79 |
///{ |
| 80 |
|
| 81 |
#ifndef OMP_STRUCT_TYPE |
| 82 |
#define OMP_STRUCT_TYPE(VarName, StructName, ...) |
| 83 |
#endif |
| 84 |
|
| 85 |
#define __OMP_STRUCT_TYPE(VarName, Name, ...) \ |
| 86 |
OMP_STRUCT_TYPE(VarName, "struct." #Name, __VA_ARGS__) |
| 87 |
|
| 88 |
__OMP_STRUCT_TYPE(Ident, ident_t, Int32, Int32, Int32, Int32, Int8Ptr) |
| 89 |
__OMP_STRUCT_TYPE(AsyncInfo, __tgt_async_info, Int8Ptr) |
| 90 |
|
| 91 |
#undef __OMP_STRUCT_TYPE |
| 92 |
#undef OMP_STRUCT_TYPE |
| 93 |
|
| 94 |
#ifndef OMP_FUNCTION_TYPE |
| 95 |
#define OMP_FUNCTION_TYPE(VarName, IsVarArg, ReturnType, ...) |
| 96 |
#endif |
| 97 |
|
| 98 |
#define __OMP_FUNCTION_TYPE(VarName, IsVarArg, ReturnType, ...) \ |
| 99 |
OMP_FUNCTION_TYPE(VarName, IsVarArg, ReturnType, __VA_ARGS__) |
| 100 |
|
| 101 |
__OMP_FUNCTION_TYPE(ParallelTask, true, Void, Int32Ptr, Int32Ptr) |
| 102 |
__OMP_FUNCTION_TYPE(ReduceFunction, false, Void, VoidPtr, VoidPtr) |
| 103 |
__OMP_FUNCTION_TYPE(CopyFunction, false, Void, VoidPtr, VoidPtr) |
| 104 |
__OMP_FUNCTION_TYPE(KmpcCtor, false, VoidPtr, VoidPtr) |
| 105 |
__OMP_FUNCTION_TYPE(KmpcDtor, false, Void, VoidPtr) |
| 106 |
__OMP_FUNCTION_TYPE(KmpcCopyCtor, false, VoidPtr, VoidPtr, VoidPtr) |
| 107 |
__OMP_FUNCTION_TYPE(TaskRoutineEntry, false, Int32, Int32, |
| 108 |
/* kmp_task_t */ VoidPtr) |
| 109 |
__OMP_FUNCTION_TYPE(ShuffleReduce, false, Void, VoidPtr, Int16, Int16, Int16) |
| 110 |
__OMP_FUNCTION_TYPE(InterWarpCopy, false, Void, VoidPtr, Int32) |
| 111 |
__OMP_FUNCTION_TYPE(GlobalList, false, Void, VoidPtr, Int32, VoidPtr) |
| 112 |
|
| 113 |
#undef __OMP_FUNCTION_TYPE |
| 114 |
#undef OMP_FUNCTION_TYPE |
| 115 |
|
| 116 |
///} |
| 117 |
|
| 118 |
/// Internal Control Variables information |
| 119 |
/// |
| 120 |
///{ |
| 121 |
|
| 122 |
#ifndef ICV_INIT_VALUE |
| 123 |
#define ICV_INIT_VALUE(Enum, Name) |
| 124 |
#endif |
| 125 |
|
| 126 |
#define __ICV_INIT_VALUE(Name) ICV_INIT_VALUE(ICV_##Name, #Name) |
| 127 |
|
| 128 |
__ICV_INIT_VALUE(ZERO) |
| 129 |
__ICV_INIT_VALUE(FALSE) |
| 130 |
__ICV_INIT_VALUE(IMPLEMENTATION_DEFINED) |
| 131 |
__ICV_INIT_VALUE(LAST) |
| 132 |
|
| 133 |
#undef __ICV_INIT_VALUE |
| 134 |
#undef ICV_INIT_VALUE |
| 135 |
|
| 136 |
#ifndef ICV_DATA_ENV |
| 137 |
#define ICV_DATA_ENV(Enum, Name, EnvVarName, Init) |
| 138 |
#endif |
| 139 |
|
| 140 |
#define __ICV_DATA_ENV(Name, EnvVarName, Init) \ |
| 141 |
ICV_DATA_ENV(ICV_##Name, #Name, #EnvVarName, Init) |
| 142 |
|
| 143 |
__ICV_DATA_ENV(nthreads, OMP_NUM_THREADS, ICV_IMPLEMENTATION_DEFINED) |
| 144 |
__ICV_DATA_ENV(active_levels, NONE, ICV_ZERO) |
| 145 |
__ICV_DATA_ENV(cancel, OMP_CANCELLATION, ICV_FALSE) |
| 146 |
__ICV_DATA_ENV(proc_bind, OMP_PROC_BIND, ICV_IMPLEMENTATION_DEFINED) |
| 147 |
__ICV_DATA_ENV(__last, last, ICV_LAST) |
| 148 |
|
| 149 |
#undef __ICV_DATA_ENV |
| 150 |
#undef ICV_DATA_ENV |
| 151 |
|
| 152 |
#ifndef ICV_RT_SET |
| 153 |
#define ICV_RT_SET(Name, RTL) |
| 154 |
#endif |
| 155 |
|
| 156 |
#define __ICV_RT_SET(Name, RTL) ICV_RT_SET(ICV_##Name, OMPRTL_##RTL) |
| 157 |
|
| 158 |
__ICV_RT_SET(nthreads, omp_set_num_threads) |
| 159 |
|
| 160 |
#undef __ICV_RT_SET |
| 161 |
#undef ICV_RT_SET |
| 162 |
|
| 163 |
#ifndef ICV_RT_GET |
| 164 |
#define ICV_RT_GET(Name, RTL) |
| 165 |
#endif |
| 166 |
|
| 167 |
#define __ICV_RT_GET(Name, RTL) ICV_RT_GET(ICV_##Name, OMPRTL_##RTL) |
| 168 |
|
| 169 |
__ICV_RT_GET(nthreads, omp_get_max_threads) |
| 170 |
__ICV_RT_GET(active_levels, omp_get_active_level) |
| 171 |
__ICV_RT_GET(cancel, omp_get_cancellation) |
| 172 |
__ICV_RT_GET(proc_bind, omp_get_proc_bind) |
| 173 |
|
| 174 |
#undef __ICV_RT_GET |
| 175 |
#undef ICV_RT_GET |
| 176 |
|
| 177 |
///} |
| 178 |
|
| 179 |
/// Runtime library function (and their attributes) |
| 180 |
/// |
| 181 |
///{ |
| 182 |
|
| 183 |
#ifndef OMP_RTL |
| 184 |
#define OMP_RTL(Enum, Str, IsVarArg, ReturnType, ...) |
| 185 |
#endif |
| 186 |
|
| 187 |
#define __OMP_RTL(Name, IsVarArg, ReturnType, ...) \ |
| 188 |
OMP_RTL(OMPRTL_##Name, #Name, IsVarArg, ReturnType, __VA_ARGS__) |
| 189 |
|
| 190 |
|
| 191 |
|
| 192 |
__OMP_RTL(__kmpc_barrier, false, Void, IdentPtr, Int32) |
| 193 |
__OMP_RTL(__kmpc_cancel, false, Int32, IdentPtr, Int32, Int32) |
| 194 |
__OMP_RTL(__kmpc_cancel_barrier, false, Int32, IdentPtr, Int32) |
| 195 |
__OMP_RTL(__kmpc_flush, false, Void, IdentPtr) |
| 196 |
__OMP_RTL(__kmpc_global_thread_num, false, Int32, IdentPtr) |
| 197 |
__OMP_RTL(__kmpc_get_hardware_thread_id_in_block, false, Int32, ) |
| 198 |
__OMP_RTL(__kmpc_fork_call, true, Void, IdentPtr, Int32, ParallelTaskPtr) |
| 199 |
__OMP_RTL(__kmpc_omp_taskwait, false, Int32, IdentPtr, Int32) |
| 200 |
__OMP_RTL(__kmpc_omp_taskyield, false, Int32, IdentPtr, Int32, /* Int */ Int32) |
| 201 |
__OMP_RTL(__kmpc_push_num_threads, false, Void, IdentPtr, Int32, |
| 202 |
/* Int */ Int32) |
| 203 |
__OMP_RTL(__kmpc_push_proc_bind, false, Void, IdentPtr, Int32, /* Int */ Int32) |
| 204 |
__OMP_RTL(__kmpc_omp_reg_task_with_affinity, false, Int32, IdentPtr, Int32, |
| 205 |
/* kmp_task_t */ VoidPtr, Int32, |
| 206 |
/* kmp_task_affinity_info_t */ VoidPtr) |
| 207 |
|
| 208 |
__OMP_RTL(__kmpc_get_hardware_num_blocks, false, Int32, ) |
| 209 |
__OMP_RTL(__kmpc_get_hardware_num_threads_in_block, false, Int32, ) |
| 210 |
__OMP_RTL(__kmpc_get_warp_size, false, Int32, ) |
| 211 |
|
| 212 |
__OMP_RTL(omp_get_thread_num, false, Int32, ) |
| 213 |
__OMP_RTL(omp_get_num_threads, false, Int32, ) |
| 214 |
__OMP_RTL(omp_get_max_threads, false, Int32, ) |
| 215 |
__OMP_RTL(omp_in_parallel, false, Int32, ) |
| 216 |
__OMP_RTL(omp_get_dynamic, false, Int32, ) |
| 217 |
__OMP_RTL(omp_get_cancellation, false, Int32, ) |
| 218 |
__OMP_RTL(omp_get_nested, false, Int32, ) |
| 219 |
__OMP_RTL(omp_get_schedule, false, Void, Int32Ptr, Int32Ptr) |
| 220 |
__OMP_RTL(omp_get_thread_limit, false, Int32, ) |
| 221 |
__OMP_RTL(omp_get_supported_active_levels, false, Int32, ) |
| 222 |
__OMP_RTL(omp_get_max_active_levels, false, Int32, ) |
| 223 |
__OMP_RTL(omp_get_level, false, Int32, ) |
| 224 |
__OMP_RTL(omp_get_ancestor_thread_num, false, Int32, Int32) |
| 225 |
__OMP_RTL(omp_get_team_size, false, Int32, Int32) |
| 226 |
__OMP_RTL(omp_get_active_level, false, Int32, ) |
| 227 |
__OMP_RTL(omp_in_final, false, Int32, ) |
| 228 |
__OMP_RTL(omp_get_proc_bind, false, Int32, ) |
| 229 |
__OMP_RTL(omp_get_num_places, false, Int32, ) |
| 230 |
__OMP_RTL(omp_get_num_procs, false, Int32, ) |
| 231 |
__OMP_RTL(omp_get_place_proc_ids, false, Void, Int32, Int32Ptr) |
| 232 |
__OMP_RTL(omp_get_place_num, false, Int32, ) |
| 233 |
__OMP_RTL(omp_get_partition_num_places, false, Int32, ) |
| 234 |
__OMP_RTL(omp_get_partition_place_nums, false, Void, Int32Ptr) |
| 235 |
|
| 236 |
__OMP_RTL(omp_set_num_threads, false, Void, Int32) |
| 237 |
__OMP_RTL(omp_set_dynamic, false, Void, Int32) |
| 238 |
__OMP_RTL(omp_set_nested, false, Void, Int32) |
| 239 |
__OMP_RTL(omp_set_schedule, false, Void, Int32, Int32) |
| 240 |
__OMP_RTL(omp_set_max_active_levels, false, Void, Int32) |
| 241 |
|
| 242 |
__OMP_RTL(__kmpc_master, false, Int32, IdentPtr, Int32) |
| 243 |
__OMP_RTL(__kmpc_end_master, false, Void, IdentPtr, Int32) |
| 244 |
__OMP_RTL(__kmpc_masked, false, Int32, IdentPtr, Int32, Int32) |
| 245 |
__OMP_RTL(__kmpc_end_masked, false, Void, IdentPtr, Int32) |
| 246 |
__OMP_RTL(__kmpc_critical, false, Void, IdentPtr, Int32, KmpCriticalNamePtrTy) |
| 247 |
__OMP_RTL(__kmpc_critical_with_hint, false, Void, IdentPtr, Int32, |
| 248 |
KmpCriticalNamePtrTy, Int32) |
| 249 |
__OMP_RTL(__kmpc_end_critical, false, Void, IdentPtr, Int32, |
| 250 |
KmpCriticalNamePtrTy) |
| 251 |
|
| 252 |
__OMP_RTL(__kmpc_begin, false, Void, IdentPtr, Int32) |
| 253 |
__OMP_RTL(__kmpc_end, false, Void, IdentPtr) |
| 254 |
|
| 255 |
__OMP_RTL(__kmpc_reduce, false, Int32, IdentPtr, Int32, Int32, SizeTy, VoidPtr, |
| 256 |
ReduceFunctionPtr, KmpCriticalNamePtrTy) |
| 257 |
__OMP_RTL(__kmpc_reduce_nowait, false, Int32, IdentPtr, Int32, Int32, SizeTy, |
| 258 |
VoidPtr, ReduceFunctionPtr, KmpCriticalNamePtrTy) |
| 259 |
__OMP_RTL(__kmpc_end_reduce, false, Void, IdentPtr, Int32, KmpCriticalNamePtrTy) |
| 260 |
__OMP_RTL(__kmpc_end_reduce_nowait, false, Void, IdentPtr, Int32, |
| 261 |
KmpCriticalNamePtrTy) |
| 262 |
|
| 263 |
__OMP_RTL(__kmpc_ordered, false, Void, IdentPtr, Int32) |
| 264 |
__OMP_RTL(__kmpc_end_ordered, false, Void, IdentPtr, Int32) |
| 265 |
|
| 266 |
__OMP_RTL(__kmpc_for_static_init_4, false, Void, IdentPtr, Int32, Int32, |
| 267 |
Int32Ptr, Int32Ptr, Int32Ptr, Int32Ptr, Int32, Int32) |
| 268 |
__OMP_RTL(__kmpc_for_static_init_4u, false, Void, IdentPtr, Int32, Int32, |
| 269 |
Int32Ptr, Int32Ptr, Int32Ptr, Int32Ptr, Int32, Int32) |
| 270 |
__OMP_RTL(__kmpc_for_static_init_8, false, Void, IdentPtr, Int32, Int32, |
| 271 |
Int32Ptr, Int64Ptr, Int64Ptr, Int64Ptr, Int64, Int64) |
| 272 |
__OMP_RTL(__kmpc_for_static_init_8u, false, Void, IdentPtr, Int32, Int32, |
| 273 |
Int32Ptr, Int64Ptr, Int64Ptr, Int64Ptr, Int64, Int64) |
| 274 |
__OMP_RTL(__kmpc_for_static_fini, false, Void, IdentPtr, Int32) |
| 275 |
__OMP_RTL(__kmpc_distribute_static_init_4, false, Void, IdentPtr, Int32, Int32, |
| 276 |
Int32Ptr, Int32Ptr, Int32Ptr, Int32Ptr, Int32, Int32) |
| 277 |
__OMP_RTL(__kmpc_distribute_static_init_4u, false, Void, IdentPtr, Int32, Int32, |
| 278 |
Int32Ptr, Int32Ptr, Int32Ptr, Int32Ptr, Int32, Int32) |
| 279 |
__OMP_RTL(__kmpc_distribute_static_init_8, false, Void, IdentPtr, Int32, Int32, |
| 280 |
Int32Ptr, Int64Ptr, Int64Ptr, Int64Ptr, Int64, Int64) |
| 281 |
__OMP_RTL(__kmpc_distribute_static_init_8u, false, Void, IdentPtr, Int32, Int32, |
| 282 |
Int32Ptr, Int64Ptr, Int64Ptr, Int64Ptr, Int64, Int64) |
| 283 |
__OMP_RTL(__kmpc_distribute_static_fini, false, Void, IdentPtr, Int32) |
| 284 |
__OMP_RTL(__kmpc_dist_dispatch_init_4, false, Void, IdentPtr, Int32, Int32, |
| 285 |
Int32Ptr, Int32, Int32, Int32, Int32) |
| 286 |
__OMP_RTL(__kmpc_dist_dispatch_init_4u, false, Void, IdentPtr, Int32, Int32, |
| 287 |
Int32Ptr, Int32, Int32, Int32, Int32) |
| 288 |
__OMP_RTL(__kmpc_dist_dispatch_init_8, false, Void, IdentPtr, Int32, Int32, |
| 289 |
Int32Ptr, Int64, Int64, Int64, Int64) |
| 290 |
__OMP_RTL(__kmpc_dist_dispatch_init_8u, false, Void, IdentPtr, Int32, Int32, |
| 291 |
Int32Ptr, Int64, Int64, Int64, Int64) |
| 292 |
__OMP_RTL(__kmpc_dispatch_init_4, false, Void, IdentPtr, Int32, Int32, Int32, |
| 293 |
Int32, Int32, Int32) |
| 294 |
__OMP_RTL(__kmpc_dispatch_init_4u, false, Void, IdentPtr, Int32, Int32, Int32, |
| 295 |
Int32, Int32, Int32) |
| 296 |
__OMP_RTL(__kmpc_dispatch_init_8, false, Void, IdentPtr, Int32, Int32, Int64, |
| 297 |
Int64, Int64, Int64) |
| 298 |
__OMP_RTL(__kmpc_dispatch_init_8u, false, Void, IdentPtr, Int32, Int32, Int64, |
| 299 |
Int64, Int64, Int64) |
| 300 |
__OMP_RTL(__kmpc_dispatch_next_4, false, Int32, IdentPtr, Int32, Int32Ptr, |
| 301 |
Int32Ptr, Int32Ptr, Int32Ptr) |
| 302 |
__OMP_RTL(__kmpc_dispatch_next_4u, false, Int32, IdentPtr, Int32, Int32Ptr, |
| 303 |
Int32Ptr, Int32Ptr, Int32Ptr) |
| 304 |
__OMP_RTL(__kmpc_dispatch_next_8, false, Int32, IdentPtr, Int32, Int32Ptr, |
| 305 |
Int64Ptr, Int64Ptr, Int64Ptr) |
| 306 |
__OMP_RTL(__kmpc_dispatch_next_8u, false, Int32, IdentPtr, Int32, Int32Ptr, |
| 307 |
Int64Ptr, Int64Ptr, Int64Ptr) |
| 308 |
__OMP_RTL(__kmpc_dispatch_fini_4, false, Void, IdentPtr, Int32) |
| 309 |
__OMP_RTL(__kmpc_dispatch_fini_4u, false, Void, IdentPtr, Int32) |
| 310 |
__OMP_RTL(__kmpc_dispatch_fini_8, false, Void, IdentPtr, Int32) |
| 311 |
__OMP_RTL(__kmpc_dispatch_fini_8u, false, Void, IdentPtr, Int32) |
| 312 |
__OMP_RTL(__kmpc_team_static_init_4, false, Void, IdentPtr, Int32, Int32Ptr, |
| 313 |
Int32Ptr, Int32Ptr, Int32Ptr, Int32, Int32) |
| 314 |
__OMP_RTL(__kmpc_team_static_init_4u, false, Void, IdentPtr, Int32, Int32Ptr, |
| 315 |
Int32Ptr, Int32Ptr, Int32Ptr, Int32, Int32) |
| 316 |
__OMP_RTL(__kmpc_team_static_init_8, false, Void, IdentPtr, Int32, Int32Ptr, |
| 317 |
Int64Ptr, Int64Ptr, Int64Ptr, Int64, Int64) |
| 318 |
__OMP_RTL(__kmpc_team_static_init_8u, false, Void, IdentPtr, Int32, Int32Ptr, |
| 319 |
Int64Ptr, Int64Ptr, Int64Ptr, Int64, Int64) |
| 320 |
__OMP_RTL(__kmpc_dist_for_static_init_4, false, Void, IdentPtr, Int32, Int32, |
| 321 |
Int32Ptr, Int32Ptr, Int32Ptr, Int32Ptr, Int32Ptr, Int32, Int32) |
| 322 |
__OMP_RTL(__kmpc_dist_for_static_init_4u, false, Void, IdentPtr, Int32, Int32, |
| 323 |
Int32Ptr, Int32Ptr, Int32Ptr, Int32Ptr, Int32Ptr, Int32, Int32) |
| 324 |
__OMP_RTL(__kmpc_dist_for_static_init_8, false, Void, IdentPtr, Int32, Int32, |
| 325 |
Int32Ptr, Int64Ptr, Int64Ptr, Int64Ptr, Int64Ptr, Int64, Int64) |
| 326 |
__OMP_RTL(__kmpc_dist_for_static_init_8u, false, Void, IdentPtr, Int32, Int32, |
| 327 |
Int32Ptr, Int64Ptr, Int64Ptr, Int64Ptr, Int64Ptr, Int64, Int64) |
| 328 |
|
| 329 |
__OMP_RTL(__kmpc_single, false, Int32, IdentPtr, Int32) |
| 330 |
__OMP_RTL(__kmpc_end_single, false, Void, IdentPtr, Int32) |
| 331 |
|
| 332 |
__OMP_RTL(__kmpc_omp_task_alloc, false, /* kmp_task_t */ VoidPtr, IdentPtr, |
| 333 |
Int32, Int32, SizeTy, SizeTy, TaskRoutineEntryPtr) |
| 334 |
__OMP_RTL(__kmpc_omp_task, false, Int32, IdentPtr, Int32, |
| 335 |
/* kmp_task_t */ VoidPtr) |
| 336 |
__OMP_RTL(__kmpc_end_taskgroup, false, Void, IdentPtr, Int32) |
| 337 |
__OMP_RTL(__kmpc_taskgroup, false, Void, IdentPtr, Int32) |
| 338 |
__OMP_RTL(__kmpc_omp_task_begin_if0, false, Void, IdentPtr, Int32, |
| 339 |
/* kmp_task_t */ VoidPtr) |
| 340 |
__OMP_RTL(__kmpc_omp_task_complete_if0, false, Void, IdentPtr, Int32, |
| 341 |
/* kmp_tasK_t */ VoidPtr) |
| 342 |
__OMP_RTL(__kmpc_omp_task_with_deps, false, Int32, IdentPtr, Int32, |
| 343 |
/* kmp_task_t */ VoidPtr, Int32, |
| 344 |
/* kmp_depend_info_t */ VoidPtr, Int32, |
| 345 |
/* kmp_depend_info_t */ VoidPtr) |
| 346 |
__OMP_RTL(__kmpc_taskloop, false, Void, IdentPtr, /* Int */ Int32, VoidPtr, |
| 347 |
/* Int */ Int32, Int64Ptr, Int64Ptr, Int64, /* Int */ Int32, |
| 348 |
/* Int */ Int32, Int64, VoidPtr) |
| 349 |
__OMP_RTL(__kmpc_omp_target_task_alloc, false, /* kmp_task_t */ VoidPtr, |
| 350 |
IdentPtr, Int32, Int32, SizeTy, SizeTy, TaskRoutineEntryPtr, Int64) |
| 351 |
__OMP_RTL(__kmpc_taskred_modifier_init, false, /* kmp_taskgroup */ VoidPtr, |
| 352 |
IdentPtr, /* Int */ Int32, /* Int */ Int32, /* Int */ Int32, VoidPtr) |
| 353 |
__OMP_RTL(__kmpc_taskred_init, false, /* kmp_taskgroup */ VoidPtr, |
| 354 |
/* Int */ Int32, /* Int */ Int32, VoidPtr) |
| 355 |
__OMP_RTL(__kmpc_task_reduction_modifier_fini, false, Void, IdentPtr, |
| 356 |
/* Int */ Int32, /* Int */ Int32) |
| 357 |
__OMP_RTL(__kmpc_task_reduction_get_th_data, false, VoidPtr, Int32, VoidPtr, |
| 358 |
VoidPtr) |
| 359 |
__OMP_RTL(__kmpc_task_reduction_init, false, VoidPtr, Int32, Int32, VoidPtr) |
| 360 |
__OMP_RTL(__kmpc_task_reduction_modifier_init, false, VoidPtr, VoidPtr, Int32, |
| 361 |
Int32, Int32, VoidPtr) |
| 362 |
__OMP_RTL(__kmpc_proxy_task_completed_ooo, false, Void, VoidPtr) |
| 363 |
|
| 364 |
__OMP_RTL(__kmpc_omp_wait_deps, false, Void, IdentPtr, Int32, Int32, |
| 365 |
/* kmp_depend_info_t */ VoidPtr, Int32, VoidPtr) |
| 366 |
__OMP_RTL(__kmpc_cancellationpoint, false, Int32, IdentPtr, Int32, Int32) |
| 367 |
|
| 368 |
__OMP_RTL(__kmpc_fork_teams, true, Void, IdentPtr, Int32, ParallelTaskPtr) |
| 369 |
__OMP_RTL(__kmpc_push_num_teams, false, Void, IdentPtr, Int32, Int32, Int32) |
| 370 |
|
| 371 |
__OMP_RTL(__kmpc_copyprivate, false, Void, IdentPtr, Int32, SizeTy, VoidPtr, |
| 372 |
CopyFunctionPtr, Int32) |
| 373 |
__OMP_RTL(__kmpc_threadprivate_cached, false, VoidPtr, IdentPtr, Int32, VoidPtr, |
| 374 |
SizeTy, VoidPtrPtrPtr) |
| 375 |
__OMP_RTL(__kmpc_threadprivate_register, false, Void, IdentPtr, VoidPtr, |
| 376 |
KmpcCtorPtr, KmpcCopyCtorPtr, KmpcDtorPtr) |
| 377 |
|
| 378 |
__OMP_RTL(__kmpc_doacross_init, false, Void, IdentPtr, Int32, Int32, |
| 379 |
/* kmp_dim */ VoidPtr) |
| 380 |
__OMP_RTL(__kmpc_doacross_post, false, Void, IdentPtr, Int32, Int64Ptr) |
| 381 |
__OMP_RTL(__kmpc_doacross_wait, false, Void, IdentPtr, Int32, Int64Ptr) |
| 382 |
__OMP_RTL(__kmpc_doacross_fini, false, Void, IdentPtr, Int32) |
| 383 |
|
| 384 |
__OMP_RTL(__kmpc_alloc, false, VoidPtr, /* Int */ Int32, SizeTy, VoidPtr) |
| 385 |
__OMP_RTL(__kmpc_aligned_alloc, false, VoidPtr, /* Int */ Int32, SizeTy, SizeTy, |
| 386 |
VoidPtr) |
| 387 |
__OMP_RTL(__kmpc_free, false, Void, /* Int */ Int32, VoidPtr, VoidPtr) |
| 388 |
|
| 389 |
__OMP_RTL(__tgt_interop_init, false, Void, IdentPtr, Int32, VoidPtrPtr, Int64, |
| 390 |
Int32, Int32, VoidPtr, Int32) |
| 391 |
__OMP_RTL(__tgt_interop_destroy, false, Void, IdentPtr, Int32, VoidPtrPtr, |
| 392 |
Int32, Int32, VoidPtr, Int32) |
| 393 |
__OMP_RTL(__tgt_interop_use, false, Void, IdentPtr, Int32, VoidPtrPtr, Int32, |
| 394 |
Int32, VoidPtr, Int32) |
| 395 |
|
| 396 |
__OMP_RTL(__kmpc_init_allocator, false, /* omp_allocator_handle_t */ VoidPtr, |
| 397 |
/* Int */ Int32, /* omp_memespace_handle_t */ VoidPtr, |
| 398 |
/* Int */ Int32, /* omp_alloctrait_t */ VoidPtr) |
| 399 |
__OMP_RTL(__kmpc_destroy_allocator, false, Void, /* Int */ Int32, |
| 400 |
/* omp_allocator_handle_t */ VoidPtr) |
| 401 |
|
| 402 |
__OMP_RTL(__kmpc_push_target_tripcount_mapper, false, Void, IdentPtr, Int64, Int64) |
| 403 |
__OMP_RTL(__tgt_target_mapper, false, Int32, IdentPtr, Int64, VoidPtr, Int32, VoidPtrPtr, |
| 404 |
VoidPtrPtr, Int64Ptr, Int64Ptr, VoidPtrPtr, VoidPtrPtr) |
| 405 |
__OMP_RTL(__tgt_target_nowait_mapper, false, Int32, IdentPtr, Int64, VoidPtr, |
| 406 |
Int32, VoidPtrPtr, VoidPtrPtr, Int64Ptr, Int64Ptr, VoidPtrPtr, |
| 407 |
VoidPtrPtr, Int32, VoidPtr, Int32, VoidPtr) |
| 408 |
__OMP_RTL(__tgt_target_teams_mapper, false, Int32, IdentPtr, Int64, VoidPtr, Int32, |
| 409 |
VoidPtrPtr, VoidPtrPtr, Int64Ptr, Int64Ptr, VoidPtrPtr, VoidPtrPtr, Int32, Int32) |
| 410 |
__OMP_RTL(__tgt_target_teams_nowait_mapper, false, Int32, IdentPtr, Int64, |
| 411 |
VoidPtr, Int32, VoidPtrPtr, VoidPtrPtr, Int64Ptr, Int64Ptr, |
| 412 |
VoidPtrPtr, VoidPtrPtr, Int32, Int32, Int32, VoidPtr, Int32, VoidPtr) |
| 413 |
__OMP_RTL(__tgt_register_requires, false, Void, Int64) |
| 414 |
__OMP_RTL(__tgt_target_data_begin_mapper, false, Void, IdentPtr, Int64, Int32, VoidPtrPtr, |
| 415 |
VoidPtrPtr, Int64Ptr, Int64Ptr, VoidPtrPtr, VoidPtrPtr) |
| 416 |
__OMP_RTL(__tgt_target_data_begin_nowait_mapper, false, Void, IdentPtr, Int64, Int32, |
| 417 |
VoidPtrPtr, VoidPtrPtr, Int64Ptr, Int64Ptr, VoidPtrPtr, VoidPtrPtr) |
| 418 |
__OMP_RTL(__tgt_target_data_begin_mapper_issue, false, Void, IdentPtr, Int64, Int32, |
| 419 |
VoidPtrPtr, VoidPtrPtr, Int64Ptr, Int64Ptr, VoidPtrPtr, VoidPtrPtr, AsyncInfoPtr) |
| 420 |
__OMP_RTL(__tgt_target_data_begin_mapper_wait, false, Void, Int64, AsyncInfoPtr) |
| 421 |
__OMP_RTL(__tgt_target_data_end_mapper, false, Void, IdentPtr, Int64, Int32, VoidPtrPtr, |
| 422 |
VoidPtrPtr, Int64Ptr, Int64Ptr, VoidPtrPtr, VoidPtrPtr) |
| 423 |
__OMP_RTL(__tgt_target_data_end_nowait_mapper, false, Void, IdentPtr, Int64, Int32, |
| 424 |
VoidPtrPtr, VoidPtrPtr, Int64Ptr, Int64Ptr, VoidPtrPtr, VoidPtrPtr) |
| 425 |
__OMP_RTL(__tgt_target_data_update_mapper, false, Void, IdentPtr, Int64, Int32, |
| 426 |
VoidPtrPtr, VoidPtrPtr, Int64Ptr, Int64Ptr, VoidPtrPtr, VoidPtrPtr) |
| 427 |
__OMP_RTL(__tgt_target_data_update_nowait_mapper, false, Void, IdentPtr, Int64, Int32, |
| 428 |
VoidPtrPtr, VoidPtrPtr, Int64Ptr, Int64Ptr, VoidPtrPtr, VoidPtrPtr) |
| 429 |
__OMP_RTL(__tgt_mapper_num_components, false, Int64, VoidPtr) |
| 430 |
__OMP_RTL(__tgt_push_mapper_component, false, Void, VoidPtr, VoidPtr, VoidPtr, |
| 431 |
Int64, Int64, VoidPtr) |
| 432 |
__OMP_RTL(__kmpc_task_allow_completion_event, false, VoidPtr, IdentPtr, |
| 433 |
/* Int */ Int32, /* kmp_task_t */ VoidPtr) |
| 434 |
|
| 435 |
/// OpenMP Device runtime functions |
| 436 |
__OMP_RTL(__kmpc_target_init, false, Int32, IdentPtr, Int8, Int1, Int1) |
| 437 |
__OMP_RTL(__kmpc_target_deinit, false, Void, IdentPtr, Int8, Int1) |
| 438 |
__OMP_RTL(__kmpc_kernel_prepare_parallel, false, Void, VoidPtr) |
| 439 |
__OMP_RTL(__kmpc_parallel_51, false, Void, IdentPtr, Int32, Int32, Int32, Int32, |
| 440 |
VoidPtr, VoidPtr, VoidPtrPtr, SizeTy) |
| 441 |
__OMP_RTL(__kmpc_kernel_parallel, false, Int1, VoidPtrPtr) |
| 442 |
__OMP_RTL(__kmpc_kernel_end_parallel, false, Void, ) |
| 443 |
__OMP_RTL(__kmpc_serialized_parallel, false, Void, IdentPtr, Int32) |
| 444 |
__OMP_RTL(__kmpc_end_serialized_parallel, false, Void, IdentPtr, Int32) |
| 445 |
__OMP_RTL(__kmpc_shuffle_int32, false, Int32, Int32, Int16, Int16) |
| 446 |
__OMP_RTL(__kmpc_nvptx_parallel_reduce_nowait_v2, false, Int32, IdentPtr, Int32, |
| 447 |
Int32, SizeTy, VoidPtr, ShuffleReducePtr, InterWarpCopyPtr) |
| 448 |
__OMP_RTL(__kmpc_nvptx_end_reduce_nowait, false, Void, Int32) |
| 449 |
__OMP_RTL(__kmpc_nvptx_teams_reduce_nowait_v2, false, Int32, IdentPtr, Int32, |
| 450 |
VoidPtr, Int32, VoidPtr, ShuffleReducePtr, InterWarpCopyPtr, |
| 451 |
GlobalListPtr, GlobalListPtr, GlobalListPtr, GlobalListPtr) |
| 452 |
|
| 453 |
__OMP_RTL(__kmpc_shuffle_int64, false, Int64, Int64, Int16, Int16) |
| 454 |
|
| 455 |
__OMP_RTL(__kmpc_alloc_shared, false, VoidPtr, SizeTy) |
| 456 |
__OMP_RTL(__kmpc_free_shared, false, Void, VoidPtr, SizeTy) |
| 457 |
__OMP_RTL(__kmpc_begin_sharing_variables, false, Void, VoidPtrPtrPtr, SizeTy) |
| 458 |
__OMP_RTL(__kmpc_end_sharing_variables, false, Void, ) |
| 459 |
__OMP_RTL(__kmpc_get_shared_variables, false, Void, VoidPtrPtrPtr) |
| 460 |
__OMP_RTL(__kmpc_parallel_level, false, Int8, ) |
| 461 |
__OMP_RTL(__kmpc_is_spmd_exec_mode, false, Int8, ) |
| 462 |
__OMP_RTL(__kmpc_barrier_simple_spmd, false, Void, IdentPtr, Int32) |
| 463 |
__OMP_RTL(__kmpc_barrier_simple_generic, false, Void, IdentPtr, Int32) |
| 464 |
|
| 465 |
__OMP_RTL(__kmpc_warp_active_thread_mask, false, Int64,) |
| 466 |
__OMP_RTL(__kmpc_syncwarp, false, Void, Int64) |
| 467 |
|
| 468 |
__OMP_RTL(__kmpc_is_generic_main_thread_id, false, Int8, Int32) |
| 469 |
|
| 470 |
__OMP_RTL(__last, false, Void, ) |
| 471 |
|
| 472 |
#undef __OMP_RTL |
| 473 |
#undef OMP_RTL |
| 474 |
|
| 475 |
#define ParamAttrs(...) ArrayRef<AttributeSet>({__VA_ARGS__}) |
| 476 |
#define EnumAttr(Kind) Attribute::get(Ctx, Attribute::AttrKind::Kind) |
| 477 |
#define EnumAttrInt(Kind, N) Attribute::get(Ctx, Attribute::AttrKind::Kind, N) |
| 478 |
#define AttributeSet(...) \ |
| 479 |
AttributeSet::get(Ctx, ArrayRef<Attribute>({__VA_ARGS__})) |
| 480 |
|
| 481 |
#ifndef OMP_ATTRS_SET |
| 482 |
#define OMP_ATTRS_SET(VarName, AttrSet) |
| 483 |
#endif |
| 484 |
|
| 485 |
#define __OMP_ATTRS_SET(VarName, AttrSet) OMP_ATTRS_SET(VarName, AttrSet) |
| 486 |
|
| 487 |
__OMP_ATTRS_SET(GetterAttrs, |
| 488 |
OptimisticAttributes |
| 489 |
? AttributeSet(EnumAttr(NoUnwind), EnumAttr(ReadOnly), |
| 490 |
EnumAttr(NoSync), EnumAttr(NoFree), |
| 491 |
EnumAttr(InaccessibleMemOnly), |
| 492 |
EnumAttr(WillReturn)) |
| 493 |
: AttributeSet(EnumAttr(NoUnwind))) |
| 494 |
__OMP_ATTRS_SET(GetterArgWriteAttrs, |
| 495 |
OptimisticAttributes |
| 496 |
? AttributeSet(EnumAttr(NoUnwind), EnumAttr(NoSync), |
| 497 |
EnumAttr(NoFree), |
| 498 |
EnumAttr(InaccessibleMemOrArgMemOnly), |
| 499 |
EnumAttr(WillReturn)) |
| 500 |
: AttributeSet(EnumAttr(NoUnwind))) |
| 501 |
__OMP_ATTRS_SET(SetterAttrs, |
| 502 |
OptimisticAttributes |
| 503 |
? AttributeSet(EnumAttr(NoUnwind), EnumAttr(WriteOnly), |
| 504 |
EnumAttr(NoSync), EnumAttr(NoFree), |
| 505 |
EnumAttr(InaccessibleMemOnly), |
| 506 |
EnumAttr(WillReturn)) |
| 507 |
: AttributeSet(EnumAttr(NoUnwind))) |
| 508 |
|
| 509 |
__OMP_ATTRS_SET(DefaultAttrs, |
| 510 |
OptimisticAttributes |
| 511 |
? AttributeSet(EnumAttr(NoUnwind), EnumAttr(NoSync), |
| 512 |
EnumAttr(WillReturn), EnumAttr(NoFree)) |
| 513 |
: AttributeSet(EnumAttr(NoUnwind))) |
| 514 |
|
| 515 |
__OMP_ATTRS_SET(BarrierAttrs, |
| 516 |
OptimisticAttributes |
| 517 |
? AttributeSet(EnumAttr(NoUnwind), EnumAttr(Convergent)) |
| 518 |
: AttributeSet(EnumAttr(NoUnwind), EnumAttr(Convergent))) |
| 519 |
|
| 520 |
__OMP_ATTRS_SET(InaccessibleArgOnlyAttrs, |
| 521 |
OptimisticAttributes |
| 522 |
? AttributeSet(EnumAttr(NoUnwind), EnumAttr(NoSync), |
| 523 |
EnumAttr(InaccessibleMemOrArgMemOnly), |
| 524 |
EnumAttr(WillReturn), EnumAttr(NoFree)) |
| 525 |
: AttributeSet(EnumAttr(NoUnwind))) |
| 526 |
|
| 527 |
__OMP_ATTRS_SET(NoCaptureAttrs, |
| 528 |
OptimisticAttributes |
| 529 |
? AttributeSet(EnumAttr(NoCapture)) |
| 530 |
: AttributeSet(EnumAttr(NoCapture))) |
| 531 |
|
| 532 |
__OMP_ATTRS_SET(AlwaysInlineAttrs, |
| 533 |
OptimisticAttributes |
| 534 |
? AttributeSet(EnumAttr(AlwaysInline)) |
| 535 |
: AttributeSet(EnumAttr(AlwaysInline))) |
| 536 |
|
| 537 |
#if 0 |
| 538 |
__OMP_ATTRS_SET(InaccessibleOnlyAttrs, |
| 539 |
OptimisticAttributes |
| 540 |
? AttributeSet(EnumAttr(NoUnwind), EnumAttr(NoSync), |
| 541 |
EnumAttr(InaccessibleMemOnly), |
| 542 |
EnumAttr(WillReturn), EnumAttr(NoFree)) |
| 543 |
: AttributeSet(EnumAttr(NoUnwind))) |
| 544 |
#endif |
| 545 |
|
| 546 |
__OMP_ATTRS_SET(AllocAttrs, |
| 547 |
OptimisticAttributes |
| 548 |
? AttributeSet(EnumAttr(NoUnwind), EnumAttr(NoSync), |
| 549 |
EnumAttr(WillReturn)) |
| 550 |
: AttributeSet(EnumAttr(NoUnwind))) |
| 551 |
|
| 552 |
__OMP_ATTRS_SET(ForkAttrs, OptimisticAttributes |
| 553 |
? AttributeSet(EnumAttr(NoUnwind)) |
| 554 |
: AttributeSet(EnumAttr(NoUnwind))) |
| 555 |
|
| 556 |
__OMP_ATTRS_SET(ReadOnlyPtrAttrs, |
| 557 |
OptimisticAttributes |
| 558 |
? AttributeSet(EnumAttr(ReadOnly), EnumAttr(NoFree), |
| 559 |
EnumAttr(NoCapture)) |
| 560 |
: AttributeSet()) |
| 561 |
|
| 562 |
__OMP_ATTRS_SET(DeviceAllocAttrs, |
| 563 |
OptimisticAttributes |
| 564 |
? AttributeSet(EnumAttr(NoUnwind), EnumAttr(NoSync)) |
| 565 |
: AttributeSet(EnumAttr(NoUnwind), EnumAttr(NoSync))) |
| 566 |
|
| 567 |
#if 0 |
| 568 |
__OMP_ATTRS_SET(WriteOnlyPtrAttrs, |
| 569 |
OptimisticAttributes |
| 570 |
? AttributeSet(EnumAttr(WriteOnly), EnumAttr(NoFree), |
| 571 |
EnumAttr(NoCapture)) |
| 572 |
: AttributeSet()) |
| 573 |
#endif |
| 574 |
|
| 575 |
__OMP_ATTRS_SET(ArgPtrAttrs, |
| 576 |
OptimisticAttributes |
| 577 |
? AttributeSet(EnumAttr(NoCapture), EnumAttr(NoFree)) |
| 578 |
: AttributeSet()) |
| 579 |
|
| 580 |
__OMP_ATTRS_SET(ReturnPtrAttrs, |
| 581 |
OptimisticAttributes |
| 582 |
? AttributeSet(EnumAttr(NoAlias)) |
| 583 |
: AttributeSet()) |
| 584 |
|
| 585 |
#if 0 |
| 586 |
__OMP_ATTRS_SET(ReturnAlignedPtrAttrs, |
| 587 |
OptimisticAttributes |
| 588 |
? AttributeSet(EnumAttr(NoAlias), EnumAttrInt(Alignment, 8), |
| 589 |
EnumAttrInt(DereferenceableOrNull, 8)) |
| 590 |
: AttributeSet()) |
| 591 |
#endif |
| 592 |
|
| 593 |
#undef __OMP_ATTRS_SET |
| 594 |
#undef OMP_ATTRS_SET |
| 595 |
|
| 596 |
#ifndef OMP_RTL_ATTRS |
| 597 |
#define OMP_RTL_ATTRS(Enum, FnAttrSet, RetAttrSet, ArgAttrSets) |
| 598 |
#endif |
| 599 |
|
| 600 |
#define __OMP_RTL_ATTRS(Name, FnAttrSet, RetAttrSet, ArgAttrSets) \ |
| 601 |
OMP_RTL_ATTRS(OMPRTL_##Name, FnAttrSet, RetAttrSet, ArgAttrSets) |
| 602 |
|
| 603 |
__OMP_RTL_ATTRS(__kmpc_barrier, BarrierAttrs, AttributeSet(), |
| 604 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 605 |
__OMP_RTL_ATTRS(__kmpc_barrier_simple_spmd, BarrierAttrs, AttributeSet(), |
| 606 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 607 |
__OMP_RTL_ATTRS(__kmpc_barrier_simple_generic, BarrierAttrs, AttributeSet(), |
| 608 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 609 |
__OMP_RTL_ATTRS(__kmpc_warp_active_thread_mask, BarrierAttrs, AttributeSet(), |
| 610 |
ParamAttrs()) |
| 611 |
__OMP_RTL_ATTRS(__kmpc_syncwarp, BarrierAttrs, AttributeSet(), ParamAttrs()) |
| 612 |
__OMP_RTL_ATTRS(__kmpc_cancel, InaccessibleArgOnlyAttrs, AttributeSet(), |
| 613 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 614 |
__OMP_RTL_ATTRS(__kmpc_cancel_barrier, BarrierAttrs, AttributeSet(), |
| 615 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 616 |
__OMP_RTL_ATTRS(__kmpc_flush, BarrierAttrs, AttributeSet(), |
| 617 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 618 |
__OMP_RTL_ATTRS(__kmpc_global_thread_num, GetterAttrs, AttributeSet(), |
| 619 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 620 |
__OMP_RTL_ATTRS(__kmpc_fork_call, ForkAttrs, AttributeSet(), |
| 621 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), ReadOnlyPtrAttrs)) |
| 622 |
__OMP_RTL_ATTRS(__kmpc_omp_taskwait, BarrierAttrs, AttributeSet(), |
| 623 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 624 |
__OMP_RTL_ATTRS(__kmpc_omp_taskyield, InaccessibleArgOnlyAttrs, AttributeSet(), |
| 625 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 626 |
__OMP_RTL_ATTRS(__kmpc_push_num_threads, InaccessibleArgOnlyAttrs, |
| 627 |
AttributeSet(), ParamAttrs(ReadOnlyPtrAttrs)) |
| 628 |
__OMP_RTL_ATTRS(__kmpc_push_proc_bind, InaccessibleArgOnlyAttrs, AttributeSet(), |
| 629 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 630 |
__OMP_RTL_ATTRS(__kmpc_serialized_parallel, InaccessibleArgOnlyAttrs, |
| 631 |
AttributeSet(), ParamAttrs(ReadOnlyPtrAttrs)) |
| 632 |
__OMP_RTL_ATTRS(__kmpc_end_serialized_parallel, InaccessibleArgOnlyAttrs, |
| 633 |
AttributeSet(), ParamAttrs(ReadOnlyPtrAttrs)) |
| 634 |
__OMP_RTL_ATTRS(__kmpc_omp_reg_task_with_affinity, DefaultAttrs, AttributeSet(), |
| 635 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), ReadOnlyPtrAttrs, |
| 636 |
AttributeSet(), ReadOnlyPtrAttrs)) |
| 637 |
|
| 638 |
__OMP_RTL_ATTRS(__kmpc_get_hardware_num_blocks, GetterAttrs, AttributeSet(), ParamAttrs()) |
| 639 |
__OMP_RTL_ATTRS(__kmpc_get_hardware_num_threads_in_block, GetterAttrs, AttributeSet(), ParamAttrs()) |
| 640 |
__OMP_RTL_ATTRS(__kmpc_get_warp_size, GetterAttrs, AttributeSet(), ParamAttrs()) |
| 641 |
|
| 642 |
__OMP_RTL_ATTRS(omp_get_thread_num, GetterAttrs, AttributeSet(), ParamAttrs()) |
| 643 |
__OMP_RTL_ATTRS(omp_get_num_threads, GetterAttrs, AttributeSet(), ParamAttrs()) |
| 644 |
__OMP_RTL_ATTRS(omp_get_max_threads, GetterAttrs, AttributeSet(), ParamAttrs()) |
| 645 |
__OMP_RTL_ATTRS(omp_in_parallel, GetterAttrs, AttributeSet(), ParamAttrs()) |
| 646 |
__OMP_RTL_ATTRS(omp_get_dynamic, GetterAttrs, AttributeSet(), ParamAttrs()) |
| 647 |
__OMP_RTL_ATTRS(omp_get_cancellation, GetterAttrs, AttributeSet(), ParamAttrs()) |
| 648 |
__OMP_RTL_ATTRS(omp_get_nested, GetterAttrs, AttributeSet(), ParamAttrs()) |
| 649 |
__OMP_RTL_ATTRS( |
| 650 |
omp_get_schedule, GetterArgWriteAttrs, AttributeSet(), |
| 651 |
ParamAttrs(AttributeSet(EnumAttr(NoCapture), EnumAttr(WriteOnly)), |
| 652 |
AttributeSet(EnumAttr(NoCapture), EnumAttr(WriteOnly)))) |
| 653 |
__OMP_RTL_ATTRS(omp_get_thread_limit, GetterAttrs, AttributeSet(), ParamAttrs()) |
| 654 |
__OMP_RTL_ATTRS(omp_get_supported_active_levels, GetterAttrs, AttributeSet(), |
| 655 |
ParamAttrs()) |
| 656 |
__OMP_RTL_ATTRS(omp_get_max_active_levels, GetterAttrs, AttributeSet(), |
| 657 |
ParamAttrs()) |
| 658 |
__OMP_RTL_ATTRS(omp_get_level, GetterAttrs, AttributeSet(), ParamAttrs()) |
| 659 |
__OMP_RTL_ATTRS(omp_get_ancestor_thread_num, GetterAttrs, AttributeSet(), |
| 660 |
ParamAttrs()) |
| 661 |
__OMP_RTL_ATTRS(omp_get_team_size, GetterAttrs, AttributeSet(), ParamAttrs()) |
| 662 |
__OMP_RTL_ATTRS(omp_get_active_level, GetterAttrs, AttributeSet(), ParamAttrs()) |
| 663 |
__OMP_RTL_ATTRS(omp_in_final, GetterAttrs, AttributeSet(), ParamAttrs()) |
| 664 |
__OMP_RTL_ATTRS(omp_get_proc_bind, GetterAttrs, AttributeSet(), ParamAttrs()) |
| 665 |
__OMP_RTL_ATTRS(omp_get_num_places, GetterAttrs, AttributeSet(), ParamAttrs()) |
| 666 |
__OMP_RTL_ATTRS(omp_get_num_procs, GetterAttrs, AttributeSet(), ParamAttrs()) |
| 667 |
__OMP_RTL_ATTRS(omp_get_place_proc_ids, GetterArgWriteAttrs, AttributeSet(), |
| 668 |
ParamAttrs(AttributeSet(), AttributeSet(EnumAttr(NoCapture), |
| 669 |
EnumAttr(WriteOnly)))) |
| 670 |
__OMP_RTL_ATTRS(omp_get_place_num, GetterAttrs, AttributeSet(), ParamAttrs()) |
| 671 |
__OMP_RTL_ATTRS(omp_get_partition_num_places, GetterAttrs, AttributeSet(), |
| 672 |
ParamAttrs()) |
| 673 |
__OMP_RTL_ATTRS(omp_get_partition_place_nums, GetterAttrs, AttributeSet(), |
| 674 |
ParamAttrs()) |
| 675 |
|
| 676 |
__OMP_RTL_ATTRS(omp_set_num_threads, SetterAttrs, AttributeSet(), ParamAttrs()) |
| 677 |
__OMP_RTL_ATTRS(omp_set_dynamic, SetterAttrs, AttributeSet(), ParamAttrs()) |
| 678 |
__OMP_RTL_ATTRS(omp_set_nested, SetterAttrs, AttributeSet(), ParamAttrs()) |
| 679 |
__OMP_RTL_ATTRS(omp_set_schedule, SetterAttrs, AttributeSet(), ParamAttrs()) |
| 680 |
__OMP_RTL_ATTRS(omp_set_max_active_levels, SetterAttrs, AttributeSet(), |
| 681 |
ParamAttrs()) |
| 682 |
|
| 683 |
__OMP_RTL_ATTRS(__kmpc_master, InaccessibleArgOnlyAttrs, AttributeSet(), |
| 684 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 685 |
__OMP_RTL_ATTRS(__kmpc_end_master, InaccessibleArgOnlyAttrs, AttributeSet(), |
| 686 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 687 |
__OMP_RTL_ATTRS(__kmpc_masked, InaccessibleArgOnlyAttrs, AttributeSet(), |
| 688 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 689 |
__OMP_RTL_ATTRS(__kmpc_end_masked, InaccessibleArgOnlyAttrs, AttributeSet(), |
| 690 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 691 |
__OMP_RTL_ATTRS(__kmpc_critical, BarrierAttrs, AttributeSet(), |
| 692 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet())) |
| 693 |
__OMP_RTL_ATTRS(__kmpc_critical_with_hint, BarrierAttrs, AttributeSet(), |
| 694 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 695 |
AttributeSet())) |
| 696 |
__OMP_RTL_ATTRS(__kmpc_end_critical, BarrierAttrs, AttributeSet(), |
| 697 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet())) |
| 698 |
|
| 699 |
__OMP_RTL_ATTRS(__kmpc_begin, DefaultAttrs, AttributeSet(), |
| 700 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 701 |
__OMP_RTL_ATTRS(__kmpc_end, DefaultAttrs, AttributeSet(), |
| 702 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 703 |
|
| 704 |
__OMP_RTL_ATTRS(__kmpc_reduce, BarrierAttrs, AttributeSet(), |
| 705 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 706 |
AttributeSet(), ReadOnlyPtrAttrs, AttributeSet())) |
| 707 |
__OMP_RTL_ATTRS(__kmpc_reduce_nowait, BarrierAttrs, AttributeSet(), |
| 708 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 709 |
AttributeSet(), ReadOnlyPtrAttrs, AttributeSet())) |
| 710 |
__OMP_RTL_ATTRS(__kmpc_end_reduce, BarrierAttrs, AttributeSet(), |
| 711 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet())) |
| 712 |
__OMP_RTL_ATTRS(__kmpc_end_reduce_nowait, BarrierAttrs, AttributeSet(), |
| 713 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet())) |
| 714 |
|
| 715 |
__OMP_RTL_ATTRS(__kmpc_ordered, BarrierAttrs, AttributeSet(), |
| 716 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 717 |
__OMP_RTL_ATTRS(__kmpc_end_ordered, BarrierAttrs, AttributeSet(), |
| 718 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 719 |
|
| 720 |
__OMP_RTL_ATTRS(__kmpc_for_static_init_4, GetterArgWriteAttrs, AttributeSet(), |
| 721 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 722 |
ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, |
| 723 |
AttributeSet(), AttributeSet())) |
| 724 |
__OMP_RTL_ATTRS(__kmpc_for_static_init_4u, GetterArgWriteAttrs, AttributeSet(), |
| 725 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 726 |
ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, |
| 727 |
AttributeSet(), AttributeSet())) |
| 728 |
__OMP_RTL_ATTRS(__kmpc_for_static_init_8, GetterArgWriteAttrs, AttributeSet(), |
| 729 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 730 |
ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, |
| 731 |
AttributeSet(), AttributeSet())) |
| 732 |
__OMP_RTL_ATTRS(__kmpc_for_static_init_8u, GetterArgWriteAttrs, AttributeSet(), |
| 733 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 734 |
ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, |
| 735 |
AttributeSet(), AttributeSet())) |
| 736 |
__OMP_RTL_ATTRS(__kmpc_for_static_fini, InaccessibleArgOnlyAttrs, |
| 737 |
AttributeSet(), ParamAttrs(ReadOnlyPtrAttrs)) |
| 738 |
__OMP_RTL_ATTRS(__kmpc_distribute_static_init_4, GetterArgWriteAttrs, |
| 739 |
AttributeSet(), |
| 740 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 741 |
ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, |
| 742 |
AttributeSet(), AttributeSet())) |
| 743 |
__OMP_RTL_ATTRS(__kmpc_distribute_static_init_4u, GetterArgWriteAttrs, |
| 744 |
AttributeSet(), |
| 745 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 746 |
ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, |
| 747 |
AttributeSet(), AttributeSet())) |
| 748 |
__OMP_RTL_ATTRS(__kmpc_distribute_static_init_8, GetterArgWriteAttrs, |
| 749 |
AttributeSet(), |
| 750 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 751 |
ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, |
| 752 |
AttributeSet(), AttributeSet())) |
| 753 |
__OMP_RTL_ATTRS(__kmpc_distribute_static_init_8u, GetterArgWriteAttrs, |
| 754 |
AttributeSet(), |
| 755 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 756 |
ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, |
| 757 |
AttributeSet(), AttributeSet())) |
| 758 |
__OMP_RTL_ATTRS(__kmpc_distribute_static_fini, InaccessibleArgOnlyAttrs, |
| 759 |
AttributeSet(), ParamAttrs(ReadOnlyPtrAttrs)) |
| 760 |
__OMP_RTL_ATTRS(__kmpc_dist_dispatch_init_4, GetterArgWriteAttrs, |
| 761 |
AttributeSet(), |
| 762 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 763 |
ArgPtrAttrs)) |
| 764 |
__OMP_RTL_ATTRS(__kmpc_dist_dispatch_init_4u, GetterArgWriteAttrs, |
| 765 |
AttributeSet(), |
| 766 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 767 |
ArgPtrAttrs)) |
| 768 |
__OMP_RTL_ATTRS(__kmpc_dist_dispatch_init_8, GetterArgWriteAttrs, |
| 769 |
AttributeSet(), |
| 770 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 771 |
ArgPtrAttrs)) |
| 772 |
__OMP_RTL_ATTRS(__kmpc_dist_dispatch_init_8u, GetterArgWriteAttrs, |
| 773 |
AttributeSet(), |
| 774 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 775 |
ArgPtrAttrs)) |
| 776 |
__OMP_RTL_ATTRS(__kmpc_dispatch_init_4, GetterArgWriteAttrs, AttributeSet(), |
| 777 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 778 |
__OMP_RTL_ATTRS(__kmpc_dispatch_init_4u, GetterArgWriteAttrs, AttributeSet(), |
| 779 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 780 |
__OMP_RTL_ATTRS(__kmpc_dispatch_init_8, GetterArgWriteAttrs, AttributeSet(), |
| 781 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 782 |
__OMP_RTL_ATTRS(__kmpc_dispatch_init_8u, GetterArgWriteAttrs, AttributeSet(), |
| 783 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 784 |
__OMP_RTL_ATTRS(__kmpc_dispatch_next_4, GetterArgWriteAttrs, AttributeSet(), |
| 785 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), ArgPtrAttrs, |
| 786 |
ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs)) |
| 787 |
__OMP_RTL_ATTRS(__kmpc_dispatch_next_4u, GetterArgWriteAttrs, AttributeSet(), |
| 788 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), ArgPtrAttrs, |
| 789 |
ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs)) |
| 790 |
__OMP_RTL_ATTRS(__kmpc_dispatch_next_8, GetterArgWriteAttrs, AttributeSet(), |
| 791 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), ArgPtrAttrs, |
| 792 |
ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs)) |
| 793 |
__OMP_RTL_ATTRS(__kmpc_dispatch_next_8u, GetterArgWriteAttrs, AttributeSet(), |
| 794 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), ArgPtrAttrs, |
| 795 |
ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs)) |
| 796 |
__OMP_RTL_ATTRS(__kmpc_dispatch_fini_4, InaccessibleArgOnlyAttrs, |
| 797 |
AttributeSet(), ParamAttrs(ReadOnlyPtrAttrs)) |
| 798 |
__OMP_RTL_ATTRS(__kmpc_dispatch_fini_4u, InaccessibleArgOnlyAttrs, |
| 799 |
AttributeSet(), ParamAttrs(ReadOnlyPtrAttrs)) |
| 800 |
__OMP_RTL_ATTRS(__kmpc_dispatch_fini_8, InaccessibleArgOnlyAttrs, |
| 801 |
AttributeSet(), ParamAttrs(ReadOnlyPtrAttrs)) |
| 802 |
__OMP_RTL_ATTRS(__kmpc_dispatch_fini_8u, InaccessibleArgOnlyAttrs, |
| 803 |
AttributeSet(), ParamAttrs(ReadOnlyPtrAttrs)) |
| 804 |
__OMP_RTL_ATTRS(__kmpc_team_static_init_4, GetterArgWriteAttrs, AttributeSet(), |
| 805 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), ArgPtrAttrs, |
| 806 |
ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs)) |
| 807 |
__OMP_RTL_ATTRS(__kmpc_team_static_init_4u, GetterArgWriteAttrs, AttributeSet(), |
| 808 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), ArgPtrAttrs, |
| 809 |
ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs)) |
| 810 |
__OMP_RTL_ATTRS(__kmpc_team_static_init_8, GetterArgWriteAttrs, AttributeSet(), |
| 811 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), ArgPtrAttrs, |
| 812 |
ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs)) |
| 813 |
__OMP_RTL_ATTRS(__kmpc_team_static_init_8u, GetterArgWriteAttrs, AttributeSet(), |
| 814 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), ArgPtrAttrs, |
| 815 |
ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs)) |
| 816 |
__OMP_RTL_ATTRS(__kmpc_dist_for_static_init_4, GetterArgWriteAttrs, |
| 817 |
AttributeSet(), |
| 818 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 819 |
ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, |
| 820 |
ArgPtrAttrs)) |
| 821 |
__OMP_RTL_ATTRS(__kmpc_dist_for_static_init_4u, GetterArgWriteAttrs, |
| 822 |
AttributeSet(), |
| 823 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 824 |
ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, |
| 825 |
ArgPtrAttrs)) |
| 826 |
__OMP_RTL_ATTRS(__kmpc_dist_for_static_init_8, GetterArgWriteAttrs, |
| 827 |
AttributeSet(), |
| 828 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 829 |
ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, |
| 830 |
ArgPtrAttrs)) |
| 831 |
__OMP_RTL_ATTRS(__kmpc_dist_for_static_init_8u, GetterArgWriteAttrs, |
| 832 |
AttributeSet(), |
| 833 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 834 |
ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, ArgPtrAttrs, |
| 835 |
ArgPtrAttrs)) |
| 836 |
|
| 837 |
__OMP_RTL_ATTRS(__kmpc_single, BarrierAttrs, AttributeSet(), |
| 838 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 839 |
__OMP_RTL_ATTRS(__kmpc_end_single, BarrierAttrs, AttributeSet(), |
| 840 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 841 |
|
| 842 |
__OMP_RTL_ATTRS(__kmpc_omp_task_alloc, DefaultAttrs, ReturnPtrAttrs, |
| 843 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 844 |
AttributeSet(), AttributeSet(), ReadOnlyPtrAttrs)) |
| 845 |
__OMP_RTL_ATTRS(__kmpc_omp_task, DefaultAttrs, AttributeSet(), |
| 846 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet())) |
| 847 |
__OMP_RTL_ATTRS(__kmpc_end_taskgroup, BarrierAttrs, AttributeSet(), |
| 848 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 849 |
__OMP_RTL_ATTRS(__kmpc_taskgroup, BarrierAttrs, AttributeSet(), |
| 850 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 851 |
__OMP_RTL_ATTRS(__kmpc_omp_task_begin_if0, DefaultAttrs, AttributeSet(), |
| 852 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 853 |
__OMP_RTL_ATTRS(__kmpc_omp_task_complete_if0, DefaultAttrs, AttributeSet(), |
| 854 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 855 |
__OMP_RTL_ATTRS(__kmpc_omp_task_with_deps, DefaultAttrs, AttributeSet(), |
| 856 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 857 |
AttributeSet(), ReadOnlyPtrAttrs, AttributeSet(), |
| 858 |
ReadOnlyPtrAttrs)) |
| 859 |
__OMP_RTL_ATTRS(__kmpc_taskloop, DefaultAttrs, AttributeSet(), |
| 860 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 861 |
AttributeSet(), ArgPtrAttrs, ArgPtrAttrs, |
| 862 |
AttributeSet(), AttributeSet(), AttributeSet(), |
| 863 |
AttributeSet(), AttributeSet())) |
| 864 |
__OMP_RTL_ATTRS(__kmpc_omp_target_task_alloc, DefaultAttrs, ReturnPtrAttrs, |
| 865 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 866 |
AttributeSet(), AttributeSet(), ReadOnlyPtrAttrs, |
| 867 |
AttributeSet())) |
| 868 |
__OMP_RTL_ATTRS(__kmpc_taskred_modifier_init, DefaultAttrs, ReturnPtrAttrs, |
| 869 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 870 |
__OMP_RTL_ATTRS(__kmpc_taskred_init, DefaultAttrs, AttributeSet(), ParamAttrs()) |
| 871 |
__OMP_RTL_ATTRS(__kmpc_task_reduction_modifier_fini, BarrierAttrs, |
| 872 |
AttributeSet(), ParamAttrs(ReadOnlyPtrAttrs)) |
| 873 |
__OMP_RTL_ATTRS(__kmpc_task_reduction_get_th_data, DefaultAttrs, ReturnPtrAttrs, |
| 874 |
ParamAttrs()) |
| 875 |
__OMP_RTL_ATTRS(__kmpc_task_reduction_init, DefaultAttrs, ReturnPtrAttrs, |
| 876 |
ParamAttrs()) |
| 877 |
__OMP_RTL_ATTRS(__kmpc_task_reduction_modifier_init, DefaultAttrs, |
| 878 |
ReturnPtrAttrs, ParamAttrs()) |
| 879 |
__OMP_RTL_ATTRS(__kmpc_proxy_task_completed_ooo, DefaultAttrs, AttributeSet(), |
| 880 |
ParamAttrs()) |
| 881 |
|
| 882 |
__OMP_RTL_ATTRS(__kmpc_omp_wait_deps, BarrierAttrs, AttributeSet(), |
| 883 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 884 |
ReadOnlyPtrAttrs)) |
| 885 |
__OMP_RTL_ATTRS(__kmpc_cancellationpoint, DefaultAttrs, AttributeSet(), |
| 886 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 887 |
|
| 888 |
__OMP_RTL_ATTRS(__kmpc_fork_teams, ForkAttrs, AttributeSet(), |
| 889 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), ReadOnlyPtrAttrs)) |
| 890 |
__OMP_RTL_ATTRS(__kmpc_push_num_teams, InaccessibleArgOnlyAttrs, AttributeSet(), |
| 891 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 892 |
|
| 893 |
__OMP_RTL_ATTRS(__kmpc_copyprivate, DefaultAttrs, AttributeSet(), |
| 894 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), AttributeSet(), |
| 895 |
ReadOnlyPtrAttrs)) |
| 896 |
__OMP_RTL_ATTRS(__kmpc_threadprivate_cached, DefaultAttrs, ReturnPtrAttrs, |
| 897 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 898 |
__OMP_RTL_ATTRS(__kmpc_threadprivate_register, DefaultAttrs, AttributeSet(), |
| 899 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), ReadOnlyPtrAttrs, |
| 900 |
ReadOnlyPtrAttrs, ReadOnlyPtrAttrs)) |
| 901 |
|
| 902 |
__OMP_RTL_ATTRS(__kmpc_doacross_init, BarrierAttrs, AttributeSet(), |
| 903 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 904 |
__OMP_RTL_ATTRS(__kmpc_doacross_post, BarrierAttrs, AttributeSet(), |
| 905 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), ReadOnlyPtrAttrs)) |
| 906 |
__OMP_RTL_ATTRS(__kmpc_doacross_wait, BarrierAttrs, AttributeSet(), |
| 907 |
ParamAttrs(ReadOnlyPtrAttrs, AttributeSet(), ReadOnlyPtrAttrs)) |
| 908 |
__OMP_RTL_ATTRS(__kmpc_doacross_fini, BarrierAttrs, AttributeSet(), |
| 909 |
ParamAttrs(ReadOnlyPtrAttrs)) |
| 910 |
|
| 911 |
__OMP_RTL_ATTRS(__kmpc_alloc_shared, DeviceAllocAttrs, ReturnPtrAttrs, |
| 912 |
ParamAttrs()) |
| 913 |
__OMP_RTL_ATTRS(__kmpc_free_shared, DeviceAllocAttrs, AttributeSet(), |
| 914 |
ParamAttrs(NoCaptureAttrs)) |
| 915 |
|
| 916 |
__OMP_RTL_ATTRS(__kmpc_alloc, DefaultAttrs, ReturnPtrAttrs, ParamAttrs()) |
| 917 |
__OMP_RTL_ATTRS(__kmpc_aligned_alloc, DefaultAttrs, ReturnPtrAttrs, |
| 918 |
ParamAttrs()) |
| 919 |
__OMP_RTL_ATTRS(__kmpc_free, AllocAttrs, AttributeSet(), ParamAttrs()) |
| 920 |
|
| 921 |
__OMP_RTL_ATTRS(__kmpc_init_allocator, DefaultAttrs, ReturnPtrAttrs, |
| 922 |
ParamAttrs()) |
| 923 |
__OMP_RTL_ATTRS(__kmpc_destroy_allocator, AllocAttrs, AttributeSet(), |
| 924 |
ParamAttrs()) |
| 925 |
|
| 926 |
__OMP_RTL_ATTRS(__kmpc_push_target_tripcount_mapper, SetterAttrs, |
| 927 |
AttributeSet(), ParamAttrs()) |
| 928 |
__OMP_RTL_ATTRS(__tgt_target_mapper, ForkAttrs, AttributeSet(), ParamAttrs()) |
| 929 |
__OMP_RTL_ATTRS(__tgt_target_nowait_mapper, ForkAttrs, AttributeSet(), |
| 930 |
ParamAttrs()) |
| 931 |
__OMP_RTL_ATTRS(__tgt_target_teams_mapper, ForkAttrs, AttributeSet(), |
| 932 |
ParamAttrs()) |
| 933 |
__OMP_RTL_ATTRS(__tgt_target_teams_nowait_mapper, ForkAttrs, AttributeSet(), |
| 934 |
ParamAttrs()) |
| 935 |
__OMP_RTL_ATTRS(__tgt_register_requires, ForkAttrs, AttributeSet(), |
| 936 |
ParamAttrs()) |
| 937 |
__OMP_RTL_ATTRS(__tgt_target_data_begin_mapper, ForkAttrs, AttributeSet(), |
| 938 |
ParamAttrs()) |
| 939 |
__OMP_RTL_ATTRS(__tgt_target_data_begin_nowait_mapper, ForkAttrs, |
| 940 |
AttributeSet(), ParamAttrs()) |
| 941 |
__OMP_RTL_ATTRS(__tgt_target_data_end_mapper, ForkAttrs, AttributeSet(), |
| 942 |
ParamAttrs()) |
| 943 |
__OMP_RTL_ATTRS(__tgt_target_data_end_nowait_mapper, ForkAttrs, |
| 944 |
AttributeSet(), ParamAttrs()) |
| 945 |
__OMP_RTL_ATTRS(__tgt_target_data_update_mapper, ForkAttrs, AttributeSet(), |
| 946 |
ParamAttrs()) |
| 947 |
__OMP_RTL_ATTRS(__tgt_target_data_update_nowait_mapper, ForkAttrs, |
| 948 |
AttributeSet(), ParamAttrs()) |
| 949 |
__OMP_RTL_ATTRS(__tgt_mapper_num_components, ForkAttrs, AttributeSet(), |
| 950 |
ParamAttrs()) |
| 951 |
__OMP_RTL_ATTRS(__tgt_push_mapper_component, ForkAttrs, AttributeSet(), |
| 952 |
ParamAttrs()) |
| 953 |
__OMP_RTL_ATTRS(__kmpc_task_allow_completion_event, DefaultAttrs, |
| 954 |
ReturnPtrAttrs, ParamAttrs(ReadOnlyPtrAttrs)) |
| 955 |
|
| 956 |
__OMP_RTL_ATTRS(__kmpc_parallel_51, AlwaysInlineAttrs, AttributeSet(), |
| 957 |
ParamAttrs()) |
| 958 |
|
| 959 |
#undef __OMP_RTL_ATTRS |
| 960 |
#undef OMP_RTL_ATTRS |
| 961 |
#undef AttributeSet |
| 962 |
#undef EnumAttr |
| 963 |
#undef EnumAttrInt |
| 964 |
#undef ParamAttrs |
| 965 |
|
| 966 |
///} |
| 967 |
|
| 968 |
/// KMP ident_t bit flags |
| 969 |
/// |
| 970 |
/// In accordance with the values in `openmp/runtime/src/kmp.h`. |
| 971 |
/// |
| 972 |
///{ |
| 973 |
|
| 974 |
#ifndef OMP_IDENT_FLAG |
| 975 |
#define OMP_IDENT_FLAG(Enum, Str, Value) |
| 976 |
#endif |
| 977 |
|
| 978 |
#define __OMP_IDENT_FLAG(Name, Value) \ |
| 979 |
OMP_IDENT_FLAG(OMP_IDENT_FLAG_##Name, #Name, Value) |
| 980 |
|
| 981 |
__OMP_IDENT_FLAG(KMPC, 0x02) |
| 982 |
__OMP_IDENT_FLAG(ATOMIC_REDUCE, 0x10) |
| 983 |
__OMP_IDENT_FLAG(BARRIER_EXPL, 0x20) |
| 984 |
__OMP_IDENT_FLAG(BARRIER_IMPL, 0x0040) |
| 985 |
__OMP_IDENT_FLAG(BARRIER_IMPL_MASK, 0x01C0) |
| 986 |
__OMP_IDENT_FLAG(BARRIER_IMPL_FOR, 0x0040) |
| 987 |
__OMP_IDENT_FLAG(BARRIER_IMPL_SECTIONS, 0x00C0) |
| 988 |
__OMP_IDENT_FLAG(BARRIER_IMPL_SINGLE, 0x0140) |
| 989 |
__OMP_IDENT_FLAG(BARRIER_IMPL_WORKSHARE, 0x01C0) |
| 990 |
|
| 991 |
#undef __OMP_IDENT_FLAG |
| 992 |
#undef OMP_IDENT_FLAG |
| 993 |
|
| 994 |
///} |
| 995 |
|
| 996 |
/// KMP cancel kind |
| 997 |
/// |
| 998 |
///{ |
| 999 |
|
| 1000 |
#ifndef OMP_CANCEL_KIND |
| 1001 |
#define OMP_CANCEL_KIND(Enum, Str, DirectiveEnum, Value) |
| 1002 |
#endif |
| 1003 |
|
| 1004 |
#define __OMP_CANCEL_KIND(Name, Value) \ |
| 1005 |
OMP_CANCEL_KIND(OMP_CANCEL_KIND_##Name, #Name, OMPD_##Name, Value) |
| 1006 |
|
| 1007 |
__OMP_CANCEL_KIND(parallel, 1) |
| 1008 |
__OMP_CANCEL_KIND(for, 2) |
| 1009 |
__OMP_CANCEL_KIND(sections, 3) |
| 1010 |
__OMP_CANCEL_KIND(taskgroup, 4) |
| 1011 |
|
| 1012 |
#undef __OMP_CANCEL_KIND |
| 1013 |
#undef OMP_CANCEL_KIND |
| 1014 |
|
| 1015 |
///} |
| 1016 |
|
| 1017 |
/// Default kinds |
| 1018 |
/// |
| 1019 |
///{ |
| 1020 |
|
| 1021 |
#ifndef OMP_DEFAULT_KIND |
| 1022 |
#define OMP_DEFAULT_KIND(Enum, Str) |
| 1023 |
#endif |
| 1024 |
|
| 1025 |
#define __OMP_DEFAULT_KIND(Name) OMP_DEFAULT_KIND(OMP_DEFAULT_##Name, #Name) |
| 1026 |
|
| 1027 |
__OMP_DEFAULT_KIND(none) |
| 1028 |
__OMP_DEFAULT_KIND(shared) |
| 1029 |
__OMP_DEFAULT_KIND(firstprivate) |
| 1030 |
__OMP_DEFAULT_KIND(unknown) |
| 1031 |
|
| 1032 |
#undef __OMP_DEFAULT_KIND |
| 1033 |
#undef OMP_DEFAULT_KIND |
| 1034 |
|
| 1035 |
///} |
| 1036 |
|
| 1037 |
/// Proc bind kinds |
| 1038 |
/// |
| 1039 |
///{ |
| 1040 |
|
| 1041 |
#ifndef OMP_PROC_BIND_KIND |
| 1042 |
#define OMP_PROC_BIND_KIND(Enum, Str, Value) |
| 1043 |
#endif |
| 1044 |
|
| 1045 |
#define __OMP_PROC_BIND_KIND(Name, Value) \ |
| 1046 |
OMP_PROC_BIND_KIND(OMP_PROC_BIND_##Name, #Name, Value) |
| 1047 |
|
| 1048 |
__OMP_PROC_BIND_KIND(master, 2) |
| 1049 |
__OMP_PROC_BIND_KIND(close, 3) |
| 1050 |
__OMP_PROC_BIND_KIND(spread, 4) |
| 1051 |
__OMP_PROC_BIND_KIND(primary, 5) |
| 1052 |
__OMP_PROC_BIND_KIND(default, 6) |
| 1053 |
__OMP_PROC_BIND_KIND(unknown, 7) |
| 1054 |
|
| 1055 |
#undef __OMP_PROC_BIND_KIND |
| 1056 |
#undef OMP_PROC_BIND_KIND |
| 1057 |
|
| 1058 |
///} |
| 1059 |
|
| 1060 |
/// OpenMP context related definitions: |
| 1061 |
/// - trait set selector |
| 1062 |
/// - trait selector |
| 1063 |
/// - trait property |
| 1064 |
/// |
| 1065 |
///{ |
| 1066 |
|
| 1067 |
#ifndef OMP_TRAIT_SET |
| 1068 |
#define OMP_TRAIT_SET(Enum, Str) |
| 1069 |
#endif |
| 1070 |
#ifndef OMP_TRAIT_SELECTOR |
| 1071 |
#define OMP_TRAIT_SELECTOR(Enum, TraitSetEnum, Str, RequiresProperty) |
| 1072 |
#endif |
| 1073 |
#ifndef OMP_TRAIT_PROPERTY |
| 1074 |
#define OMP_TRAIT_PROPERTY(Enum, TraitSetEnum, TraitSelectorEnum, Str) |
| 1075 |
#endif |
| 1076 |
#ifndef OMP_LAST_TRAIT_PROPERTY |
| 1077 |
#define OMP_LAST_TRAIT_PROPERTY(Enum) |
| 1078 |
#endif |
| 1079 |
|
| 1080 |
#define __OMP_TRAIT_SET(Name) OMP_TRAIT_SET(Name, #Name) |
| 1081 |
#define __OMP_TRAIT_SELECTOR(TraitSet, Name, RequiresProperty) \ |
| 1082 |
OMP_TRAIT_SELECTOR(TraitSet##_##Name, TraitSet, #Name, RequiresProperty) |
| 1083 |
#define __OMP_TRAIT_SELECTOR_AND_PROPERTY(TraitSet, Name) \ |
| 1084 |
OMP_TRAIT_SELECTOR(TraitSet##_##Name, TraitSet, #Name, false) \ |
| 1085 |
OMP_TRAIT_PROPERTY(TraitSet##_##Name##_##Name, TraitSet, TraitSet##_##Name, \ |
| 1086 |
#Name) |
| 1087 |
#define __OMP_TRAIT_PROPERTY(TraitSet, TraitSelector, Name) \ |
| 1088 |
OMP_TRAIT_PROPERTY(TraitSet##_##TraitSelector##_##Name, TraitSet, \ |
| 1089 |
TraitSet##_##TraitSelector, #Name) |
| 1090 |
|
| 1091 |
// "invalid" must go first. |
| 1092 |
OMP_TRAIT_SET(invalid, "invalid") |
| 1093 |
OMP_TRAIT_SELECTOR(invalid, invalid, "invalid", false) |
| 1094 |
OMP_TRAIT_PROPERTY(invalid, invalid, invalid, "invalid") |
| 1095 |
|
| 1096 |
__OMP_TRAIT_SET(construct) |
| 1097 |
__OMP_TRAIT_SELECTOR_AND_PROPERTY(construct, target) |
| 1098 |
__OMP_TRAIT_SELECTOR_AND_PROPERTY(construct, teams) |
| 1099 |
__OMP_TRAIT_SELECTOR_AND_PROPERTY(construct, parallel) |
| 1100 |
__OMP_TRAIT_SELECTOR_AND_PROPERTY(construct, for) |
| 1101 |
__OMP_TRAIT_SELECTOR_AND_PROPERTY(construct, simd) |
| 1102 |
|
| 1103 |
__OMP_TRAIT_SET(device) |
| 1104 |
|
| 1105 |
__OMP_TRAIT_SELECTOR(device, kind, true) |
| 1106 |
|
| 1107 |
__OMP_TRAIT_PROPERTY(device, kind, host) |
| 1108 |
__OMP_TRAIT_PROPERTY(device, kind, nohost) |
| 1109 |
__OMP_TRAIT_PROPERTY(device, kind, cpu) |
| 1110 |
__OMP_TRAIT_PROPERTY(device, kind, gpu) |
| 1111 |
__OMP_TRAIT_PROPERTY(device, kind, fpga) |
| 1112 |
__OMP_TRAIT_PROPERTY(device, kind, any) |
| 1113 |
|
| 1114 |
__OMP_TRAIT_SELECTOR(device, arch, true) |
| 1115 |
|
| 1116 |
__OMP_TRAIT_PROPERTY(device, arch, arm) |
| 1117 |
__OMP_TRAIT_PROPERTY(device, arch, armeb) |
| 1118 |
__OMP_TRAIT_PROPERTY(device, arch, aarch64) |
| 1119 |
__OMP_TRAIT_PROPERTY(device, arch, aarch64_be) |
| 1120 |
__OMP_TRAIT_PROPERTY(device, arch, aarch64_32) |
| 1121 |
__OMP_TRAIT_PROPERTY(device, arch, ppc) |
| 1122 |
__OMP_TRAIT_PROPERTY(device, arch, ppcle) |
| 1123 |
__OMP_TRAIT_PROPERTY(device, arch, ppc64) |
| 1124 |
__OMP_TRAIT_PROPERTY(device, arch, ppc64le) |
| 1125 |
__OMP_TRAIT_PROPERTY(device, arch, x86) |
| 1126 |
__OMP_TRAIT_PROPERTY(device, arch, x86_64) |
| 1127 |
__OMP_TRAIT_PROPERTY(device, arch, amdgcn) |
| 1128 |
__OMP_TRAIT_PROPERTY(device, arch, nvptx) |
| 1129 |
__OMP_TRAIT_PROPERTY(device, arch, nvptx64) |
| 1130 |
|
| 1131 |
__OMP_TRAIT_SET(implementation) |
| 1132 |
|
| 1133 |
__OMP_TRAIT_SELECTOR(implementation, vendor, true) |
| 1134 |
|
| 1135 |
__OMP_TRAIT_PROPERTY(implementation, vendor, amd) |
| 1136 |
__OMP_TRAIT_PROPERTY(implementation, vendor, arm) |
| 1137 |
__OMP_TRAIT_PROPERTY(implementation, vendor, bsc) |
| 1138 |
__OMP_TRAIT_PROPERTY(implementation, vendor, cray) |
| 1139 |
__OMP_TRAIT_PROPERTY(implementation, vendor, fujitsu) |
| 1140 |
__OMP_TRAIT_PROPERTY(implementation, vendor, gnu) |
| 1141 |
__OMP_TRAIT_PROPERTY(implementation, vendor, ibm) |
| 1142 |
__OMP_TRAIT_PROPERTY(implementation, vendor, intel) |
| 1143 |
__OMP_TRAIT_PROPERTY(implementation, vendor, llvm) |
| 1144 |
__OMP_TRAIT_PROPERTY(implementation, vendor, nec) |
| 1145 |
__OMP_TRAIT_PROPERTY(implementation, vendor, nvidia) |
| 1146 |
__OMP_TRAIT_PROPERTY(implementation, vendor, pgi) |
| 1147 |
__OMP_TRAIT_PROPERTY(implementation, vendor, ti) |
| 1148 |
__OMP_TRAIT_PROPERTY(implementation, vendor, unknown) |
| 1149 |
|
| 1150 |
__OMP_TRAIT_SELECTOR(implementation, extension, true) |
| 1151 |
__OMP_TRAIT_PROPERTY(implementation, extension, match_all) |
| 1152 |
__OMP_TRAIT_PROPERTY(implementation, extension, match_any) |
| 1153 |
__OMP_TRAIT_PROPERTY(implementation, extension, match_none) |
| 1154 |
__OMP_TRAIT_PROPERTY(implementation, extension, disable_implicit_base) |
| 1155 |
__OMP_TRAIT_PROPERTY(implementation, extension, allow_templates) |
| 1156 |
|
| 1157 |
__OMP_TRAIT_SET(user) |
| 1158 |
|
| 1159 |
__OMP_TRAIT_SELECTOR(user, condition, true) |
| 1160 |
|
| 1161 |
__OMP_TRAIT_PROPERTY(user, condition, true) |
| 1162 |
__OMP_TRAIT_PROPERTY(user, condition, false) |
| 1163 |
__OMP_TRAIT_PROPERTY(user, condition, unknown) |
| 1164 |
|
| 1165 |
__OMP_TRAIT_SELECTOR_AND_PROPERTY(construct, dispatch) |
| 1166 |
|
| 1167 |
// Note that we put isa last so that the other conditions are checked first. |
| 1168 |
// This allows us to issue warnings wrt. isa only if we match otherwise. |
| 1169 |
__OMP_TRAIT_SELECTOR(device, isa, true) |
| 1170 |
|
| 1171 |
// We use "__ANY" as a placeholder in the isa property to denote the |
| 1172 |
// conceptual "any", not the literal `any` used in kind. The string we |
| 1173 |
// we use is not important except that it will show up in diagnostics. |
| 1174 |
OMP_TRAIT_PROPERTY(device_isa___ANY, device, device_isa, |
| 1175 |
"<any, entirely target dependent>") |
| 1176 |
|
| 1177 |
|
| 1178 |
#undef OMP_TRAIT_SET |
| 1179 |
#undef __OMP_TRAIT_SET |
| 1180 |
///} |
| 1181 |
|
| 1182 |
/// Traits for the requires directive |
| 1183 |
/// |
| 1184 |
/// These will (potentially) become trait selectors for the OpenMP context if |
| 1185 |
/// the OMP_REQUIRES_TRAIT macro is not defined. |
| 1186 |
/// |
| 1187 |
///{ |
| 1188 |
|
| 1189 |
#ifdef OMP_REQUIRES_TRAIT |
| 1190 |
#define __OMP_REQUIRES_TRAIT(Name) \ |
| 1191 |
OMP_REQUIRES_TRAIT(OMP_REQUIRES_TRAIT_##Name, #Name) |
| 1192 |
#else |
| 1193 |
#define __OMP_REQUIRES_TRAIT(Name) \ |
| 1194 |
__OMP_TRAIT_SELECTOR_AND_PROPERTY(implementation, Name) |
| 1195 |
#endif |
| 1196 |
|
| 1197 |
__OMP_REQUIRES_TRAIT(unified_address) |
| 1198 |
__OMP_REQUIRES_TRAIT(unified_shared_memory) |
| 1199 |
__OMP_REQUIRES_TRAIT(reverse_offload) |
| 1200 |
__OMP_REQUIRES_TRAIT(dynamic_allocators) |
| 1201 |
__OMP_REQUIRES_TRAIT(atomic_default_mem_order) |
| 1202 |
|
| 1203 |
OMP_LAST_TRAIT_PROPERTY( |
| 1204 |
implementation_atomic_default_mem_order_atomic_default_mem_order) |
| 1205 |
|
| 1206 |
#undef __OMP_TRAIT_SELECTOR_AND_PROPERTY |
| 1207 |
#undef OMP_TRAIT_SELECTOR |
| 1208 |
#undef __OMP_TRAIT_SELECTOR |
| 1209 |
#undef OMP_TRAIT_PROPERTY |
| 1210 |
#undef OMP_LAST_TRAIT_PROPERTY |
| 1211 |
#undef __OMP_TRAIT_PROPERTY |
| 1212 |
#undef __OMP_REQUIRES_TRAIT |
| 1213 |
#undef OMP_REQUIRES_TRAIT |
| 1214 |
///} |
| 1215 |
|
| 1216 |
|
| 1217 |
/// Assumption clauses |
| 1218 |
/// |
| 1219 |
///{ |
| 1220 |
|
| 1221 |
#ifdef OMP_ASSUME_CLAUSE |
| 1222 |
#define __OMP_ASSUME_CLAUSE(Identifier, StartsWith, HasDirectiveList, HasExpression) \ |
| 1223 |
OMP_ASSUME_CLAUSE(Identifier, StartsWith, HasDirectiveList, HasExpression) |
| 1224 |
#else |
| 1225 |
#define __OMP_ASSUME_CLAUSE(...) |
| 1226 |
#endif |
| 1227 |
|
| 1228 |
__OMP_ASSUME_CLAUSE(llvm::StringLiteral("ext_"), true, false, false) |
| 1229 |
__OMP_ASSUME_CLAUSE(llvm::StringLiteral("absent"), false, true, false) |
| 1230 |
__OMP_ASSUME_CLAUSE(llvm::StringLiteral("contains"), false, true, false) |
| 1231 |
__OMP_ASSUME_CLAUSE(llvm::StringLiteral("holds"), false, false, true) |
| 1232 |
__OMP_ASSUME_CLAUSE(llvm::StringLiteral("no_openmp"), false, false, false) |
| 1233 |
__OMP_ASSUME_CLAUSE(llvm::StringLiteral("no_openmp_routines"), false, false, false) |
| 1234 |
__OMP_ASSUME_CLAUSE(llvm::StringLiteral("no_parallelism"), false, false, false) |
| 1235 |
|
| 1236 |
#undef __OMP_ASSUME_CLAUSE |
| 1237 |
#undef OMP_ASSUME_CLAUSE |
| 1238 |
///} |