[Mlir-commits] [mlir] Make createReadOrMaskedRead and isValidMaskedInputVector vector utilities (PR #89119)
Prashant Kumar
llvmlistbot at llvm.org
Fri Apr 19 10:02:37 PDT 2024
================
@@ -180,6 +180,23 @@ 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.
+/// enableMasking if false, the inBoundsVal values are set properly, based on
+/// the rank dimensions of the source and destination tensors.
----------------
pashu123 wrote:
"I feel the same way too. Using `useInBoundsInsteadOfMasking` provides a better understanding of the entire context." I can modify the variables.
https://github.com/llvm/llvm-project/pull/89119
More information about the Mlir-commits
mailing list