[OpenMP] Codegen for use_device_ptr clause.
authorSamuel Antao <sfantao@us.ibm.com>
Thu, 28 Jul 2016 14:23:26 +0000 (14:23 +0000)
committerSamuel Antao <sfantao@us.ibm.com>
Thu, 28 Jul 2016 14:23:26 +0000 (14:23 +0000)
commitcc10b85789a03b2b32d5b9c5873cdbb1ecac82b0
tree6ec7eb5d8945e8937487aab4fef38be1f0591346
parent19459580afe9ca86af24e71470e7fd413b0852e2
[OpenMP] Codegen for use_device_ptr clause.

Summary: This patch adds support for the use_device_ptr clause. It includes changes in SEMA that could not be tested without codegen, namely, the use of the first private logic and mappable expressions support.

Reviewers: hfinkel, carlo.bertolli, arpith-jacob, kkwli0, ABataev

Subscribers: caomhin, cfe-commits

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

llvm-svn: 276977
clang/include/clang/AST/OpenMPClause.h
clang/lib/AST/OpenMPClause.cpp
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/lib/CodeGen/CGOpenMPRuntime.h
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/lib/Sema/SemaOpenMP.cpp
clang/lib/Serialization/ASTReaderStmt.cpp
clang/lib/Serialization/ASTWriterStmt.cpp
clang/test/OpenMP/target_data_use_device_ptr_codegen.cpp [new file with mode: 0644]