// A primitive type that can represent a real value. This is either a
// floating point value or a quantized type.
def quant_RealPrimitiveType :
- Type<Or<[Float.predicate, quant_QuantizedType.predicate]>,
+ Type<Or<[AnyFloat.predicate, quant_QuantizedType.predicate]>,
"real valued primitive (float or quantized type)">;
// A primitive type that can represent a storage value. This is either an
// integer or quantized type.
def quant_StoragePrimitiveType :
- Type<Or<[Integer.predicate, quant_QuantizedType.predicate]>,
+ Type<Or<[AnyInteger.predicate, quant_QuantizedType.predicate]>,
"quantized storage primitive (integer or quantized type)">;
// A primitive or container of RealPrimitiveType.
// Integer types.
// Any integer type irrespective of its width.
-def Integer : Type<CPred<"$_self.isa<IntegerType>()">, "integer">;
+def AnyInteger : Type<CPred<"$_self.isa<IntegerType>()">, "integer">;
// Index type.
def Index : Type<CPred<"$_self.isa<IndexType>()">, "index">;
// Floating point types.
// Any float type irrespective of its width.
-def Float : Type<CPred<"$_self.isa<FloatType>()">, "floating-point">;
+def AnyFloat : Type<CPred<"$_self.isa<FloatType>()">, "floating-point">;
// Float type of a specific width.
class F<int width>
// Type constraint for integer-like types: integers, indices, vectors of
// integers, tensors of integers.
-def IntegerLike : TypeConstraint<Or<[Integer.predicate, Index.predicate,
- VectorOf<[Integer]>.predicate, TensorOf<[Integer]>.predicate]>,
+def IntegerLike : TypeConstraint<Or<[AnyInteger.predicate, Index.predicate,
+ VectorOf<[AnyInteger]>.predicate, TensorOf<[AnyInteger]>.predicate]>,
"integer-like">;
// Type constraint for float-like types: floats, vectors or tensors thereof.
-def FloatLike : TypeConstraint<Or<[Float.predicate,
- VectorOf<[Float]>.predicate, TensorOf<[Float]>.predicate]>,
+def FloatLike : TypeConstraint<Or<[AnyFloat.predicate,
+ VectorOf<[AnyFloat]>.predicate, TensorOf<[AnyFloat]>.predicate]>,
"floating-point-like">;