diff --git a/llvm/bindings/ocaml/llvm/llvm.ml b/llvm/bindings/ocaml/llvm/llvm.ml --- a/llvm/bindings/ocaml/llvm/llvm.ml +++ b/llvm/bindings/ocaml/llvm/llvm.ml @@ -42,6 +42,9 @@ | Metadata | X86_mmx | Token + | ScalableVector + | BFloat + | X86_amx end module Linkage = struct @@ -246,6 +249,7 @@ | CatchSwitch | FNeg | CallBr + | Freeze end module LandingPadClauseTy = struct @@ -288,6 +292,8 @@ | Min | UMax | UMin + | FAdd + | FSub end module ValueKind = struct diff --git a/llvm/bindings/ocaml/llvm/llvm.mli b/llvm/bindings/ocaml/llvm/llvm.mli --- a/llvm/bindings/ocaml/llvm/llvm.mli +++ b/llvm/bindings/ocaml/llvm/llvm.mli @@ -77,6 +77,9 @@ | Metadata | X86_mmx | Token + | ScalableVector + | BFloat + | X86_amx end (** The linkage of a global value, accessed with {!linkage} and @@ -268,6 +271,7 @@ | CatchSwitch | FNeg | CallBr + | Freeze end (** The type of a clause of a [landingpad] instruction. @@ -319,6 +323,8 @@ | Min | UMax | UMin + | FAdd + | FSub end (** The kind of an [llvalue], the result of [classify_value v]. diff --git a/llvm/bindings/ocaml/llvm/llvm_ocaml.c b/llvm/bindings/ocaml/llvm/llvm_ocaml.c --- a/llvm/bindings/ocaml/llvm/llvm_ocaml.c +++ b/llvm/bindings/ocaml/llvm/llvm_ocaml.c @@ -1541,7 +1541,7 @@ if (!LLVMIsAInstruction(Inst)) failwith("Not an instruction"); o = LLVMGetInstructionOpcode(Inst); - assert (o <= LLVMCallBr); + assert (o <= LLVMFreeze); return Val_int(o); }