[Mlir-commits] [mlir] [mlir][Vector] Verify that masked ops implement MaskableOpInterface (PR #108123)
Mehdi Amini
llvmlistbot at llvm.org
Wed Sep 11 11:59:36 PDT 2024
================
@@ -6124,7 +6124,9 @@ LogicalResult MaskOp::verify() {
Block &block = getMaskRegion().getBlocks().front();
if (block.getOperations().empty())
return emitOpError("expects a terminator within the mask region");
- if (block.getOperations().size() > 2)
+
+ unsigned numMaskRegionOps = block.getOperations().size();
+ if (numMaskRegionOps > 2)
return emitOpError("expects only one operation to mask");
----------------
joker-eph wrote:
LG
https://github.com/llvm/llvm-project/pull/108123
More information about the Mlir-commits
mailing list