[all-commits] [llvm/llvm-project] c03fd3: [flang] Changes to map variables in link clause o...

Anchu Rajendran S via All-commits all-commits at lists.llvm.org
Thu Mar 7 08:24:21 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c03fd37d9b61bc6063e4d6e983846f877e83ac67
      https://github.com/llvm/llvm-project/commit/c03fd37d9b61bc6063e4d6e983846f877e83ac67
  Author: Anchu Rajendran S <asudhaku at amd.com>
  Date:   2024-03-07 (Thu, 07 Mar 2024)

  Changed paths:
    M flang/lib/Lower/OpenMP/OpenMP.cpp
    A flang/test/Lower/OpenMP/declare-target-link-tarop-cap.f90
    R openmp/libomptarget/test/offloading/fortran/declare-target-array-in-target-region.f90
    A openmp/libomptarget/test/offloading/fortran/declare-target-vars-in-target-region.f90

  Log Message:
  -----------
  [flang] Changes to  map variables in link clause of declare target (#83643)

As per the OpenMP standard, "If a variable appears in a link clause on a
declare target directive that does not have a device_type clause with
the nohost device-type-description then it is treated as if it had
appeared in a map clause with a map-type of tofrom" is an implicit
mapping rule. Before this change, such variables were mapped as to by
default.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list