Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > main-backports > by-pkgid > 97e550cf5e93b7f399a057af6f6e9b60 > files > 664

llvm-2.7-2mdv2010.1.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_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 href="Llvm_analysis.html">Previous</a>
&nbsp;<a href="index.html">Up</a>
&nbsp;<a href="Llvm_bitwriter.html">Next</a>
</div>
<center><h1>Module <a href="type_Llvm_bitreader.html">Llvm_bitreader</a></h1></center>
<br>
<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>Bitcode reader.
<p>

    This interface provides an ocaml API for the LLVM bitcode reader, the
    classes in the Bitreader library.<br>
<hr width="100%">
<pre><span class="keyword">exception</span> <a name="EXCEPTIONError"></a>Error <span class="keyword">of</span> <code class="type">string</code></pre>
<pre><span class="keyword">val</span> <a name="VALget_module"></a>get_module : <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 class="keyword">val</span> <a name="VALparse_bitcode"></a>parse_bitcode : <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>