[Mlir-commits] [mlir] [mlir][vector] Add alignment attribute to `maskedload` and `maskedstore` (PR #151690)
Jakub Kuderski
llvmlistbot at llvm.org
Tue Aug 5 09:17:11 PDT 2025
================
@@ -121,6 +121,25 @@ LogicalResult getVectorToLLVMAlignment(const LLVMTypeConverter &typeConverter,
return success();
}
+// Helper to resolve the alignment for vector load/store, gather and scatter
+// ops. First, this method will try to obtain the preferred alignment from the
+// load or store operation itself. If the store or load operation does not
+// contain any preferred alignment, then it will get alignment attribute through
+// the type or the backend.
+template <class LoadOrStoreOp>
+LogicalResult getVectorToLLVMAlignment(LoadOrStoreOp loadOrStoreOp,
----------------
kuhar wrote:
```suggestion
static LogicalResult getVectorToLLVMAlignment(LoadOrStoreOp loadOrStoreOp,
```
https://github.com/llvm/llvm-project/pull/151690
More information about the Mlir-commits
mailing list