[OPENMP50]Codegen for use_device_addr clauses.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 25 May 2020 20:06:31 +0000 (16:06 -0400)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 11 Jun 2020 13:54:51 +0000 (09:54 -0400)
commit90b54fa045e3f8711e0bfb2d22626b28fd3b131f
tree86ca567f83ffe5ca1a4b4ee7456841e63e773be9
parent69bdfb075b293c4b3363f2dc0ac732ca03c3c9ca
[OPENMP50]Codegen for use_device_addr clauses.

Summary:
Added codegen for use_device_addr clause. The components of the list
items are mapped as a kind of RETURN components and then the returned
base address is used instead of the real address of the base declaration
used in the use_device_addr expressions.

Reviewers: jdoerfert

Subscribers: yaxunl, guansong, sstefan1, cfe-commits, caomhin

Tags: #clang

Differential Revision: https://reviews.llvm.org/D80730
clang/lib/AST/OpenMPClause.cpp
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/target_data_use_device_addr_codegen.cpp [new file with mode: 0644]