https://github.com/damyanp requested changes to this pull request. There's been some discussion about the design for this offline that should be resolved before this PR is completed. https://github.com/llvm/llvm-project/pull/107954