OSDN Git Service

[OCaml] Add OCaml API for LLVMGetIndices
authorwhitequark <whitequark@whitequark.org>
Tue, 18 Sep 2018 13:35:39 +0000 (13:35 +0000)
committerwhitequark <whitequark@whitequark.org>
Tue, 18 Sep 2018 13:35:39 +0000 (13:35 +0000)
commit1a70735b28461a2ffbf6f87a10e31de36731e938
treee3d6e1667fe52099f51e88820a1fb2b5a38e08bf
parent78b19ea9d929ab2782423232f171bb89c9a43e62
[OCaml] Add OCaml API for LLVMGetIndices

Summary:
This patch adds a thin wrapper around LLVMGetNumIndices and
LLVMGetIndices to return the indices of ExtractValue or InsertValue
instructions as an OCaml array. It has not seemed to be necessary to
expose LLVMGetNumIndices separately.

Reviewers: whitequark

Reviewed By: whitequark

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D52207

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@342474 91177308-0d34-0410-b5e6-96231b3b80d8
bindings/ocaml/llvm/llvm.ml
bindings/ocaml/llvm/llvm.mli
bindings/ocaml/llvm/llvm_ocaml.c