pbalcer wrote: I've cleaned up the implementation, updated the commit message to reflect the changes after the discussion (updating the existing API), and undrafted the PR. https://github.com/llvm/llvm-project/pull/194333