<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <link rel="stylesheet" href="style.css" type="text/css"> <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"> <link rel="Start" href="index.html"> <link rel="previous" href="Llvm_scalar_opts.html"> <link rel="Up" href="index.html"> <link title="Index of types" rel=Appendix href="index_types.html"> <link title="Index of exceptions" rel=Appendix href="index_exceptions.html"> <link title="Index of values" rel=Appendix href="index_values.html"> <link title="Index of modules" rel=Appendix href="index_modules.html"> <link title="Llvm" rel="Chapter" href="Llvm.html"> <link title="Llvm_analysis" rel="Chapter" href="Llvm_analysis.html"> <link title="Llvm_bitreader" rel="Chapter" href="Llvm_bitreader.html"> <link title="Llvm_bitwriter" rel="Chapter" href="Llvm_bitwriter.html"> <link title="Llvm_executionengine" rel="Chapter" href="Llvm_executionengine.html"> <link title="Llvm_ipo" rel="Chapter" href="Llvm_ipo.html"> <link title="Llvm_scalar_opts" rel="Chapter" href="Llvm_scalar_opts.html"> <link title="Llvm_target" rel="Chapter" href="Llvm_target.html"><title>Llvm_target</title> </head> <body> <div class="navbar"><a class="pre" href="Llvm_scalar_opts.html" title="Llvm_scalar_opts">Previous</a> <a class="up" href="index.html" title="Index">Up</a> </div> <h1>Module <a href="type_Llvm_target.html">Llvm_target</a></h1> <pre><span class="keyword">module</span> Llvm_target: <code class="code"><span class="keyword">sig</span></code> <a href="Llvm_target.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><div class="info module top"> Target Information. <p> This interface provides an ocaml API for LLVM target information, the classes in the Target library.<br> </div> <hr width="100%"> <pre><span class="keyword">module</span> <a href="Llvm_target.Endian.html">Endian</a>: <code class="code"><span class="keyword">sig</span></code> <a href="Llvm_target.Endian.html">..</a> <code class="code"><span class="keyword">end</span></code></pre> <pre><span class="keyword">module</span> <a href="Llvm_target.DataLayout.html">DataLayout</a>: <code class="code"><span class="keyword">sig</span></code> <a href="Llvm_target.DataLayout.html">..</a> <code class="code"><span class="keyword">end</span></code></pre> <pre><span id="VALbyte_order"><span class="keyword">val</span> byte_order</span> : <code class="type"><a href="Llvm_target.DataLayout.html#TYPEt">DataLayout.t</a> -> <a href="Llvm_target.Endian.html#TYPEt">Endian.t</a></code></pre><div class="info "> Returns the byte order of a target, either LLVMBigEndian or LLVMLittleEndian. See the method llvm::DataLayout::isLittleEndian.<br> </div> <pre><span id="VALpointer_size"><span class="keyword">val</span> pointer_size</span> : <code class="type"><a href="Llvm_target.DataLayout.html#TYPEt">DataLayout.t</a> -> int</code></pre><div class="info "> Returns the pointer size in bytes for a target. See the method llvm::DataLayout::getPointerSize.<br> </div> <pre><span id="VALintptr_type"><span class="keyword">val</span> intptr_type</span> : <code class="type"><a href="Llvm_target.DataLayout.html#TYPEt">DataLayout.t</a> -> <a href="Llvm.html#TYPElltype">Llvm.lltype</a></code></pre><div class="info "> Returns the integer type that is the same size as a pointer on a target. See the method llvm::DataLayout::getIntPtrType.<br> </div> <pre><span id="VALsize_in_bits"><span class="keyword">val</span> size_in_bits</span> : <code class="type"><a href="Llvm_target.DataLayout.html#TYPEt">DataLayout.t</a> -> <a href="Llvm.html#TYPElltype">Llvm.lltype</a> -> Int64.t</code></pre><div class="info "> Computes the size of a type in bytes for a target. See the method llvm::DataLayout::getTypeSizeInBits.<br> </div> <pre><span id="VALstore_size"><span class="keyword">val</span> store_size</span> : <code class="type"><a href="Llvm_target.DataLayout.html#TYPEt">DataLayout.t</a> -> <a href="Llvm.html#TYPElltype">Llvm.lltype</a> -> Int64.t</code></pre><div class="info "> Computes the storage size of a type in bytes for a target. See the method llvm::DataLayout::getTypeStoreSize.<br> </div> <pre><span id="VALabi_size"><span class="keyword">val</span> abi_size</span> : <code class="type"><a href="Llvm_target.DataLayout.html#TYPEt">DataLayout.t</a> -> <a href="Llvm.html#TYPElltype">Llvm.lltype</a> -> Int64.t</code></pre><div class="info "> Computes the ABI size of a type in bytes for a target. See the method llvm::DataLayout::getTypeAllocSize.<br> </div> <pre><span id="VALabi_align"><span class="keyword">val</span> abi_align</span> : <code class="type"><a href="Llvm_target.DataLayout.html#TYPEt">DataLayout.t</a> -> <a href="Llvm.html#TYPElltype">Llvm.lltype</a> -> int</code></pre><div class="info "> Computes the ABI alignment of a type in bytes for a target. See the method llvm::DataLayout::getTypeABISize.<br> </div> <pre><span id="VALstack_align"><span class="keyword">val</span> stack_align</span> : <code class="type"><a href="Llvm_target.DataLayout.html#TYPEt">DataLayout.t</a> -> <a href="Llvm.html#TYPElltype">Llvm.lltype</a> -> int</code></pre><div class="info "> Computes the call frame alignment of a type in bytes for a target. See the method llvm::DataLayout::getTypeABISize.<br> </div> <pre><span id="VALpreferred_align"><span class="keyword">val</span> preferred_align</span> : <code class="type"><a href="Llvm_target.DataLayout.html#TYPEt">DataLayout.t</a> -> <a href="Llvm.html#TYPElltype">Llvm.lltype</a> -> int</code></pre><div class="info "> Computes the preferred alignment of a type in bytes for a target. See the method llvm::DataLayout::getTypeABISize.<br> </div> <pre><span id="VALpreferred_align_of_global"><span class="keyword">val</span> preferred_align_of_global</span> : <code class="type"><a href="Llvm_target.DataLayout.html#TYPEt">DataLayout.t</a> -> <a href="Llvm.html#TYPEllvalue">Llvm.llvalue</a> -> int</code></pre><div class="info "> Computes the preferred alignment of a global variable in bytes for a target. See the method llvm::DataLayout::getPreferredAlignment.<br> </div> <pre><span id="VALelement_at_offset"><span class="keyword">val</span> element_at_offset</span> : <code class="type"><a href="Llvm_target.DataLayout.html#TYPEt">DataLayout.t</a> -> <a href="Llvm.html#TYPElltype">Llvm.lltype</a> -> Int64.t -> int</code></pre><div class="info "> Computes the structure element that contains the byte offset for a target. See the method llvm::StructLayout::getElementContainingOffset.<br> </div> <pre><span id="VALoffset_of_element"><span class="keyword">val</span> offset_of_element</span> : <code class="type"><a href="Llvm_target.DataLayout.html#TYPEt">DataLayout.t</a> -> <a href="Llvm.html#TYPElltype">Llvm.lltype</a> -> int -> Int64.t</code></pre><div class="info "> Computes the byte offset of the indexed struct element for a target. See the method llvm::StructLayout::getElementContainingOffset.<br> </div> </body></html>