summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorMichael Kruse <llvm@meinersbur.de>2019-08-04 04:18:42 +0000
committerMichael Kruse <llvm@meinersbur.de>2019-08-04 04:18:42 +0000
commita04ffdbb05fb1de71ce3f27281eab7000bc34e13 (patch)
tree2e53cdd5b8f09491d22751775d478972d9ec2d28 /clang/lib/AST/ASTContext.cpp
parent2c7a8eaf3d3f50cebb0754e4eb56aeb6b7f21631 (diff)
downloadbcm5719-llvm-a04ffdbb05fb1de71ce3f27281eab7000bc34e13.tar.gz
bcm5719-llvm-a04ffdbb05fb1de71ce3f27281eab7000bc34e13.zip
[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 llvm-svn: 367773
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 468c7f47657..be7830640e7 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud