abidh wrote: I have opened https://github.com/llvm/llvm-project/pull/146532 which is combination of https://github.com/llvm/llvm-project/pull/138039 and https://github.com/llvm/llvm-project/pull/138149. Closing it. https://github.com/llvm/llvm-project/pull/138149