Skip to content

[mlir][vector][nfc] Update vector load/store doc wrt unit strides. #109267

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions mlir/include/mlir/Dialect/Vector/IR/VectorOps.td
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading