More documentation.
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@105 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
parent
d7839041f6
commit
ce117b2d77
10 changed files with 666 additions and 197 deletions
|
|
@ -2,7 +2,7 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta name="generator" content="AsciiDoc 8.6.1" />
|
||||
<meta name="generator" content="AsciiDoc 8.5.2" />
|
||||
<meta name="description" content="Python bindings for LLVM" />
|
||||
<meta name="keywords" content="llvm python compiler backend bindings" />
|
||||
<link rel="stylesheet" href="style/xhtml11.css" type="text/css" />
|
||||
|
|
@ -31,15 +31,13 @@
|
|||
<div id="header">
|
||||
<h1>Examples and LLVM Tutorials</h1>
|
||||
</div>
|
||||
<div class="sect1">
|
||||
<h2 id="_examples">Examples</h2>
|
||||
<div class="sectionbody">
|
||||
<div class="sect2">
|
||||
<h3 id="_a_simple_function">A Simple Function</h3>
|
||||
<h3 id="_a_simple_function">A Simple Function</h3><div style="clear:left"></div>
|
||||
<div class="paragraph"><p>Let’s create a (LLVM) module containing a single function, corresponding
|
||||
to the <tt>C</tt> function:</p></div>
|
||||
<div class="listingblock">
|
||||
<div class="content"><!-- Generator: GNU source-highlight 3.1.3
|
||||
<div class="content"><!-- Generator: GNU source-highlight 3.1.4
|
||||
by Lorenzo Bettini
|
||||
http://www.lorenzobettini.it
|
||||
http://www.gnu.org/software/src-highlite -->
|
||||
|
|
@ -49,7 +47,7 @@ http://www.gnu.org/software/src-highlite -->
|
|||
<span style="color: #FF0000">}</span></tt></pre></div></div>
|
||||
<div class="paragraph"><p>Here’s how it looks like:</p></div>
|
||||
<div class="listingblock">
|
||||
<div class="content"><!-- Generator: GNU source-highlight 3.1.3
|
||||
<div class="content"><!-- Generator: GNU source-highlight 3.1.4
|
||||
by Lorenzo Bettini
|
||||
http://www.lorenzobettini.it
|
||||
http://www.gnu.org/software/src-highlite -->
|
||||
|
|
@ -108,12 +106,10 @@ entry:
|
|||
ret i32 %tmp
|
||||
}</tt></pre>
|
||||
</div></div>
|
||||
</div>
|
||||
<div class="sect2">
|
||||
<h3 id="_adding_jit_compilation">Adding JIT Compilation</h3>
|
||||
<h3 id="_adding_jit_compilation">Adding JIT Compilation</h3><div style="clear:left"></div>
|
||||
<div class="paragraph"><p>Let’s compile this function in-memory and run it.</p></div>
|
||||
<div class="listingblock">
|
||||
<div class="content"><!-- Generator: GNU source-highlight 3.1.3
|
||||
<div class="content"><!-- Generator: GNU source-highlight 3.1.4
|
||||
by Lorenzo Bettini
|
||||
http://www.lorenzobettini.it
|
||||
http://www.gnu.org/software/src-highlite -->
|
||||
|
|
@ -155,9 +151,6 @@ retval <span style="color: #990000">=</span> ee<span style="color: #990000">.</s
|
|||
<pre><tt>returned 142</tt></pre>
|
||||
</div></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sect1">
|
||||
<h2 id="_llvm_tutorials">LLVM Tutorials</h2>
|
||||
<div class="sectionbody">
|
||||
<div class="paragraph"><div class="title">Simple JIT Tutorials</div><p>The following JIT tutorials were contributed by Sebastien Binet.</p></div>
|
||||
|
|
@ -218,11 +211,10 @@ has been ported to llvm-py by Max Shawabkeh.</p></div>
|
|||
</li>
|
||||
</ol></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer">
|
||||
<div id="footer-text">
|
||||
Web pages © Mahadevan R. Generated with <a href="http://www.methods.co.nz/asciidoc/">asciidoc</a>.
|
||||
Last updated 2010-09-26.
|
||||
Last updated 2010-11-05.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue