[all-commits] [llvm/llvm-project] acc30a: [OpenMP]Emit captured decls for target data if no ...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Tue Feb 28 12:21:35 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: acc30a169eabae8ae7d46e8dc3b6466abbc53dc4
      https://github.com/llvm/llvm-project/commit/acc30a169eabae8ae7d46e8dc3b6466abbc53dc4
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2023-02-28 (Tue, 28 Feb 2023)

  Changed paths:
    M clang/lib/CodeGen/CGStmtOpenMP.cpp
    A clang/test/OpenMP/target_data_no_device_codegen.cpp

  Log Message:
  -----------
  [OpenMP]Emit captured decls for target data if no devices were specified.

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.

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




More information about the All-commits mailing list