1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

[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

llvm-svn: 358501
This commit is contained in:
whitequark 2019-04-16 15:00:19 +00:00
parent 0f18bb9cf3
commit 03800fc31b
3 changed files with 5 additions and 1 deletions

View File

@ -244,6 +244,8 @@ module Opcode = struct
| CatchPad
| CleanupPad
| CatchSwitch
| FNeg
| CallBr
end
module LandingPadClauseTy = struct

View File

@ -266,6 +266,8 @@ module Opcode : sig
| CatchPad
| CleanupPad
| CatchSwitch
| FNeg
| CallBr
end
(** The type of a clause of a [landingpad] instruction.

View File

@ -1534,7 +1534,7 @@ CAMLprim value llvm_instr_get_opcode(LLVMValueRef Inst) {
if (!LLVMIsAInstruction(Inst))
failwith("Not an instruction");
o = LLVMGetInstructionOpcode(Inst);
assert (o <= LLVMCatchSwitch);
assert (o <= LLVMCallBr);
return Val_int(o);
}