diff --git a/mlir/include/mlir/Dialect/Arithmetic/IR/ArithmeticOps.td b/mlir/include/mlir/Dialect/Arithmetic/IR/ArithmeticOps.td --- a/mlir/include/mlir/Dialect/Arithmetic/IR/ArithmeticOps.td +++ b/mlir/include/mlir/Dialect/Arithmetic/IR/ArithmeticOps.td @@ -92,16 +92,16 @@ // Cast from an integer type to another integer type. class Arith_IToICastOp traits = []> : Arith_CastOp; + SignlessFixedWidthIntegerLike, traits>; // Cast from an integer type to a floating point type. class Arith_IToFCastOp traits = []> : - Arith_CastOp; + Arith_CastOp; // Cast from a floating point type to an integer type. class Arith_FToICastOp traits = []> : - Arith_CastOp; + Arith_CastOp; // Cast from a floating point type to another floating point type. class Arith_FToFCastOp traits = []> : - Arith_CastOp; + Arith_CastOp; // Base class for compare operations. Requires two operands of the same type // and returns a single `BoolLike` result. If the operand type is a vector or