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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
bindings/ocaml/llvm/llvm.mli | ||
---|---|---|
813 ↗ | (On Diff #165865) | I think this function returns the indices, not the *number* of indices. |
bindings/ocaml/llvm/llvm_ocaml.c | ||
---|---|---|
733 ↗ | (On Diff #165865) | Val_indices, by OCaml conventions, is the name for a function that makes an OCaml value from a C value indices, which is a bit confusing. Just indices would be nicer. |
Comment Actions
fix doc, rename Val_indices
bindings/ocaml/llvm/llvm.mli | ||
---|---|---|
813 ↗ | (On Diff #165865) | Indeed, nice catch. |