[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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@276978 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/AST/OpenMPClause.h 65 additions, 21 deletionsinclude/clang/AST/OpenMPClause.h
- include/clang/Basic/DiagnosticSemaKinds.td 2 additions, 2 deletionsinclude/clang/Basic/DiagnosticSemaKinds.td
- lib/AST/OpenMPClause.cpp 44 additions, 13 deletionslib/AST/OpenMPClause.cpp
- lib/CodeGen/CGOpenMPRuntime.cpp 40 additions, 4 deletionslib/CodeGen/CGOpenMPRuntime.cpp
- lib/Sema/SemaOpenMP.cpp 99 additions, 25 deletionslib/Sema/SemaOpenMP.cpp
- lib/Serialization/ASTReaderStmt.cpp 43 additions, 3 deletionslib/Serialization/ASTReaderStmt.cpp
- lib/Serialization/ASTWriterStmt.cpp 14 additions, 2 deletionslib/Serialization/ASTWriterStmt.cpp
- test/OpenMP/target_is_device_ptr_codegen.cpp 293 additions, 0 deletionstest/OpenMP/target_is_device_ptr_codegen.cpp
- test/OpenMP/target_is_device_ptr_messages.cpp 34 additions, 0 deletionstest/OpenMP/target_is_device_ptr_messages.cpp
Loading
Please register or sign in to comment