14 #ifndef LLVM_OPENMP_CONSTANTS_H 15 #define LLVM_OPENMP_CONSTANTS_H 32 #define OMP_DIRECTIVE(Enum, ...) Enum, 33 #include "llvm/Frontend/OpenMP/OMPKinds.def" 40 #define OMP_DIRECTIVE(Enum, ...) constexpr auto Enum = omp::Directive::Enum; 41 #include "llvm/Frontend/OpenMP/OMPKinds.def" 45 #define OMP_RTL(Enum, ...) Enum, 46 #include "llvm/Frontend/OpenMP/OMPKinds.def" 49 #define OMP_RTL(Enum, ...) constexpr auto Enum = omp::RuntimeFunction::Enum; 50 #include "llvm/Frontend/OpenMP/OMPKinds.def" 54 #define OMP_PROC_BIND_KIND(Enum, Str, Value) Enum = Value, 55 #include "llvm/Frontend/OpenMP/OMPKinds.def" 58 #define OMP_PROC_BIND_KIND(Enum, ...) \ 59 constexpr auto Enum = omp::ProcBindKind::Enum; 60 #include "llvm/Frontend/OpenMP/OMPKinds.def" 65 #define OMP_IDENT_FLAG(Enum, Str, Value) Enum = Value, 66 #include "llvm/Frontend/OpenMP/OMPKinds.def" 70 #define OMP_IDENT_FLAG(Enum, ...) constexpr auto Enum = omp::IdentFlag::Enum; 71 #include "llvm/Frontend/OpenMP/OMPKinds.def" 87 #define OMP_TYPE(VarName, InitValue) extern Type *VarName; 88 #define OMP_FUNCTION_TYPE(VarName, IsVarArg, ReturnType, ...) \ 89 extern FunctionType *VarName; \ 90 extern PointerType *VarName##Ptr; 91 #define OMP_STRUCT_TYPE(VarName, StrName, ...) \ 92 extern StructType *VarName; \ 93 extern PointerType *VarName##Ptr; 94 #include "llvm/Frontend/OpenMP/OMPKinds.def" 109 #endif // LLVM_OPENMP_CONSTANTS_H #define LLVM_MARK_AS_BITMASK_ENUM(LargestValue)
LLVM_MARK_AS_BITMASK_ENUM lets you opt in an individual enum type so you can perform bitwise operatio...
RuntimeFunction
IDs for all omp runtime library (RTL) functions.
This class represents lattice values for constants.
void initializeTypes(Module &M)
Helper to initialize all types defined in OpenMP/OMPKinds.def.
Directive getOpenMPDirectiveKind(StringRef Str)
Parse Str and return the directive it matches or OMPD_unknown if none.
Directive
IDs for all OpenMP directives.
ProcBindKind
IDs for the different proc bind kinds.
static GCRegistry::Add< StatepointGC > D("statepoint-example", "an example strategy for statepoint")
LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE()
StringRef getOpenMPDirectiveName(Directive D)
Return a textual representation of the directive D.
void uninitializeTypes()
Helper to uninitialize all types defined in OpenMP/OMPKinds.def.
IdentFlag
IDs for all omp runtime library ident_t flag encodings (see their defintion in openmp/runtime/src/kmp...