[Mlir-commits] [mlir] Make createReadOrMaskedRead and isValidMaskedInputVector vector utilities (PR #89119)
Lubomir Litchev
llvmlistbot at llvm.org
Fri Apr 19 10:27:46 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.
----------------
LLITCHEV wrote:
> useInBoundsInsteadOfMasking
I renamed them, since I'm moving the code as utility methods. Thanks!
https://github.com/llvm/llvm-project/pull/89119
More information about the Mlir-commits
mailing list