llvmpy/docs/_build/html/doc/llvm.ee.ExecutionEngine.html

171 lines
No EOL
9.2 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>llvm.ee.ExecutionEngine &mdash; llvmpy 0.8.2 documentation</title>
<link rel="stylesheet" href="../_static/default.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '0.8.2',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<link rel="top" title="llvmpy 0.8.2 documentation" href="../index.html" />
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li><a href="../index.html">llvmpy 0.8.2 documentation</a> &raquo;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<table border="1" class="docutils">
<colgroup>
<col width="100%" />
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td>layout: page</td>
</tr>
<tr class="row-even"><td>title: ExecutionEngine (llvm.ee)</td>
</tr>
</tbody>
</table>
<div class="section" id="llvm-ee-executionengine">
<h1>llvm.ee.ExecutionEngine<a class="headerlink" href="#llvm-ee-executionengine" title="Permalink to this headline"></a></h1>
<div class="section" id="methods">
<h2>Methods<a class="headerlink" href="#methods" title="Permalink to this headline"></a></h2>
<div class="section" id="add-module-self-module">
<h3><tt class="docutils literal"><span class="pre">add_module(self,</span> <span class="pre">module)</span></tt><a class="headerlink" href="#add-module-self-module" title="Permalink to this headline"></a></h3>
<p>Add a new module to the ExecutionEngine. The ownership is of <tt class="docutils literal"><span class="pre">module</span></tt>
is transferred. When the <tt class="docutils literal"><span class="pre">ExecutionEngine</span></tt> is destroyed, the module is
destroyed.</p>
</div>
<div class="section" id="free-machine-code-for-self-fn">
<h3><tt class="docutils literal"><span class="pre">free_machine_code_for(self,</span> <span class="pre">fn)</span></tt><a class="headerlink" href="#free-machine-code-for-self-fn" title="Permalink to this headline"></a></h3>
<p>Release memory used for the machine code generated for the function
<tt class="docutils literal"><span class="pre">fn</span></tt>.</p>
</div>
<div class="section" id="get-pointer-to-function-self-fn">
<h3><tt class="docutils literal"><span class="pre">get_pointer_to_function(self,</span> <span class="pre">fn)</span></tt><a class="headerlink" href="#get-pointer-to-function-self-fn" title="Permalink to this headline"></a></h3>
<p>Obtain the pointer to the function <tt class="docutils literal"><span class="pre">fn</span></tt>. This forces the
ExecutionEngine to generate the machine code in lazy mode.</p>
<p>If <tt class="docutils literal"><span class="pre">fn</span></tt> is not defined, <tt class="docutils literal"><span class="pre">ExecutionEngine</span></tt> will lookup the symbol
through <tt class="docutils literal"><span class="pre">dlsym</span></tt>.</p>
<p>The returned function pointer can be wrapped as a <tt class="docutils literal"><span class="pre">ctypes</span></tt> function.</p>
</div>
<div class="section" id="remove-module-self-module">
<h3><tt class="docutils literal"><span class="pre">remove_module(self,</span> <span class="pre">module)</span></tt><a class="headerlink" href="#remove-module-self-module" title="Permalink to this headline"></a></h3>
<p>Remove the <tt class="docutils literal"><span class="pre">module</span></tt>.</p>
</div>
<div class="section" id="run-function-self-fn-args">
<h3><tt class="docutils literal"><span class="pre">run_function(self,</span> <span class="pre">fn,</span> <span class="pre">args)</span></tt><a class="headerlink" href="#run-function-self-fn-args" title="Permalink to this headline"></a></h3>
<p>Execute the function <tt class="docutils literal"><span class="pre">fn</span></tt> with an iterable of arguments <tt class="docutils literal"><span class="pre">args</span></tt> which
are of <tt class="docutils literal"><span class="pre">GenericValue</span></tt>. This method returns whatever that is returned
by <tt class="docutils literal"><span class="pre">fn</span></tt> as a <tt class="docutils literal"><span class="pre">GenericValue</span></tt>.</p>
</div>
<div class="section" id="run-static-ctors-self">
<h3><tt class="docutils literal"><span class="pre">run_static_ctors(self)</span></tt><a class="headerlink" href="#run-static-ctors-self" title="Permalink to this headline"></a></h3>
</div>
<div class="section" id="run-static-dtors-self">
<h3><tt class="docutils literal"><span class="pre">run_static_dtors(self)</span></tt><a class="headerlink" href="#run-static-dtors-self" title="Permalink to this headline"></a></h3>
</div>
</div>
<div class="section" id="properties">
<h2>Properties<a class="headerlink" href="#properties" title="Permalink to this headline"></a></h2>
<div class="section" id="target-data">
<h3><tt class="docutils literal"><span class="pre">target_data</span></tt><a class="headerlink" href="#target-data" title="Permalink to this headline"></a></h3>
<p>Access the <a class="reference external" href="llvm.ee.TargetData.html">TargetData</a> instance associated
with the <tt class="docutils literal"><span class="pre">ExecutionEngine</span></tt>.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h3><a href="../index.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">llvm.ee.ExecutionEngine</a><ul>
<li><a class="reference internal" href="#methods">Methods</a><ul>
<li><a class="reference internal" href="#add-module-self-module"><tt class="docutils literal"><span class="pre">add_module(self,</span> <span class="pre">module)</span></tt></a></li>
<li><a class="reference internal" href="#free-machine-code-for-self-fn"><tt class="docutils literal"><span class="pre">free_machine_code_for(self,</span> <span class="pre">fn)</span></tt></a></li>
<li><a class="reference internal" href="#get-pointer-to-function-self-fn"><tt class="docutils literal"><span class="pre">get_pointer_to_function(self,</span> <span class="pre">fn)</span></tt></a></li>
<li><a class="reference internal" href="#remove-module-self-module"><tt class="docutils literal"><span class="pre">remove_module(self,</span> <span class="pre">module)</span></tt></a></li>
<li><a class="reference internal" href="#run-function-self-fn-args"><tt class="docutils literal"><span class="pre">run_function(self,</span> <span class="pre">fn,</span> <span class="pre">args)</span></tt></a></li>
<li><a class="reference internal" href="#run-static-ctors-self"><tt class="docutils literal"><span class="pre">run_static_ctors(self)</span></tt></a></li>
<li><a class="reference internal" href="#run-static-dtors-self"><tt class="docutils literal"><span class="pre">run_static_dtors(self)</span></tt></a></li>
</ul>
</li>
<li><a class="reference internal" href="#properties">Properties</a><ul>
<li><a class="reference internal" href="#target-data"><tt class="docutils literal"><span class="pre">target_data</span></tt></a></li>
</ul>
</li>
</ul>
</li>
</ul>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/doc/llvm.ee.ExecutionEngine.txt"
rel="nofollow">Show Source</a></li>
</ul>
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
<form class="search" action="../search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
>index</a></li>
<li><a href="../index.html">llvmpy 0.8.2 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
&copy; Copyright 2012, Mahadevan R (2008-2010), Continuum Analytics (2012).
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.2.
</div>
</body>
</html>