[Mlir-commits] [mlir] [mlir][vector] Update helpers in `VectorEmulateNarrowType.cpp` (nfc) (PR #131527)

Alan Li llvmlistbot at llvm.org
Tue Mar 25 03:54:29 PDT 2025


================
@@ -198,85 +198,156 @@ static FailureOr<Operation *> getCompressedMaskOp(OpBuilder &rewriter,
   return *newMask;
 }
 
-/// Extracts 1-D subvector from a 1-D vector. It is a wrapper function for
-/// emitting `vector.extract_strided_slice`.
+/// Extracts 1-D subvector from a 1-D vector.
+///
+/// Given the input rank-1 source vector, extracts `numElemsToExtract` elements
+/// from `src`, starting at `offset`. The result is also a rank-1 vector:
+///
+///   vector<numElemsToExtract x !elType>
----------------
lialan wrote:

prefer `elemType`?

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


More information about the Mlir-commits mailing list