[Mlir-commits] [mlir] [mlir][vector][memref] Add `alignment` attribute to memory access ops (PR #144344)
Jakub Kuderski
llvmlistbot at llvm.org
Mon Jun 16 09:10:35 PDT 2025
================
@@ -1227,7 +1227,45 @@ def LoadOp : MemRef_Op<"load",
let arguments = (ins Arg<AnyMemRef, "the reference to load from",
[MemRead]>:$memref,
Variadic<Index>:$indices,
- DefaultValuedOptionalAttr<BoolAttr, "false">:$nontemporal);
+ DefaultValuedOptionalAttr<BoolAttr, "false">:$nontemporal,
+ ConfinedAttr<OptionalAttr<I32Attr>,
----------------
kuhar wrote:
I think the `index` type is more appropriate, since pointers could be aligned to > 4GB in some cases.
https://github.com/llvm/llvm-project/pull/144344
More information about the Mlir-commits
mailing list