[all-commits] [llvm/llvm-project] 95b3e1: [flang][OpenMP] Accept firstprivate vars in copypr...

Leandro Lupori via All-commits all-commits at lists.llvm.org
Fri Feb 2 11:52:27 PST 2024


  Branch: refs/heads/users/luporl/copypriv-sema-omp
  Home:   https://github.com/llvm/llvm-project
  Commit: 95b3e146e863f494702a7cef60e9c9e89d8a162f
      https://github.com/llvm/llvm-project/commit/95b3e146e863f494702a7cef60e9c9e89d8a162f
  Author: Leandro Lupori <leandro.lupori at linaro.org>
  Date:   2024-02-02 (Fri, 02 Feb 2024)

  Changed paths:
    M flang/lib/Semantics/resolve-directives.cpp
    M flang/test/Semantics/OpenMP/copyprivate03.f90

  Log Message:
  -----------
  [flang][OpenMP] Accept firstprivate vars in copyprivate

This is patch 1 of 4, to add support for COPYPRIVATE.
Original PR: https://github.com/llvm/llvm-project/pull/73128


  Commit: 35da536f624157c37a003c2fb428ad9484392a9a
      https://github.com/llvm/llvm-project/commit/35da536f624157c37a003c2fb428ad9484392a9a
  Author: Leandro Lupori <leandro.lupori at linaro.org>
  Date:   2024-02-02 (Fri, 02 Feb 2024)

  Changed paths:
    M flang/lib/Lower/OpenMP.cpp
    M mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
    M mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
    M mlir/test/Dialect/OpenMP/invalid.mlir
    M mlir/test/Dialect/OpenMP/ops.mlir

  Log Message:
  -----------
  [mlir][OpenMP] Add copyprivate support to omp.single

This adds a new custom CopyPrivateVarList to the single operation.
Each list item is formed by a reference to the variable to be
updated, its type and the function to be used to perform the copy.

It will be translated to LLVM IR using OpenMP builder, that will
use the information in the copyprivate list to call
__kmpc_copyprivate.

This is patch 2 of 4, to add support for COPYPRIVATE in Flang.
Original PR: https://github.com/llvm/llvm-project/pull/73128


Compare: https://github.com/llvm/llvm-project/compare/95b3e146e863%5E...35da536f6241


More information about the All-commits mailing list