[Mlir-commits] [mlir] [mlir][vector] Add `ShapeCastCreateMaskFolderLeadingOneDim` (PR #219494)

Federico Bruzzone llvmlistbot at llvm.org
Sat Aug 29 02:16:26 PDT 2026


================
@@ -6974,9 +6974,114 @@ static VectorType trimTrailingOneDims(VectorType oldType) {
   return VectorType::get(newShape, oldType.getElementType(), newScalableDims);
 }
 
+/// Helper function that computes a new vector type based on the input vector
+/// type by removing the trailing one dims:
+///
+///   vector<4x1x1xi1> --> vector<4x1xi1>
+///
----------------
FedericoBruzzone wrote:

This docs should be related to _leading unit dims_ rather than for the trailing one, right?

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


More information about the Mlir-commits mailing list