================ @@ -438,6 +438,10 @@ class RankedSparseTensorOf<list<Type> allowedTypes> def AnyRankedSparseTensor : RankedSparseTensorOf<[AnyType]>; +class ScalarLikeOf<list<Type> allowedTypes> ---------------- PeimingLiu wrote: Yeah, agree. https://github.com/llvm/llvm-project/pull/66269