Current interface of reshape op takes new as shape as tensor/memref argument. This makes it harder to analyze and optimize the code (e.g. we had to allocate temporary memref just for the shape and hope it will be optimized away later). The only usecase for such interface I can think of is support of unranked types as output, but unranked types themselves are quite obscure and I don’t think much users need them.
So, I want to change reshape to take new shape as just a list of index values (and drop support for unranked output). We can introduce a separate op specifically for unranked reshape if someone really need it.