[llvm] r358501 - [OCaml] Update api to account for FNeg and CallBr instructions
whitequark via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 16 08:00:20 PDT 2019
Author: whitequark
Date: Tue Apr 16 08:00:19 2019
New Revision: 358501
URL: http://llvm.org/viewvc/llvm-project?rev=358501&view=rev
Log:
[OCaml] Update api to account for FNeg and CallBr instructions
Summary:
This diff adds minimal support for the recent FNeg and CallBr
instructions to the OCaml bindings.
Reviewers: whitequark
Reviewed By: whitequark
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D60680
Modified:
llvm/trunk/bindings/ocaml/llvm/llvm.ml
llvm/trunk/bindings/ocaml/llvm/llvm.mli
llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c
Modified: llvm/trunk/bindings/ocaml/llvm/llvm.ml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/ocaml/llvm/llvm.ml?rev=358501&r1=358500&r2=358501&view=diff
==============================================================================
--- llvm/trunk/bindings/ocaml/llvm/llvm.ml (original)
+++ llvm/trunk/bindings/ocaml/llvm/llvm.ml Tue Apr 16 08:00:19 2019
@@ -244,6 +244,8 @@ module Opcode = struct
| CatchPad
| CleanupPad
| CatchSwitch
+ | FNeg
+ | CallBr
end
module LandingPadClauseTy = struct
Modified: llvm/trunk/bindings/ocaml/llvm/llvm.mli
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/ocaml/llvm/llvm.mli?rev=358501&r1=358500&r2=358501&view=diff
==============================================================================
--- llvm/trunk/bindings/ocaml/llvm/llvm.mli (original)
+++ llvm/trunk/bindings/ocaml/llvm/llvm.mli Tue Apr 16 08:00:19 2019
@@ -266,6 +266,8 @@ module Opcode : sig
| CatchPad
| CleanupPad
| CatchSwitch
+ | FNeg
+ | CallBr
end
(** The type of a clause of a [landingpad] instruction.
Modified: llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c?rev=358501&r1=358500&r2=358501&view=diff
==============================================================================
--- llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c (original)
+++ llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c Tue Apr 16 08:00:19 2019
@@ -1534,7 +1534,7 @@ CAMLprim value llvm_instr_get_opcode(LLV
if (!LLVMIsAInstruction(Inst))
failwith("Not an instruction");
o = LLVMGetInstructionOpcode(Inst);
- assert (o <= LLVMCatchSwitch);
+ assert (o <= LLVMCallBr);
return Val_int(o);
}
More information about the llvm-commits
mailing list