From d4d7233447c39b5af77a7bf8f73b60fb53d5e9fd Mon Sep 17 00:00:00 2001 From: Kelvin Li Date: Tue, 18 Dec 2018 22:18:41 +0000 Subject: [OPENMP] parsing and sema support for 'close' map-type-modifier A map clause with the close map-type-modifier is a hint to prefer that the variables are mapped using a copy into faster memory. Patch by Ahsan Saghir (saghir) Differential Revision: https://reviews.llvm.org/D55719 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349551 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Parse/Parser.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/clang/Parse') diff --git a/include/clang/Parse/Parser.h b/include/clang/Parse/Parser.h index 09e81d22ae..46e4431913 100644 --- a/include/clang/Parse/Parser.h +++ b/include/clang/Parse/Parser.h @@ -14,6 +14,7 @@ #ifndef LLVM_CLANG_PARSE_PARSER_H #define LLVM_CLANG_PARSE_PARSER_H +#include "clang/AST/OpenMPClause.h" #include "clang/AST/Availability.h" #include "clang/Basic/BitmaskEnum.h" #include "clang/Basic/OpenMPKinds.h" @@ -2876,7 +2877,10 @@ public: DeclarationNameInfo ReductionId; OpenMPDependClauseKind DepKind = OMPC_DEPEND_unknown; OpenMPLinearClauseKind LinKind = OMPC_LINEAR_val; - OpenMPMapClauseKind MapTypeModifier = OMPC_MAP_unknown; + SmallVector + MapTypeModifiers; + SmallVector + MapTypeModifiersLoc; OpenMPMapClauseKind MapType = OMPC_MAP_unknown; bool IsMapTypeImplicit = false; SourceLocation DepLinMapLoc; -- cgit v1.2.1