File: examples.rst

package info (click to toggle)
llvmlite 0.46.0-0.1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,140 kB
  • sloc: python: 13,605; cpp: 3,192; makefile: 185; sh: 168
file content (13 lines) | stat: -rw-r--r-- 425 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
=====================================
Example---compiling a simple function
=====================================

.. currentmodule:: llvmlite.binding


Compile and execute the function defined in ``ir-fpadd.py``. 
For more information on ``ir-fpadd.py``, see 
:doc:`Example---Defining a simple function <../ir/examples>`.
The function is compiled with no specific optimizations.

.. literalinclude:: ../examples/ll_fpadd.py