catap wrote: Here it is. I hope I haven't broke anything. We can discuss it and I'll cherry-pick agreed commits and rebase that branch. Not sure that I can make them smaller. https://github.com/llvm/llvm-project/pull/207609