diff options
author | Michael Kruse <llvm@meinersbur.de> | 2019-08-04 04:18:42 +0000 |
---|---|---|
committer | Michael Kruse <llvm@meinersbur.de> | 2019-08-04 04:18:42 +0000 |
commit | 5451513a3feaf16f384d82e2c793304e85dd67f6 (patch) | |
tree | 99124204c7799fe8a2613867554a27d66dafe6a9 /lib/AST/ASTContext.cpp | |
parent | 1a1c8f42c611feb7593f3f418e039c1633a775a8 (diff) | |
download | clang-5451513a3feaf16f384d82e2c793304e85dd67f6.tar.gz |
[OpenMP 5.0] Codegen support for user-defined mappers.
This patch implements the code generation for OpenMP 5.0 declare mapper
(user-defined mapper) constructs. For each declare mapper, a mapper
function is generated. These mapper functions will be called by the
runtime and/or other mapper functions to achieve user defined mapping.
The design slides can be found at
https://github.com/lingda-li/public-sharing/blob/master/mapper_runtime_design.pptx
Patch by Lingda Li <lildmh@gmail.com>
Differential Revision: https://reviews.llvm.org/D59474
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367773 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 468c7f4765..be7830640e 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -9860,7 +9860,7 @@ bool ASTContext::DeclMustBeEmitted(const Decl *D) { return !D->getDeclContext()->isDependentContext(); else if (isa<OMPAllocateDecl>(D)) return !D->getDeclContext()->isDependentContext(); - else if (isa<OMPDeclareReductionDecl>(D)) + else if (isa<OMPDeclareReductionDecl>(D) || isa<OMPDeclareMapperDecl>(D)) return !D->getDeclContext()->isDependentContext(); else if (isa<ImportDecl>(D)) return true; |