kuhar wrote: Note: This PR is stacked on top of https://github.com/llvm/llvm-project/pull/66311, so please review the second commit only. Once the parent PR lands, I'll rebase this one. https://github.com/llvm/llvm-project/pull/66455