]> granicus.if.org Git - clang/commit
[OpenMP] Add function attribute for triggering data sharing.
authorGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>
Tue, 12 Dec 2017 21:38:43 +0000 (21:38 +0000)
committerGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>
Tue, 12 Dec 2017 21:38:43 +0000 (21:38 +0000)
commitbe56d0e7af81e7eac2b1c6fcf75cc5cec0de4b23
treedec4d5f17b4c91dee57c00cdef4059d0a2534ea9
parentc607ed2198755b84cd63e5cc4bbd3a0ba4279ea1
[OpenMP] Add function attribute for triggering data sharing.

Summary:
The backend should only emit data sharing code for the cases where it is needed.
A new function attribute is used by Clang to enable data sharing only for the cases where OpenMP semantics require it and there are variables that need to be shared.

Reviewers: hfinkel, Hahnfeld, ABataev, carlo.bertolli, caomhin

Reviewed By: ABataev

Subscribers: cfe-commits, jholewinski

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320527 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
test/OpenMP/nvptx_data_sharing.cpp