https://github.com/ziqingluo-90 approved this pull request. Thank you, this is good I think. We can benefit this downstream as well. Feel free to merge after addressing the comments. https://github.com/llvm/llvm-project/pull/175749