This is an archive of the discontinued LLVM Phabricator instance.

[OCaml] Add OCaml APIs for LLVMGetModuleDataLayout and LLVMABISizeOfType
AbandonedPublic

Authored by jberdine on Sep 17 2018, 6:24 PM.

Details

Reviewers
whitequark
Summary

This patch adds a shim around LLVMABISizeOfType to the OCaml API. To
make this usable, a shim around LLVMGetModuleDataLayout and a minimal
implementation of the DataLayout type is also added.

Diff Detail

Event Timeline

jberdine created this revision.Sep 17 2018, 6:24 PM
whitequark requested changes to this revision.Sep 17 2018, 6:39 PM

There is already an Llvm_target.DataLayout.t, we don't need to wrap it the second time.

This revision now requires changes to proceed.Sep 17 2018, 6:39 PM
jberdine abandoned this revision.Sep 18 2018, 4:25 AM

Thanks, don't know why I overlooked that.