llvm.org GIT mirror llvm / fccd1f0
[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 whitequark 3 months ago
3 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
243243 | CatchPad
244244 | CleanupPad
245245 | CatchSwitch
246 | FNeg
247 | CallBr
246248 end
247249
248250 module LandingPadClauseTy = struct
265265 | CatchPad
266266 | CleanupPad
267267 | CatchSwitch
268 | FNeg
269 | CallBr
268270 end
269271
270272 (** The type of a clause of a [landingpad] instruction.
15331533 if (!LLVMIsAInstruction(Inst))
15341534 failwith("Not an instruction");
15351535 o = LLVMGetInstructionOpcode(Inst);
1536 assert (o <= LLVMCatchSwitch);
1536 assert (o <= LLVMCallBr);
15371537 return Val_int(o);
15381538 }
15391539