[Mlir-commits] [flang] [llvm] [mlir] [openmp][mlir] Expand use of atomicrmw for atomic update (PR #215654)

Sairudra More llvmlistbot at llvm.org
Mon Oct 19 21:11:47 PDT 2026


================
@@ -3995,7 +3995,8 @@ class OpenMPIRBuilder {
   ///                   instructions.
   /// \param RMWOp		  The binary operation used for update. If
   ///                   operation is not supported by atomicRMW,
-  ///                   or belong to {FADD, FSUB, BAD_BINOP}.
+  ///                   or belong to {FMaximumNum, FMinimumNum, UDecWrap,
+  ///                   UIncWrap, USubCond, USubSat, Xchg, BAD_BINOP}.
----------------
Saieiei wrote:

nit: `Xchg` shouldn't be in this list or the two below, since `emitAtomicUpdate` emits `atomicrmw xchg` for integer, float and double types.

https://github.com/llvm/llvm-project/pull/215654


More information about the Mlir-commits mailing list