Following approach suggested by @hpkfft.
vector::isContiguousSlice
MemRefType.get_strides_and_offset
See https://mlir.llvm.org/ for more information.