mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-02 13:21:43 +00: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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358501 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2ce77c86aa
commit
fccd1f0eb9
@ -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…
x
Reference in New Issue
Block a user