20 using namespace types;
25 #include "llvm/Frontend/OpenMP/OMPKinds.def" 26 .Default(OMPD_unknown);
31 #define OMP_DIRECTIVE(Enum, Str) \ 34 #include "llvm/Frontend/OpenMP/OMPKinds.def" 46 #define OMP_TYPE(VarName, InitValue) Type *llvm::omp::types::VarName = nullptr; 47 #define OMP_FUNCTION_TYPE(VarName, IsVarArg, ReturnType, ...) \ 48 FunctionType *llvm::omp::types::VarName = nullptr; \ 49 PointerType *llvm::omp::types::VarName##Ptr = nullptr; 50 #define OMP_STRUCT_TYPE(VarName, StrName, ...) \ 51 StructType *llvm::omp::types::VarName = nullptr; \ 52 PointerType *llvm::omp::types::VarName##Ptr = nullptr; 53 #include "llvm/Frontend/OpenMP/OMPKinds.def" 65 #define OMP_TYPE(VarName, InitValue) VarName = InitValue; 66 #define OMP_FUNCTION_TYPE(VarName, IsVarArg, ReturnType, ...) \ 67 VarName = FunctionType::get(ReturnType, {__VA_ARGS__}, IsVarArg); \ 68 VarName##Ptr = PointerType::getUnqual(VarName); 69 #define OMP_STRUCT_TYPE(VarName, StructName, ...) \ 70 T = M.getTypeByName(StructName); \ 72 T = StructType::create(Ctx, {__VA_ARGS__}, StructName); \ 74 VarName##Ptr = PointerType::getUnqual(T); 75 #include "llvm/Frontend/OpenMP/OMPKinds.def" 79 #define OMP_TYPE(VarName, InitValue) VarName = nullptr; 80 #define OMP_FUNCTION_TYPE(VarName, IsVarArg, ReturnType, ...) \ 82 VarName##Ptr = nullptr; 83 #define OMP_STRUCT_TYPE(VarName, StrName, ...) \ 85 VarName##Ptr = nullptr; 86 #include "llvm/Frontend/OpenMP/OMPKinds.def" This class represents lattice values for constants.
A Module instance is used to store all the information related to an LLVM module. ...
#define OMP_DIRECTIVE(Enum,...)
Make the enum values available in the llvm::omp namespace.
Class to represent struct types.
LLVMContext & getContext() const
Get the global data context.
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.
A switch()-like statement whose cases are string literals.
This is an important class for using LLVM in a threaded context.
This file defines constans and helpers used when dealing with OpenMP.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
Module.h This file contains the declarations for the Module class.
StringRef getOpenMPDirectiveName(Directive D)
Return a textual representation of the directive D.
void uninitializeTypes()
Helper to uninitialize all types defined in OpenMP/OMPKinds.def.
StringRef - Represent a constant reference to a string, i.e.