https://github.com/jh7370 requested changes to this pull request. I forgot to point out that this code has no testing in any form either, which is generally not acceptable for upstream code. https://github.com/llvm/llvm-project/pull/176087