diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2019-03-12 18:52:33 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2019-03-12 18:52:33 +0000 |
commit | 9cc10fc926526139559a88d1ac2b13f563cba7f3 (patch) | |
tree | b75e2a82a4ab49ebd2f0eec49ff43ed33bafa748 /clang/lib/Basic/OpenMPKinds.cpp | |
parent | 85c2955f455ef12fc2c466b98794f9606684d070 (diff) | |
download | bcm5719-llvm-9cc10fc926526139559a88d1ac2b13f563cba7f3.tar.gz bcm5719-llvm-9cc10fc926526139559a88d1ac2b13f563cba7f3.zip |
[OPENMP 5.0]Initial support for 'allocator' clause.
Added parsing/sema analysis/serialization/deserialization for the
'allocator' clause of the 'allocate' directive.
llvm-svn: 355952
Diffstat (limited to 'clang/lib/Basic/OpenMPKinds.cpp')
-rw-r--r-- | clang/lib/Basic/OpenMPKinds.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/clang/lib/Basic/OpenMPKinds.cpp b/clang/lib/Basic/OpenMPKinds.cpp index 969828705f2..e4e8adda93b 100644 --- a/clang/lib/Basic/OpenMPKinds.cpp +++ b/clang/lib/Basic/OpenMPKinds.cpp @@ -155,6 +155,7 @@ unsigned clang::getOpenMPSimpleClauseType(OpenMPClauseKind Kind, case OMPC_num_threads: case OMPC_safelen: case OMPC_simdlen: + case OMPC_allocator: case OMPC_collapse: case OMPC_private: case OMPC_firstprivate: @@ -337,6 +338,7 @@ const char *clang::getOpenMPSimpleClauseTypeName(OpenMPClauseKind Kind, case OMPC_num_threads: case OMPC_safelen: case OMPC_simdlen: + case OMPC_allocator: case OMPC_collapse: case OMPC_private: case OMPC_firstprivate: @@ -810,11 +812,20 @@ bool clang::isAllowedClauseForDirective(OpenMPDirectiveKind DKind, break; } break; + case OMPD_allocate: + switch (CKind) { +#define OPENMP_ALLOCATE_CLAUSE(Name) \ + case OMPC_##Name: \ + return true; +#include "clang/Basic/OpenMPKinds.def" + default: + break; + } + break; case OMPD_declare_target: case OMPD_end_declare_target: case OMPD_unknown: case OMPD_threadprivate: - case OMPD_allocate: case OMPD_section: case OMPD_master: case OMPD_taskyield: |