File: examples.rst

package info (click to toggle)
llvmlite 0.44.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,736 kB
  • sloc: python: 12,771; cpp: 3,146; sh: 185; makefile: 183
file content (13 lines) | stat: -rw-r--r-- 425 bytes parent folder | download | duplicates (4)
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