[Mlir-commits] [mlir] [MLIR][Vector] Add unroll pattern for vector.shape_cast (PR #164010)
Jakub Kuderski
llvmlistbot at llvm.org
Tue Oct 21 23:00:27 PDT 2025
================
@@ -75,6 +75,49 @@ static SmallVector<Value> sliceLoadStoreIndices(PatternRewriter &rewriter,
return indices;
}
+/// Creates a result tile by extracting individual elements from the source
+/// and inserting them at the correct positions in the tile.
+static Value createTileFromElements(PatternRewriter &rewriter, Location loc,
+ Value source, ArrayRef<int64_t> sourceShape,
+ ArrayRef<int64_t> resultShape,
+ ArrayRef<int64_t> tileOffsets,
+ ArrayRef<int64_t> tileShape,
+ VectorType tileType) {
+ // Initialize tile with zeros.
+ Value tile = rewriter.create<arith::ConstantOp>(
----------------
kuhar wrote:
create methods are deprecated; use free functions instead
https://github.com/llvm/llvm-project/pull/164010
More information about the Mlir-commits
mailing list