[Mlir-commits] [mlir] 96ac627 - [mlir][vector][nfc] Update vector load/store doc wrt unit strides. (#109267)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Sep 19 04:52:37 PDT 2024
Author: Ivan Butygin
Date: 2024-09-19T14:52:35+03:00
New Revision: 96ac627238dc515efdd61e5ddeda78cd17014fa5
URL: https://github.com/llvm/llvm-project/commit/96ac627238dc515efdd61e5ddeda78cd17014fa5
DIFF: https://github.com/llvm/llvm-project/commit/96ac627238dc515efdd61e5ddeda78cd17014fa5.diff
LOG: [mlir][vector][nfc] Update vector load/store doc wrt unit strides. (#109267)
Follow up to https://github.com/llvm/llvm-project/pull/108998.
Non-contiguous strides are allowed now for 1-element vector load/stores.
Added:
Modified:
mlir/include/mlir/Dialect/Vector/IR/VectorOps.td
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td b/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td
index b96f5c2651bce5..b6d2cc29cd1bf8 100644
--- a/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td
+++ b/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td
@@ -1652,9 +1652,10 @@ def Vector_LoadOp : Vector_Op<"load"> {
based on the element type of the memref. The shape of the result vector
type determines the shape of the slice read from the start memory address.
The elements along each dimension of the slice are strided by the memref
- strides. Only unit strides are allowed along the most minor memref
- dimension. These constraints guarantee that elements read along the first
- dimension of the slice are contiguous in memory.
+ strides. When loading more than 1 element, only unit strides are allowed
+ along the most minor memref dimension. These constraints guarantee that
+ elements read along the first dimension of the slice are contiguous in
+ memory.
The memref element type can be a scalar or a vector type. If the memref
element type is a scalar, it should match the element type of the result
@@ -1736,9 +1737,10 @@ def Vector_StoreOp : Vector_Op<"store"> {
memref dimension based on the element type of the memref. The shape of the
vector value to store determines the shape of the slice written from the
start memory address. The elements along each dimension of the slice are
- strided by the memref strides. Only unit strides are allowed along the most
- minor memref dimension. These constraints guarantee that elements written
- along the first dimension of the slice are contiguous in memory.
+ strided by the memref strides. When storing more than 1 element, only unit
+ strides are allowed along the most minor memref dimension. These constraints
+ guarantee that elements written along the first dimension of the slice are
+ contiguous in memory.
The memref element type can be a scalar or a vector type. If the memref
element type is a scalar, it should match the element type of the value
More information about the Mlir-commits
mailing list