diff --git a/mlir/include/mlir/IR/OpBase.td b/mlir/include/mlir/IR/OpBase.td --- a/mlir/include/mlir/IR/OpBase.td +++ b/mlir/include/mlir/IR/OpBase.td @@ -1806,6 +1806,10 @@ !interleave(!foreach(con, constraints, con.summary), " and ")> { } +class IntNEQValue : AttrConstraint< + CPred<"::llvm::cast<::mlir::IntegerAttr>($_self).getInt() != " # n>, + "whose minimum value is " # n>; + class IntMinValue : AttrConstraint< CPred<"::llvm::cast<::mlir::IntegerAttr>($_self).getInt() >= " # n>, "whose minimum value is " # n>;