[all-commits] [llvm/llvm-project] 8231dd: [flang][OpenMP] Skip runtime mapping with no offlo...

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Wed Jun 25 05:10:29 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8231dd71cb7dce489f4499a4e4f0ec149e858087
      https://github.com/llvm/llvm-project/commit/8231dd71cb7dce489f4499a4e4f0ec149e858087
  Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
  Date:   2025-06-25 (Wed, 25 Jun 2025)

  Changed paths:
    A flang/test/Lower/OpenMP/target-data-skip-mapper-calls.f90
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
    M mlir/test/Target/LLVMIR/omptarget-llvm.mlir
    M mlir/test/Target/LLVMIR/omptargetdata-nowait-llvm.mlir
    M mlir/test/Target/LLVMIR/openmp-data-target-device.mlir

  Log Message:
  -----------
  [flang][OpenMP] Skip runtime mapping with no offload targets (#145594)

When no offload targets are specified flang will avoid offloading for
"target" constructs, but not "target data" constructs. This patch makes
the behavior consistent across all offload-related operations.

While ignoring "target" may produce semantically incorrect code, it may
still be a useful debugging tool.

--
This reinstates commits 6ba1955 and 349f8d6, reverted due to compilation
failures in the gfortran test suite. These build problems were caused by
an unrelated issue (https://github.com/llvm/llvm-project/issues/145558)
which is now fixed.

Ref: https://github.com/llvm/llvm-project/pull/144534



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