[Mlir-commits] [mlir] [mlir][vector] extend `createReadOrMaskedRead`/`createWriteOrMaskedWrite` with permutation map support (PR #202766)
Andrzej Warzyński
llvmlistbot at llvm.org
Thu Jun 11 02:25:35 PDT 2026
================
@@ -420,11 +420,34 @@ Value vector::createReadOrMaskedRead(OpBuilder &builder, Location loc,
useInBoundsInsteadOfMasking);
}
+/// Compute the in_bounds attribute for a transfer op given its permutation map
+/// and the memref being accessed. Dimension i is in-bounds when the map result
+/// is an AffineDimExpr pointing to a static memref dimension divisible by the
+/// vector size, or an AffineConstantExpr (broadcast).
+static SmallVector<bool> computeInBoundsFromPermutationMap(
+ AffineMap permutationMap, VectorType vectorType, MemRefType memrefType) {
----------------
banach-space wrote:
Thank you! As a co-maintainer, I try my best to support our contributors 🙏🏻
https://github.com/llvm/llvm-project/pull/202766
More information about the Mlir-commits
mailing list