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:
parent
0f18bb9cf3
commit
03800fc31b
@ -244,6 +244,8 @@ module Opcode = struct
|
||||
| CatchPad
|
||||
| CleanupPad
|
||||
| CatchSwitch
|
||||
| FNeg
|
||||
| CallBr
|
||||
end
|
||||
|
||||
module LandingPadClauseTy = struct
|
||||
|
@ -266,6 +266,8 @@ module Opcode : sig
|
||||
| CatchPad
|
||||
| CleanupPad
|
||||
| CatchSwitch
|
||||
| FNeg
|
||||
| CallBr
|
||||
end
|
||||
|
||||
(** The type of a clause of a [landingpad] instruction.
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user