[Mlir-commits] [mlir] [MLIR][Vector] Add unrolling support for bitcast, interleave, and deinterleave ops (PR #194513)

Andrzej WarzyƄski llvmlistbot at llvm.org
Wed Apr 29 02:08:10 PDT 2026


================
@@ -1389,6 +1389,230 @@ struct UnrollShapeCastPattern : public OpRewritePattern<vector::ShapeCastOp> {
   vector::UnrollVectorOptions options;
 };
 
+// Unroll vector::BitCastOp into smaller tile-based bitcast operations.
+// Tiles the result vector into target shape chunks and bitcasts corresponding
+// source slices, accounting for element bitwidth ratios.
+// Example: bitcast v8f32 to v16f16 with target shape [4] unrolls into
+// multiple bitcast operations on 4-element tiles.
----------------
banach-space wrote:

[nit] Please reformat to match `UnrollInterleavePattern`

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


More information about the Mlir-commits mailing list