[Mlir-commits] [mlir] Make createReadOrMaskedRead and isValidMaskedInputVector vector utilities (PR #89119)

Prashant Kumar llvmlistbot at llvm.org
Fri Apr 19 11:11:04 PDT 2024


================
@@ -180,6 +180,29 @@ struct MaskableOpRewritePattern : OpRewritePattern<SourceOp> {
 /// are not linearizable.
 bool isLinearizableVector(VectorType type);
 
+/// Create a TransferReadOp from `source` with static shape `readShape`. If the
+/// vector type for the read is not the same as the type of `source`, then a
+/// mask is created on the read, if use of mask is specified or the bounds on a
+/// dimension are different.
+///
+/// `enableMasking` if false, the inBoundsVal values are set properly, based on
----------------
pashu123 wrote:

We need to update the doc comments w.r.t `useInBoundsInsteadOfMasking`.

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


More information about the Mlir-commits mailing list