[OCaml] Add missing TypeKinds, Opcode, and AtomicRMWBinOps
authorJosh Berdine <josh@berdine.net>
Fri, 12 Mar 2021 22:50:21 +0000 (22:50 +0000)
committerJosh Berdine <josh@berdine.net>
Tue, 16 Mar 2021 15:32:38 +0000 (15:32 +0000)
commitece6d8e72eaab1ce6b37c4f658d75ed787181174
tree45e96742fe9a09fd4d2f761790a7df0534d68cf9
parentff2dd8a21251ba0e6d284c9823ff1118a23b59ae
[OCaml] Add missing TypeKinds, Opcode, and AtomicRMWBinOps

There are several enum values that have been added to LLVM-C that are
missing from the OCaml bindings. The types defined in
bindings/ocaml/llvm/llvm.ml should be in sync with the corresponding
enum definitions in include/llvm-c/Core.h. The enum values are passed
from C to OCaml unmodified, and clients of the OCaml bindings
interpret them as tags of the corresponding OCaml types. So the only
changes needed are to add the missing constructors to the type
definitions, and to change the name of the maximum opcode in an
assertion.

Differential Revision: https://reviews.llvm.org/D98578
llvm/bindings/ocaml/llvm/llvm.ml
llvm/bindings/ocaml/llvm/llvm.mli
llvm/bindings/ocaml/llvm/llvm_ocaml.c