module Llvm_target: sig
.. end
Target Information.
This interface provides an ocaml API for LLVM target information,
the classes in the Target library.
module Endian: sig
.. end
module TargetData: sig
.. end
val byte_order : TargetData.t -> Endian.t
Returns the byte order of a target, either LLVMBigEndian or
LLVMLittleEndian.
See the method llvm::TargetData::isLittleEndian.
val pointer_size : TargetData.t -> int
Returns the pointer size in bytes for a target.
See the method llvm::TargetData::getPointerSize.
val intptr_type : TargetData.t -> Llvm.lltype
Returns the integer type that is the same size as a pointer on a target.
See the method llvm::TargetData::getIntPtrType.
val size_in_bits : TargetData.t -> Llvm.lltype -> Int64.t
Computes the size of a type in bytes for a target.
See the method llvm::TargetData::getTypeSizeInBits.
val store_size : TargetData.t -> Llvm.lltype -> Int64.t
Computes the storage size of a type in bytes for a target.
See the method llvm::TargetData::getTypeStoreSize.
val abi_size : TargetData.t -> Llvm.lltype -> Int64.t
Computes the ABI size of a type in bytes for a target.
See the method llvm::TargetData::getTypeAllocSize.
val abi_align : TargetData.t -> Llvm.lltype -> int
Computes the ABI alignment of a type in bytes for a target.
See the method llvm::TargetData::getTypeABISize.
val stack_align : TargetData.t -> Llvm.lltype -> int
Computes the call frame alignment of a type in bytes for a target.
See the method llvm::TargetData::getTypeABISize.
val preferred_align : TargetData.t -> Llvm.lltype -> int
Computes the preferred alignment of a type in bytes for a target.
See the method llvm::TargetData::getTypeABISize.
val preferred_align_of_global : TargetData.t -> Llvm.llvalue -> int
Computes the preferred alignment of a global variable in bytes for a target.
See the method llvm::TargetData::getPreferredAlignment.
val element_at_offset : TargetData.t -> Llvm.lltype -> Int64.t -> int
Computes the structure element that contains the byte offset for a target.
See the method llvm::StructLayout::getElementContainingOffset.
val offset_of_element : TargetData.t -> Llvm.lltype -> int -> Int64.t
Computes the byte offset of the indexed struct element for a target.
See the method llvm::StructLayout::getElementContainingOffset.