]> granicus.if.org Git - clang/commit
[OpenMP] Capture global variables in target regions.
authorSamuel Antao <sfantao@us.ibm.com>
Fri, 2 Oct 2015 17:14:03 +0000 (17:14 +0000)
committerSamuel Antao <sfantao@us.ibm.com>
Fri, 2 Oct 2015 17:14:03 +0000 (17:14 +0000)
commit9ab6fa52ec594402394ab721ba426d10ffc9a060
tree43c5c063f86a4851ae757e4084f09de7feb16a72
parentf44dd1db7139058b74d133feef419076c20a0573
[OpenMP] Capture global variables in target regions.

All global variables that are not enclosed in a declare target region
must be captured in the target region as local variables do. Currently,
there is no support for declare target, so this patch adds support for
capturing all the global variables used in a the target region.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249154 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/OpenMPKinds.h
include/clang/Sema/Sema.h
lib/Basic/OpenMPKinds.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaOpenMP.cpp
test/OpenMP/target_codegen_global_capture.cpp [new file with mode: 0644]