[PATCH] D144993: [OpenMP]Emit captured decls for target data if no devices were specified.

Alexey Bataev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 28 11:20:14 PST 2023


ABataev created this revision.
ABataev added a reviewer: jhuber6.
Herald added subscribers: guansong, yaxunl.
Herald added a project: All.
ABataev requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.
Herald added a project: clang.

If use_device_ptr/use_device_addr clauses are used on target data
directive and no device was specified during the compilation, only host
part should be emitted. But it still required to emit captured decls for
partially mapped data fields.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D144993

Files:
  clang/lib/CodeGen/CGStmtOpenMP.cpp
  clang/test/OpenMP/target_data_no_device_codegen.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144993.501236.patch
Type: text/x-patch
Size: 5837 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230228/7d832fb2/attachment-0001.bin>


More information about the cfe-commits mailing list