We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c796900 commit 77d307fCopy full SHA for 77d307f
mlir/include/mlir/IR/CommonAttrConstraints.td
@@ -773,6 +773,10 @@ def IntPositive : AttrConstraint<
773
CPred<"::llvm::cast<::mlir::IntegerAttr>($_self).getValue().isStrictlyPositive()">,
774
"whose value is positive">;
775
776
+class ArrayMaxCount<int n> : AttrConstraint<
777
+ CPred<"::llvm::cast<::mlir::ArrayAttr>($_self).size() <= " # n>,
778
+ "with at most " # n # " elements">;
779
+
780
class ArrayMinCount<int n> : AttrConstraint<
781
CPred<"::llvm::cast<::mlir::ArrayAttr>($_self).size() >= " # n>,
782
"with at least " # n # " elements">;
0 commit comments