@@ -615,12 +615,6 @@ def MoveTileSliceToVectorOp : ArmSME_Op<"move_tile_slice_to_vector", [Pure,
615
615
}];
616
616
}
617
617
618
- class HasMatchingMaskTypeConstraint<string operand> :
619
- OptionalTypesMatchWith<
620
- "shape of `" # operand # "Mask` matches `" # operand # "`",
621
- operand, operand # "Mask",
622
- "::llvm::cast<mlir::VectorType>($_self).cloneWith({}, IntegerType::get($_ctxt, 1))">;
623
-
624
618
class OuterProductResultTileTypeConstraint<string operand> :
625
619
OptionalTypesMatchWith<operand # "type is derived from `lhs` and `rhs`",
626
620
"lhs", operand,
@@ -635,8 +629,8 @@ def OuterProductOp :
635
629
ArmSME_Op<"outerproduct", [Pure,
636
630
AttrSizedOperandSegments,
637
631
AllTypesMatch<["lhs", "rhs"]>,
638
- HasMatchingMaskTypeConstraint<"lhs">,
639
- HasMatchingMaskTypeConstraint<"rhs">,
632
+ HasMatchingMaskTypeConstraint<"lhs", "lhsMask" >,
633
+ HasMatchingMaskTypeConstraint<"rhs", "rhsMask" >,
640
634
PredOpTrait<
641
635
"both `lhsMask` and `rhsMask` should be provided or neither",
642
636
CPred<"bool(getLhsMask()) == bool(getRhsMask())">>,
0 commit comments