[all-commits] [llvm/llvm-project] 941d2f: [acc][mlir] Add 'if-condition' to 'atomic' operati...
Erich Keane via All-commits
all-commits at lists.llvm.org
Mon Oct 20 06:46:20 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 941d2fdb947f6613607ca03b1b15218fbaccd9a4
https://github.com/llvm/llvm-project/commit/941d2fdb947f6613607ca03b1b15218fbaccd9a4
Author: Erich Keane <ekeane at nvidia.com>
Date: 2025-10-20 (Mon, 20 Oct 2025)
Changed paths:
M flang/lib/Lower/OpenACC.cpp
M mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
M mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
M mlir/test/Dialect/OpenACC/ops.mlir
Log Message:
-----------
[acc][mlir] Add 'if-condition' to 'atomic' operations. (#164003)
OpenACC 3.4 includes the ability to add an 'if' to an atomic operation.
>From the change log:
`Added the if clause to the atomic construct to enable conditional
atomic operations based867
on the parallelism strategy employed`
In 2.12, the C/C++ grammar is changed to say:
`#pragma acc atomic [ atomic-clause ] [ if( condition ) ] new-line`
With corresponding changes to the Fortran standard
This patch adds support to this for the dialect, so that Clang can use
it soon.
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