Is that possible to add Float8Type as a derived class of FloatType?
In C++, we can add Float8Type as a derived class of FloatType by using
class Float8Type : public FloatType
.
However, in MLIR, we need to determine if Float8Type is FloatType by calling
ty.isa<FloatType>
, which is hardcoded as
inline bool FloatType::classof(Type type) {
return type.isa<BFloat16Type, Float16Type, Float32Type, Float64Type,
Float80Type, Float128Type>();
}
. This suggests that Float8Type is not FloatType.
Is that possible to make Float8Type a FloatType without touching FloatType::classof(…)?
Thanks!