]> granicus.if.org Git - clang/commit
[OpenMP] Initial implementation of parse+sema for clause use_device_ptr of 'target...
authorCarlo Bertolli <cbertol@us.ibm.com>
Wed, 13 Jul 2016 15:37:16 +0000 (15:37 +0000)
committerCarlo Bertolli <cbertol@us.ibm.com>
Wed, 13 Jul 2016 15:37:16 +0000 (15:37 +0000)
commit39ba7a70d528a5d2cdf53f102b412c90f931414c
tree64221dc51284f6434fd66732b85f87e52578a16b
parent4e7c8ba2f78c17974062fc0f239f4ed0b87ed611
[OpenMP] Initial implementation of parse+sema for clause use_device_ptr of 'target data'

http://reviews.llvm.org/D21904

This patch is similar to the implementation of 'private' clause: it adds a list of private pointers to be used within the target data region to store the device pointers returned by the runtime.
Please refer to the following document for a full description of what the runtime witll return in this case (page 10 and 11):
https://github.com/clang-omp/OffloadingDesign

I am happy to answer any question related to the runtime interface to help reviewing this patch.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@275271 91177308-0d34-0410-b5e6-96231b3b80d8
18 files changed:
include/clang/AST/OpenMPClause.h
include/clang/AST/RecursiveASTVisitor.h
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Basic/OpenMPKinds.def
include/clang/Sema/Sema.h
lib/AST/OpenMPClause.cpp
lib/AST/StmtPrinter.cpp
lib/AST/StmtProfile.cpp
lib/Basic/OpenMPKinds.cpp
lib/CodeGen/CGStmtOpenMP.cpp
lib/Parse/ParseOpenMP.cpp
lib/Sema/SemaOpenMP.cpp
lib/Sema/TreeTransform.h
lib/Serialization/ASTReaderStmt.cpp
lib/Serialization/ASTWriterStmt.cpp
test/OpenMP/target_data_use_device_ptr_ast_print.cpp [new file with mode: 0644]
test/OpenMP/target_data_use_device_ptr_messages.cpp [new file with mode: 0644]
tools/libclang/CIndex.cpp