[Mlir-commits] [mlir] Add `alignment` attribute to MemRef/Vector memory access ops (PR #144344)

Krzysztof Drewniak llvmlistbot at llvm.org
Mon Jun 16 09:05:06 PDT 2025


================
@@ -1924,13 +1962,30 @@ def MemRef_StoreOp : MemRef_Op<"store",
                        Arg<AnyMemRef, "the reference to store to",
                            [MemWrite]>:$memref,
                        Variadic<Index>:$indices,
-                       DefaultValuedOptionalAttr<BoolAttr, "false">:$nontemporal);
+                       DefaultValuedOptionalAttr<BoolAttr, "false">:$nontemporal,
+                       ConfinedAttr<OptionalAttr<I32Attr>,
+                                    [IntPositive]>:$alignment);
 
   let builders = [
+    OpBuilder<(ins "Value":$valueToStore,
----------------
krzysz00 wrote:

Please update documentation - also, we'll want to clarify the units on the alignment (bytes? elements?) and whether there's a power-of-two requirement

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


More information about the Mlir-commits mailing list