Added generated docs to svn.
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@7 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
parent
8fd7990ca0
commit
55a6a6ed79
36 changed files with 1425 additions and 0 deletions
260
www/web/download.html
Normal file
260
www/web/download.html
Normal file
|
|
@ -0,0 +1,260 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<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.2.2" />
|
||||
<meta name="description" content="Text based document generation" />
|
||||
<meta name="keywords" content="text to HTML, text to DocBook, text to XML, AsciiDoc" />
|
||||
<link rel="stylesheet" href="style/xhtml11.css" type="text/css" />
|
||||
<link rel="stylesheet" href="style/xhtml11-quirks.css" type="text/css" />
|
||||
<link rel="stylesheet" href="style/layout.css" type="text/css" />
|
||||
<title>Download and Setup - llvm-py</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="layout-banner">
|
||||
<div id="layout-title">llvm-py</div>
|
||||
<div id="layout-description">Python Bindings for LLVM</div>
|
||||
</div>
|
||||
<table>
|
||||
<tr valign="top">
|
||||
<td id="layout-menu">
|
||||
<div>»<a href="index.html">Home</a></div>
|
||||
<div>»<a href="examples.html">Examples</a></div>
|
||||
<div>»<a href="download.html">Download</a></div>
|
||||
<div>»<a href="userguide.html">User Guide</a></div>
|
||||
<div>»<a href="contribute.html">Contribute</a></div>
|
||||
<div>»<a href="license.html">License</a></div>
|
||||
<div>»<a href="about.html">About</a></div>
|
||||
<div id="page-source">»<a href="http://www.python.org/">Python</a></div>
|
||||
<div>»<a href="http://llvm.org/">LLVM</a></div>
|
||||
</td>
|
||||
<td>
|
||||
<div id="layout-content">
|
||||
<div id="header">
|
||||
<h1>Download and Setup</h1>
|
||||
</div>
|
||||
<div id="preamble">
|
||||
<div class="sectionbody">
|
||||
<p>The latest release is 0.2, released xx-Jun-2008 (full <a href="#changelog">Changelog</a>
|
||||
below).</p>
|
||||
<p>Download it here:</p>
|
||||
<div class="tableblock">
|
||||
<table rules="all"
|
||||
frame="border"
|
||||
cellspacing="0" cellpadding="4">
|
||||
<col width="200" />
|
||||
<col width="200" />
|
||||
<col width="200" />
|
||||
<col width="200" />
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="left">
|
||||
Release
|
||||
</th>
|
||||
<th align="left">
|
||||
Date
|
||||
</th>
|
||||
<th align="left">
|
||||
Package
|
||||
</th>
|
||||
<th align="left">
|
||||
Mirror
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody valign="top">
|
||||
<tr>
|
||||
<td align="left">
|
||||
0.2
|
||||
</td>
|
||||
<td align="left">
|
||||
xx-Jun-2008
|
||||
</td>
|
||||
<td align="left">
|
||||
<a href="http://llvm-py.googlecode.com/files/llvm-py-0.2.tar.bz2">llvm-py-0.2.tar.bz2</a>
|
||||
</td>
|
||||
<td align="left">
|
||||
<a href="llvm-py-0.2.tar.bz2">llvm-py-0.2.tar.bz2</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
0.1
|
||||
</td>
|
||||
<td align="left">
|
||||
20-May-2008
|
||||
</td>
|
||||
<td align="left">
|
||||
<a href="http://llvm-py.googlecode.com/files/llvm-py-0.1.tar.bz2">llvm-py-0.1.tar.bz2</a>
|
||||
</td>
|
||||
<td align="left">
|
||||
<a href="llvm-py-0.1.tar.bz2">llvm-py-0.1.tar.bz2</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h2>Bleeding Edge</h2>
|
||||
<div class="sectionbody">
|
||||
<p>The latest code can be checked out from SVN thusly:</p>
|
||||
<div class="listingblock">
|
||||
<div class="content">
|
||||
<pre><tt>$ svn checkout http://llvm-py.googlecode.com/svn/trunk/ llvm-py</tt></pre>
|
||||
</div></div>
|
||||
<p>Happy hacking, and please send in your patches.</p>
|
||||
</div>
|
||||
<h2>Setting Up</h2>
|
||||
<div class="sectionbody">
|
||||
<p>Follow these steps to get <em>llvm-py</em> up and running:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>
|
||||
<a href="#uninstall">Uninstall</a> any previous version of <em>llvm-py</em>.
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
Get and build LLVM.
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
Optionally, install it.
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
Get the latest release (see above) of <em>llvm-py</em> and untar it:
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="listingblock">
|
||||
<div class="content">
|
||||
<pre><tt>$ wget http://link/llvm-py-0.2.tar.bz2
|
||||
$ tar jxvf llvm-py-0.2.tar.bz2</tt></pre>
|
||||
</div></div>
|
||||
<ul>
|
||||
<li>
|
||||
<p>
|
||||
If you've installed LLVM, setup <em>llvm-py</em> like this:
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="listingblock">
|
||||
<div class="content">
|
||||
<pre><tt>$ cd llvm-py-0.2
|
||||
$ sudo python setup.py install</tt></pre>
|
||||
</div></div>
|
||||
<ul>
|
||||
<li>
|
||||
<p>
|
||||
If you haven't installed LLVM, locate the executable <tt>llvm-config</tt>
|
||||
under your LLVM build directory (should be something like
|
||||
<tt>/home/mdevan/llvm/Release/bin/llvm-config</tt>) and pass this to setup.py:
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="listingblock">
|
||||
<div class="content">
|
||||
<pre><tt>$ cd llvm-py-0.2
|
||||
$ sudo python setup.py install --llvm-config=/path/to/llvm-config</tt></pre>
|
||||
</div></div>
|
||||
<p>That's it!</p>
|
||||
<div class="title">Notes:</div><ul>
|
||||
<li>
|
||||
<p>
|
||||
<em>setup.py</em> is a standard Python distutils script. See the Python
|
||||
documentation regarding
|
||||
<a href="http://docs.python.org/inst/inst.html">Installing Python Modules</a> and
|
||||
<a href="http://docs.python.org/dist/dist.html">Distributing Python Modules</a> for
|
||||
more information on such scripts.
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
To build the debug version, build with the <tt>-g</tt> flag and the debug
|
||||
version of llvm-config:
|
||||
</p>
|
||||
<div class="listingblock">
|
||||
<div class="content">
|
||||
<pre><tt>$ python setup.py build -g --llvm-config=/path/to/Debug/bin/llvm-config
|
||||
$ sudo python setup.py install</tt></pre>
|
||||
</div></div>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
Debug binaries are <em>huge</em>! (65 MB+)
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
If --llvm-config is not specified, <tt>setup.py</tt> looks for
|
||||
<tt>llvm-config</tt> in the <tt>PATH</tt>, which will succeed if LLVM is installed.
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<h2><a id="uninstall"></a>Uninstall</h2>
|
||||
<div class="sectionbody">
|
||||
<p>To get rid of llvm-py completely, if you wish to do so:</p>
|
||||
<div class="listingblock">
|
||||
<div class="content">
|
||||
<pre><tt># rm -rf /usr/lib/python2.5/site-packages/llvm
|
||||
# rm -f /usr/lib/python2.5/site-packages/llvm_py-0.1.egg-info</tt></pre>
|
||||
</div></div>
|
||||
<ul>
|
||||
<li>
|
||||
<p>
|
||||
You need to be root to do this.
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
Paths are for debian-based systems, in other distros it might be different.
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
Note that there is a version number in the egg file name.
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<h2><a id="changelog"></a>Changelog</h2>
|
||||
<div class="sectionbody">
|
||||
<div class="listingblock">
|
||||
<div class="content">
|
||||
<pre><tt>0.1, 10-May-2008:
|
||||
|
||||
* Initial release.
|
||||
|
||||
|
||||
0.2, ongoing:
|
||||
|
||||
* Independent package, need not be unpacked into llvm/bindings
|
||||
* Modules can be dumped to a string
|
||||
* Modules can be verified
|
||||
* Module.global_variables, Module.functions, Function.args,
|
||||
Function.basic_blocks and BasicBlock.instructions are
|
||||
now proper iterators (generators in fact) than plain lists
|
||||
|
||||
* MemoryBuffer is done
|
||||
* TypeHandle is done
|
||||
* Unit tester added (but doesn't do much for now)
|
||||
</tt></pre>
|
||||
</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 09-Jun-2008.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue