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
- Build Status
Buildable 22755 Build 22755: arc lint + arc unit
Event Timeline
bindings/ocaml/llvm/llvm.mli | ||
---|---|---|
813 | I think this function returns the indices, not the *number* of indices. |
bindings/ocaml/llvm/llvm_ocaml.c | ||
---|---|---|
733 | 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. |
I think this function returns the indices, not the *number* of indices.