[llvm-branch-commits] [mlir] [mlir][vector] Simplify createReadOrMaskedRead (PR #163736)
Adam Siemieniuk via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Oct 16 07:50:03 PDT 2025
================
@@ -219,18 +219,16 @@ bool isLinearizableVector(VectorType type);
/// Creates a TransferReadOp from `source`.
///
-/// The shape of the vector to read is specified via `inputVectorSizes`. If the
-/// shape of the output vector differs from the shape of the value being read,
-/// masking is used to avoid out-of-bounds accesses. Set
+/// If the shape of vector to read differs from the shape of the value being
+/// read, masking is used to avoid out-of-bounds accesses. Set
/// `useInBoundsInsteadOfMasking` to `true` to use the "in_bounds" attribute
/// instead of explicit masks.
///
/// Note: all read offsets are set to 0.
Value createReadOrMaskedRead(OpBuilder &builder, Location loc, Value source,
- ArrayRef<int64_t> inputVectorSizes,
+ VectorType &vecToReadTy,
----------------
adam-smnk wrote:
Doubt it makes any difference considering whole codebase 😅
Perhaps at least `const` for good measure?
https://github.com/llvm/llvm-project/pull/163736
More information about the llvm-branch-commits
mailing list