Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 4b3f3a25629669de8ed91d9623f53c6f > files > 141

llvm-3.3-2.mga4.x86_64.rpm

<!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_analysis.html">
<link rel="next" href="Llvm_bitwriter.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_bitreader</title>
</head>
<body>
<div class="navbar"><a class="pre" href="Llvm_analysis.html" title="Llvm_analysis">Previous</a>
&nbsp;<a class="up" href="index.html" title="Index">Up</a>
&nbsp;<a class="post" href="Llvm_bitwriter.html" title="Llvm_bitwriter">Next</a>
</div>
<h1>Module <a href="type_Llvm_bitreader.html">Llvm_bitreader</a></h1>

<pre><span class="keyword">module</span> Llvm_bitreader: <code class="code"><span class="keyword">sig</span></code> <a href="Llvm_bitreader.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><div class="info module top">
Bitcode reader.
<p>

    This interface provides an ocaml API for the LLVM bitcode reader, the
    classes in the Bitreader library.<br>
</div>
<hr width="100%">

<pre><span id="EXCEPTIONError"><span class="keyword">exception</span> Error</span> <span class="keyword">of</span> <code class="type">string</code></pre>

<pre><span id="VALget_module"><span class="keyword">val</span> get_module</span> : <code class="type"><a href="Llvm.html#TYPEllcontext">Llvm.llcontext</a> -> <a href="Llvm.html#TYPEllmemorybuffer">Llvm.llmemorybuffer</a> -> <a href="Llvm.html#TYPEllmodule">Llvm.llmodule</a></code></pre><div class="info ">
<code class="code">get_module context mb</code> reads the bitcode for a new module <code class="code">m</code> from the
    memory buffer <code class="code">mb</code> in the context <code class="code">context</code>.  Returns <code class="code">m</code> if successful, or
    raises <code class="code"><span class="constructor">Error</span> msg</code> otherwise, where <code class="code">msg</code> is a description of the error
    encountered. See the function <code class="code">llvm::getBitcodeModule</code>.<br>
</div>

<pre><span id="VALparse_bitcode"><span class="keyword">val</span> parse_bitcode</span> : <code class="type"><a href="Llvm.html#TYPEllcontext">Llvm.llcontext</a> -> <a href="Llvm.html#TYPEllmemorybuffer">Llvm.llmemorybuffer</a> -> <a href="Llvm.html#TYPEllmodule">Llvm.llmodule</a></code></pre><div class="info ">
<code class="code">parse_bitcode context mb</code> parses the bitcode for a new module <code class="code">m</code> from the
    memory buffer <code class="code">mb</code> in the context <code class="code">context</code>. Returns <code class="code">m</code> if successful, or
    raises <code class="code"><span class="constructor">Error</span> msg</code> otherwise, where <code class="code">msg</code> is a description of the error
    encountered. See the function <code class="code">llvm::<span class="constructor">ParseBitcodeFile</span></code>.<br>
</div>
</body></html>