[Mlir-commits] [mlir] [mlir][vector] Clarify the semantics of masking maps (PR #111383)

Han-Chung Wang llvmlistbot at llvm.org
Thu Oct 17 16:39:13 PDT 2024


================
@@ -360,6 +386,10 @@ VectorizationState::initState(RewriterBase &rewriter, LinalgOp linalgOp,
 Value VectorizationState::getOrCreateMaskFor(
     RewriterBase &rewriter, Operation *opToMask, LinalgOp linalgOp,
     std::optional<AffineMap> maybeMaskingMap) {
+
+  assert(!maybeMaskingMap ||
+         isValidMaskingMap(*maybeMaskingMap) && "Ill-formed masking map.");
----------------
hanhanW wrote:



```suggestion
  assert((!maybeMaskingMap ||
         isValidMaskingMap(*maybeMaskingMap)) && "Ill-formed masking map.");
```

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


More information about the Mlir-commits mailing list