https://github.com/lhames approved this pull request. Other than the deinitialize fix this looks good to me. Thanks for working on this @SahilPatidar, and for your patience with this review! https://github.com/llvm/llvm-project/pull/97441