These aim to be slightly safer helpers for chopping up vector types.
Before this, if you wanted to drop the first dim of a vector type you
would do something like:
VectorType::get(vectorType.getShape().drop_front(), vectorType.getElementType(), vectorType.getScalableDims().drop_front());
However, it's easy to forget the scalable dims and do:
VectorType::get(vectorType.getShape().drop_front(), vectorType.getElementType());
Which drops all the scalable dims. There are still many other
error-prone cases with the current design of scalable vector types
(which may mean a larger refactor is needed), but these helpers make
things little nicer.
If you are into improving the VectorType, you could give a try at removing the cloneWith method in a separate patch :). It has been pointed out to me multiple times that it's not very helpful as it could just be replaced by a just a VectorType::get. I kind of agree. @nicolasvasilache