summaryrefslogtreecommitdiff
path: root/include/clang/Parse
diff options
context:
space:
mode:
authorKelvin Li <kkwli0@gmail.com>2018-12-18 22:18:41 +0000
committerKelvin Li <kkwli0@gmail.com>2018-12-18 22:18:41 +0000
commitd4d7233447c39b5af77a7bf8f73b60fb53d5e9fd (patch)
tree2fcc928154ebed4a22305dfc3ba8aac71140b8a9 /include/clang/Parse
parentcffb335614b6cd0b9ef4efcc4055d8bb815e489b (diff)
downloadclang-d4d7233447c39b5af77a7bf8f73b60fb53d5e9fd.tar.gz
[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
Diffstat (limited to 'include/clang/Parse')
-rw-r--r--include/clang/Parse/Parser.h6
1 files changed, 5 insertions, 1 deletions
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<OpenMPMapModifierKind, OMPMapClause::NumberOfModifiers>
+ MapTypeModifiers;
+ SmallVector<SourceLocation, OMPMapClause::NumberOfModifiers>
+ MapTypeModifiersLoc;
OpenMPMapClauseKind MapType = OMPC_MAP_unknown;
bool IsMapTypeImplicit = false;
SourceLocation DepLinMapLoc;