[OpenMP] Code generation for the is_device_ptr clause
authorSamuel Antao <sfantao@us.ibm.com>
Thu, 28 Jul 2016 14:25:09 +0000 (14:25 +0000)
committerSamuel Antao <sfantao@us.ibm.com>
Thu, 28 Jul 2016 14:25:09 +0000 (14:25 +0000)
commit6890b09634890ed9f145531d11d9982a31140533
tree27e7c9f2ecaad2c6cc4a4e805c8bf2b4af472628
parentcc10b85789a03b2b32d5b9c5873cdbb1ecac82b0
[OpenMP] Code generation for the is_device_ptr clause

Summary: This patch adds support for the is_device_ptr clause. It expands SEMA to use the mappable expression logic that can only be tested with code generation in place and check conflicts with other data sharing related clauses using the mappable expressions infrastructure.

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

Subscribers: caomhin, cfe-commits

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

llvm-svn: 276978
clang/include/clang/AST/OpenMPClause.h
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/AST/OpenMPClause.cpp
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/lib/Sema/SemaOpenMP.cpp
clang/lib/Serialization/ASTReaderStmt.cpp
clang/lib/Serialization/ASTWriterStmt.cpp
clang/test/OpenMP/target_is_device_ptr_codegen.cpp [new file with mode: 0644]
clang/test/OpenMP/target_is_device_ptr_messages.cpp