[all-commits] [llvm/llvm-project] 6f6275: [MLIR][OpenMP] NFC: Update parallel workshare loop...

Sergio Afonso via All-commits all-commits at lists.llvm.org
Tue Aug 27 04:57:56 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f62757e779492b288a98c7c2e27eba95a551e3b
      https://github.com/llvm/llvm-project/commit/6f62757e779492b288a98c7c2e27eba95a551e3b
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2024-08-27 (Tue, 27 Aug 2024)

  Changed paths:
    M mlir/test/Dialect/OpenMP/ops.mlir
    M mlir/test/Target/LLVMIR/openmp-reduction.mlir

  Log Message:
  -----------
  [MLIR][OpenMP] NFC: Update parallel workshare loop reduction tests (#105835)

This patch updates MLIR tests for `omp.parallel` + `omp.wsloop`
reductions to move the reduction clause into `omp.wsloop` rather than
the parent `omp.parallel`, as mandated by the spec for these cases and
also to match what Flang is already producing for `parallel do
reduction(...)` combined constructs.

>From the OpenMP Spec version 5.2, section 17.2:

> The effect of the reduction clause is as if it is applied to all leaf
constructs that permit the clause, except for the following constructs:
> - The `parallel` construct, when combined with the `sections`,
worksharing-loop, `loop`, or `taskloop` construct; [...]



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