https://github.com/alan-j-hu approved this pull request. The OCaml tests pass, so I approve the OCaml-related changes. (Of course, I'm not an expert on the C API part.) https://github.com/llvm/llvm-project/pull/95535