[flang-commits] [flang] [llvm] [mlir] [Flang][OpenMP]Handling restrictions of using Memory-Order-Clause with Atomic-Clause (PR #199636)
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Fri May 29 06:00:51 PDT 2026
================
@@ -1587,6 +1587,56 @@ void OmpStructureChecker::Enter(const parser::OpenMPAtomicConstruct &x) {
checkExclusive(atomic, "atomic", dirSpec.Clauses());
checkExclusive(memoryOrder, "memory-order", dirSpec.Clauses());
+ // Check for incompatible memory orderings on specific atomic operations.
----------------
kparzysz wrote:
Could you extract all this code you added into a separate function, like CheckMemoryOrder or something like that?
https://github.com/llvm/llvm-project/pull/199636
More information about the flang-commits
mailing list