[all-commits] [llvm/llvm-project] 11dad2: [flang][OpenMP] - Add `MapInfoOp` instances for ta...

Pranav Bhandarkar via All-commits all-commits at lists.llvm.org
Sat Oct 19 23:02:00 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 11dad2fa5138a50d60a5a34a2c7e074b976820e2
      https://github.com/llvm/llvm-project/commit/11dad2fa5138a50d60a5a34a2c7e074b976820e2
  Author: Pranav Bhandarkar <pranav.bhandarkar at amd.com>
  Date:   2024-10-20 (Sun, 20 Oct 2024)

  Changed paths:
    M flang/include/flang/Optimizer/OpenMP/Passes.td
    M flang/lib/Optimizer/OpenMP/CMakeLists.txt
    A flang/lib/Optimizer/OpenMP/MapsForPrivatizedSymbols.cpp
    M flang/lib/Optimizer/Passes/Pipelines.cpp
    M flang/test/Lower/OpenMP/DelayedPrivatization/target-private-allocatable.f90
    M flang/test/Lower/OpenMP/DelayedPrivatization/target-private-multiple-variables.f90
    A flang/test/Transforms/omp-maps-for-privatized-symbols.fir
    M mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td

  Log Message:
  -----------
  [flang][OpenMP] - Add `MapInfoOp` instances for target private variables when needed (#109862)

This PR adds an OpenMP dialect related pass for FIR/HLFIR which creates
`MapInfoOp` instances for certain privatized symbols. For example, if an
allocatable variable is used in a private clause attached to a
`omp.target` op, then the allocatable variable's descriptor will be
needed on the device (e.g. GPU). This descriptor needs to be separately
mapped onto the device. This pass creates the necessary `omp.map.info`
ops for this.



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