koachan wrote: I wanted to reopen this since it does seem useful but seems like all the relevant bits of this patch has been incorporated into https://github.com/llvm/llvm-project/pull/242578. https://github.com/llvm/llvm-project/pull/241809