[Mlir-commits] [mlir] [mlir][vector][memref] Add `alignment` attribute to memory access ops (PR #144344)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Fri Jun 20 02:25:50 PDT 2025


================
@@ -1217,6 +1217,11 @@ def LoadOp : MemRef_Op<"load",
     be reused in the cache. For details, refer to the
     [https://llvm.org/docs/LangRef.html#load-instruction](LLVM load instruction).
 
+    An optional `alignment` attribute allows to specify the byte alignment of the
+    load operation. It must be a positive power of 2. The operation must access
----------------
ftynse wrote:

Is it really worth the complexity? A simple three-line check in the verifier should do the trick.

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


More information about the Mlir-commits mailing list