RankedShapedType is a sub-interface of ShapedType and implemented by RankedTensorType, MemRefType and VectorType. Interface methods and helper methods that only make sense for ranked types are moved to RankedShapedType. ShapedType now only has interface methods and helper functions that are guaranteed to be supported by the type (no more failed runtime assertions).
RFC: https://discourse.llvm.org/t/rfc-shapedtype-type-interface-cleanup/69998
Depends On: D148488