jansvoboda11 wrote: I put up https://github.com/llvm/llvm-project/pull/146766 and https://github.com/llvm/llvm-project/pull/146910. Will rebase this PR on top of those once those get approved & merged. https://github.com/llvm/llvm-project/pull/146422