[Mlir-commits] [mlir] [mlir][vector] Extend vector.{insert|extract}_strided_slice (PR #79052)

Cullen Rhodes llvmlistbot at llvm.org
Tue Jan 23 05:55:25 PST 2024


================
@@ -2857,6 +2857,27 @@ LogicalResult InsertStridedSliceOp::verify() {
           /*halfOpen=*/false, /*min=*/1)))
     return failure();
 
+  unsigned idx = 0;
+  unsigned rankDiff = destShape.size() - sourceShape.size();
+  for (unsigned ub = sourceShape.size(); idx < ub; ++idx) {
+    if (sourceVectorType.getScalableDims()[idx] !=
+        destVectorType.getScalableDims()[idx + rankDiff]) {
+      return emitOpError("mismatching scalable flags (at source vector idx=")
----------------
c-rhodes wrote:

nit: prefer dim, flags is an implementation detail
```suggestion
      return emitOpError("mismatching scalable dim (at source vector idx=")
```

https://github.com/llvm/llvm-project/pull/79052


More information about the Mlir-commits mailing list