]> granicus.if.org Git - clang/commit
Added mapping for pointers captured in Lambdas in OpenMP target regions,
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 11 Jul 2019 13:54:26 +0000 (13:54 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 11 Jul 2019 13:54:26 +0000 (13:54 +0000)
commitbc548e7f331856bb324b8ee6e1a22f34004beb58
treeda928864d291a750962fd5463fc566dfe07f2f62
parent8734d09a4ec7e197df9fc0448f7ced7bdca17021
Added mapping for pointers captured in Lambdas in OpenMP target regions,
by David Truby.

Summary:
This adds a zero length array section mapping for each pointer captured by a lambda that is used in a target region, as per section 2.19.7.1 of the OpenMP 5 specification.

Reviewers: ABataev

Reviewed By: ABataev

Subscribers: guansong, jdoerfert, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D64558

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@365777 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntime.cpp
test/OpenMP/nvptx_lambda_pointer_capturing.cpp [new file with mode: 0644]