package llvm
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
sha256=82401fea7b79d0078043f7598b835284d6650a75b93e64b6f761ea7b63097501
    
    
  md5=0333b37c90e183d5298470d5b70a87e4
    
    
  doc/llvm_target/Llvm_target/DataLayout/index.html
Module Llvm_target.DataLayout
val of_string : string -> tof_string rep parses the data layout string representation rep. See the constructor llvm::DataLayout::DataLayout.
val as_string : t -> stringas_string dl is the string representation of the data layout dl. See the method llvm::DataLayout::getStringRepresentation.
Returns the byte order of a target, either Endian.Big or Endian.Little. See the method llvm::DataLayout::isLittleEndian.
val pointer_size : t -> intReturns the pointer size in bytes for a target. See the method llvm::DataLayout::getPointerSize.
val intptr_type : Llvm.llcontext -> t -> Llvm.lltypeReturns the integer type that is the same size as a pointer on a target. See the method llvm::DataLayout::getIntPtrType.
val qualified_pointer_size : int -> t -> intReturns the pointer size in bytes for a target in a given address space. See the method llvm::DataLayout::getPointerSize.
val qualified_intptr_type : Llvm.llcontext -> int -> t -> Llvm.lltypeReturns 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.
val size_in_bits : Llvm.lltype -> t -> Stdlib.Int64.tComputes the size of a type in bits for a target. See the method llvm::DataLayout::getTypeSizeInBits.
val store_size : Llvm.lltype -> t -> Stdlib.Int64.tComputes the storage size of a type in bytes for a target. See the method llvm::DataLayout::getTypeStoreSize.
val abi_size : Llvm.lltype -> t -> Stdlib.Int64.tComputes the ABI size of a type in bytes for a target. See the method llvm::DataLayout::getTypeAllocSize.
val abi_align : Llvm.lltype -> t -> intComputes the ABI alignment of a type in bytes for a target. See the method llvm::DataLayout::getTypeABISize.
val stack_align : Llvm.lltype -> t -> intComputes the call frame alignment of a type in bytes for a target. See the method llvm::DataLayout::getTypeABISize.
val preferred_align : Llvm.lltype -> t -> intComputes the preferred alignment of a type in bytes for a target. See the method llvm::DataLayout::getTypeABISize.
val preferred_align_of_global : Llvm.llvalue -> t -> intComputes the preferred alignment of a global variable in bytes for a target. See the method llvm::DataLayout::getPreferredAlignment.
val element_at_offset : Llvm.lltype -> Stdlib.Int64.t -> t -> intComputes the structure element that contains the byte offset for a target. See the method llvm::StructLayout::getElementContainingOffset.
val offset_of_element : Llvm.lltype -> int -> t -> Stdlib.Int64.tComputes the byte offset of the indexed struct element for a target. See the method llvm::StructLayout::getElementContainingOffset.