]> granicus.if.org Git - clang/commit
[OPENMP] Support for mapping of the lambdas in target regions.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 30 Oct 2018 15:50:12 +0000 (15:50 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 30 Oct 2018 15:50:12 +0000 (15:50 +0000)
commit36950cc24f63a783faf9a3db208120b496fd8a84
tree0dd9a969fc94917d72d13838a54f893b174aabf7
parentda5611addabdc63bc38861f9a00f3443fb6238c7
[OPENMP] Support for mapping of the lambdas in target regions.

Added support for mapping of lambdas in the target regions. It scans all
the captures by reference in the lambda, implicitly maps those variables
in the target region and then later reinstate the addresses of
references in lambda to the correct addresses of the captured|privatized
variables.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345609 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntime.cpp
lib/CodeGen/CGOpenMPRuntime.h
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
lib/CodeGen/CGOpenMPRuntimeNVPTX.h
lib/CodeGen/CGStmtOpenMP.cpp
lib/Sema/SemaOpenMP.cpp
test/OpenMP/nvptx_lambda_capturing.cpp [new file with mode: 0644]