[Mlir-commits] [mlir] [mlir][vector] Add pattern to rewrite contiguous ExtractStridedSlice into Extract (PR #111541)

Benoit Jacob llvmlistbot at llvm.org
Tue Oct 8 08:36:27 PDT 2024


================
@@ -329,12 +329,76 @@ class DecomposeNDExtractStridedSlice
   }
 };
 
+static void populateFromInt64AttrArray(ArrayAttr arrayAttr,
+                                       SmallVectorImpl<int64_t> &results) {
+  for (auto attr : arrayAttr)
+    results.push_back(llvm::cast<IntegerAttr>(attr).getInt());
+}
----------------
bjacob wrote:

Thanks!

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


More information about the Mlir-commits mailing list