Changeset View
Changeset View
Standalone View
Standalone View
llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
Show First 20 Lines • Show All 224 Lines • ▼ Show 20 Lines | |||||
#ifndef OMP_TYPE | #ifndef OMP_TYPE | ||||
#define OMP_TYPE(VarName, InitValue) | #define OMP_TYPE(VarName, InitValue) | ||||
#endif | #endif | ||||
#define __OMP_TYPE(VarName) OMP_TYPE(VarName, Type::get##VarName##Ty(Ctx)) | #define __OMP_TYPE(VarName) OMP_TYPE(VarName, Type::get##VarName##Ty(Ctx)) | ||||
__OMP_TYPE(Void) | __OMP_TYPE(Void) | ||||
__OMP_TYPE(Int1) | |||||
__OMP_TYPE(Int8) | __OMP_TYPE(Int8) | ||||
__OMP_TYPE(Int32) | __OMP_TYPE(Int32) | ||||
__OMP_TYPE(Int64) | __OMP_TYPE(Int64) | ||||
__OMP_TYPE(Int8Ptr) | __OMP_TYPE(Int8Ptr) | ||||
__OMP_TYPE(Int32Ptr) | __OMP_TYPE(Int32Ptr) | ||||
__OMP_TYPE(Int64Ptr) | __OMP_TYPE(Int64Ptr) | ||||
OMP_TYPE(SizeTy, M.getDataLayout().getIntPtrType(Ctx)) | OMP_TYPE(SizeTy, M.getDataLayout().getIntPtrType(Ctx)) | ||||
▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | |||||
__OMP_FUNCTION_TYPE(TaskRoutineEntry, false, Int32, Int32, | __OMP_FUNCTION_TYPE(TaskRoutineEntry, false, Int32, Int32, | ||||
/* kmp_task_t */ VoidPtr) | /* kmp_task_t */ VoidPtr) | ||||
#undef __OMP_FUNCTION_TYPE | #undef __OMP_FUNCTION_TYPE | ||||
#undef OMP_FUNCTION_TYPE | #undef OMP_FUNCTION_TYPE | ||||
///} | ///} | ||||
/// Internal Control Variables information | |||||
/// | |||||
///{ | |||||
#ifndef ICV_DATA_ENV | |||||
#define ICV_DATA_ENV(Enum, Name, EnvVarName, Init) | |||||
#endif | |||||
#define __ICV_DATA_ENV(Name, EnvVarName, Init) \ | |||||
ICV_DATA_ENV(ICV_##Name, #Name, #EnvVarName, Init) | |||||
__ICV_DATA_ENV(nthreads, OMP_NUM_THREADS, IMPLEMENTATION_DEFINED) | |||||
__ICV_DATA_ENV(active_levels, NONE, ZERO) | |||||
__ICV_DATA_ENV(cancel, OMP_CANCELLATION, FALSE) | |||||
fhahn: Is it possible to use a different name than `FALSE` here, because it will fail to compile if… | |||||
sstefan1AuthorUnsubmitted Sure! I hope we will move away from macro magic soon anyway. @jdoerfert sounds good? sstefan1: Sure! I hope we will move away from macro magic soon anyway.
@jdoerfert sounds good? | |||||
daltentyUnsubmitted Not Done ReplyInline ActionsWe currently have exactly such a build break from this change on AIX due to the system headers defining FALSE daltenty: We currently have exactly such a build break from this change on AIX due to the system headers… | |||||
jdoerfertUnsubmitted Not Done ReplyInline ActionsICV_.. for all of them seems sensible. Thanks for catching this! jdoerfert: `ICV_..` for all of them seems sensible. Thanks for catching this! | |||||
sstefan1AuthorUnsubmitted Sorry about that. Should be fixed with rG951e43f357ec3ee0ffc570aea9cbf19871696c42 sstefan1: Sorry about that. Should be fixed with rG951e43f357ec3ee0ffc570aea9cbf19871696c42 | |||||
fhahnUnsubmitted Not Done ReplyInline Actionsgreat thanks! fhahn: great thanks! | |||||
daltentyUnsubmitted Not Done ReplyInline ActionsThanks, this seems to have resolved our build issue. daltenty: Thanks, this seems to have resolved our build issue. | |||||
__ICV_DATA_ENV(__last, last, LAST) | |||||
#undef __ICV_DATA_ENV | |||||
#undef ICV_DATA_ENV | |||||
#ifndef ICV_RT_SET | |||||
#define ICV_RT_SET(Name, RTL) | |||||
#endif | |||||
#define __ICV_RT_SET(Name, RTL) ICV_RT_SET(ICV_##Name, OMPRTL_##RTL) | |||||
__ICV_RT_SET(nthreads, omp_set_num_threads) | |||||
#undef __ICV_RT_SET | |||||
#undef ICV_RT_SET | |||||
#ifndef ICV_RT_GET | |||||
#define ICV_RT_GET(Name, RTL) | |||||
#endif | |||||
#define __ICV_RT_GET(Name, RTL) ICV_RT_GET(ICV_##Name, OMPRTL_##RTL) | |||||
__ICV_RT_GET(nthreads, omp_get_max_threads) | |||||
__ICV_RT_GET(active_levels, omp_get_active_level) | |||||
__ICV_RT_GET(cancel, omp_get_cancellation) | |||||
#undef __ICV_RT_GET | |||||
#undef ICV_RT_GET | |||||
///} | |||||
/// Runtime library function (and their attributes) | /// Runtime library function (and their attributes) | ||||
/// | /// | ||||
///{ | ///{ | ||||
#ifndef OMP_RTL | #ifndef OMP_RTL | ||||
#define OMP_RTL(Enum, Str, IsVarArg, ReturnType, ...) | #define OMP_RTL(Enum, Str, IsVarArg, ReturnType, ...) | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 1,526 Lines • Show Last 20 Lines |
Is it possible to use a different name than FALSE here, because it will fail to compile if the system headers contain a FALSE define? Maybe something like ICV_FALSE to avoid conflicts.