Changeset View
Changeset View
Standalone View
Standalone View
llvm/include/llvm/Frontend/OpenMP/OMPConstants.h
Show All 23 Lines | |||||
class StructType; | class StructType; | ||||
class PointerType; | class PointerType; | ||||
class StringRef; | class StringRef; | ||||
class FunctionType; | class FunctionType; | ||||
namespace omp { | namespace omp { | ||||
LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE(); | LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE(); | ||||
/// IDs for all Internal Control Variables (ICVs). | |||||
enum class InternalControlVar { | |||||
#define ICV_DATA_ENV(Enum, ...) Enum, | |||||
#include "llvm/Frontend/OpenMP/OMPKinds.def" | |||||
}; | |||||
#define ICV_DATA_ENV(Enum, ...) \ | |||||
constexpr auto Enum = omp::InternalControlVar::Enum; | |||||
#include "llvm/Frontend/OpenMP/OMPKinds.def" | |||||
enum class ICVInitValue { | |||||
#define ICV_DATA_ENV(Enum, Name, EnvVar, Init) Init, | |||||
#include "llvm/Frontend/OpenMP/OMPKinds.def" | |||||
}; | |||||
#define ICV_DATA_ENV(Enum, Name, EnvVar, Init) \ | |||||
constexpr auto Init = omp::ICVInitValue::Init; | |||||
#include "llvm/Frontend/OpenMP/OMPKinds.def" | |||||
/// IDs for all omp runtime library (RTL) functions. | /// IDs for all omp runtime library (RTL) functions. | ||||
enum class RuntimeFunction { | enum class RuntimeFunction { | ||||
#define OMP_RTL(Enum, ...) Enum, | #define OMP_RTL(Enum, ...) Enum, | ||||
#include "llvm/Frontend/OpenMP/OMPKinds.def" | #include "llvm/Frontend/OpenMP/OMPKinds.def" | ||||
}; | }; | ||||
#define OMP_RTL(Enum, ...) constexpr auto Enum = omp::RuntimeFunction::Enum; | #define OMP_RTL(Enum, ...) constexpr auto Enum = omp::RuntimeFunction::Enum; | ||||
#include "llvm/Frontend/OpenMP/OMPKinds.def" | #include "llvm/Frontend/OpenMP/OMPKinds.def" | ||||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |