[Mlir-commits] [mlir] [mlir][vector] Add unroll patterns for vector.load and vector.store (PR #143420)
James Newling
llvmlistbot at llvm.org
Fri Jun 20 13:12:04 PDT 2025
================
@@ -54,6 +54,28 @@ static SmallVector<Value> sliceTransferIndices(ArrayRef<int64_t> elementOffsets,
return slicedIndices;
}
+// Compute the new indices by adding `offsets` to `originalIndices`.
+// If m < n (m = offsets.size(), n = originalIndices.size()),
+// then only the trailing m values in `originalIndices` are updated.
+static SmallVector<Value> computeIndices(PatternRewriter &rewriter,
----------------
newling wrote:
```suggestion
static SmallVector<Value> sliceLoadStoreIndices(PatternRewriter &rewriter,
```
To be consistent with `sliceTransferIndices`
https://github.com/llvm/llvm-project/pull/143420
More information about the Mlir-commits
mailing list