package llvm

  1. Overview
  2. Docs
The OCaml bindings distributed with LLVM

Install

Dune Dependency

Authors

Maintainers

Sources

llvm-dune-full-minified-16.0.6.tar.gz
md5=d2bf13c08c943c69f1a29ec5b830c143
sha512=6abc12221eeea6bb26f457dee5f8a077d945583a48891bef7249e6129b8125a5151b92dec0cefc09b124fe988cea8c521123c95d74dd4cd9d87a282c17865fe2

doc/llvm_target_static/Llvm_target/DataLayout/index.html

Module Llvm_target.DataLayoutSource

Sourcetype t
Sourceval of_string : string -> t

of_string rep parses the data layout string representation rep. See the constructor llvm::DataLayout::DataLayout.

Sourceval as_string : t -> string

as_string dl is the string representation of the data layout dl. See the method llvm::DataLayout::getStringRepresentation.

Sourceval byte_order : t -> Endian.t

Returns the byte order of a target, either Endian.Big or Endian.Little. See the method llvm::DataLayout::isLittleEndian.

Sourceval pointer_size : t -> int

Returns the pointer size in bytes for a target. See the method llvm::DataLayout::getPointerSize.

Sourceval intptr_type : Llvm.llcontext -> t -> Llvm.lltype

Returns the integer type that is the same size as a pointer on a target. See the method llvm::DataLayout::getIntPtrType.

Sourceval qualified_pointer_size : int -> t -> int

Returns the pointer size in bytes for a target in a given address space. See the method llvm::DataLayout::getPointerSize.

Sourceval qualified_intptr_type : Llvm.llcontext -> int -> t -> Llvm.lltype

Returns the integer type that is the same size as a pointer on a target in a given address space. See the method llvm::DataLayout::getIntPtrType.

Sourceval size_in_bits : Llvm.lltype -> t -> Stdlib.Int64.t

Computes the size of a type in bits for a target. See the method llvm::DataLayout::getTypeSizeInBits.

Sourceval store_size : Llvm.lltype -> t -> Stdlib.Int64.t

Computes the storage size of a type in bytes for a target. See the method llvm::DataLayout::getTypeStoreSize.

Sourceval abi_size : Llvm.lltype -> t -> Stdlib.Int64.t

Computes the ABI size of a type in bytes for a target. See the method llvm::DataLayout::getTypeAllocSize.

Sourceval abi_align : Llvm.lltype -> t -> int

Computes the ABI alignment of a type in bytes for a target. See the method llvm::DataLayout::getTypeABISize.

Sourceval stack_align : Llvm.lltype -> t -> int

Computes the call frame alignment of a type in bytes for a target. See the method llvm::DataLayout::getTypeABISize.

Sourceval preferred_align : Llvm.lltype -> t -> int

Computes the preferred alignment of a type in bytes for a target. See the method llvm::DataLayout::getTypeABISize.

Sourceval preferred_align_of_global : Llvm.llvalue -> t -> int

Computes the preferred alignment of a global variable in bytes for a target. See the method llvm::DataLayout::getPreferredAlignment.

Sourceval element_at_offset : Llvm.lltype -> Stdlib.Int64.t -> t -> int

Computes the structure element that contains the byte offset for a target. See the method llvm::StructLayout::getElementContainingOffset.

Sourceval offset_of_element : Llvm.lltype -> int -> t -> Stdlib.Int64.t

Computes the byte offset of the indexed struct element for a target. See the method llvm::StructLayout::getElementContainingOffset.

OCaml

Innovation. Community. Security.