[Mlir-commits] [mlir] [mlir][SPIR-V] Support floating-point atomic_rmw addf in MemRefToSPIRV (PR #202330)
Igor Wodiany
llvmlistbot at llvm.org
Mon Jun 8 05:50:46 PDT 2026
================
@@ -546,6 +543,8 @@ AtomicRMWOpPattern::matchAndRewrite(memref::AtomicRMWOp atomicOp,
atomicOp,
"sub-element-width atomic ops unsupported with Kernel capability");
+ auto dstType = cast<IntegerType>(storageElemType);
----------------
IgWod wrote:
Why is it safe to cast float to int as the `dstType`?
https://github.com/llvm/llvm-project/pull/202330
More information about the Mlir-commits
mailing list