[LLVMdev] Another LLVM JIT extension to Python

Tobias Grosser tobias at grosser.es
Fri Jun 29 02:47:16 PDT 2012


On 06/29/2012 01:06 AM, Siu Kwan Lam wrote:
> Dear LLVM,
>
> I am a young developer who have just uploaded my first opensource
> project based on LLVM. I would like to know what professionals think of
> my project.
>
> I have started a JIT extension to Python called Pymothoa (
> http://code.google.com/p/pymothoa/). Unlike other similar projects, I
> did not modify the interpreter. Pymothoa uses Python decorators to mark
> function for JIT compiling. It uses the AST generated by Python;
> thereby, it uses the same syntax of Python but works like a low-level
> programming language (like C). The goal is to get speedup in
> compute-intensive code without writing C-extensions.
>
> If you are interested, there are two demo applications in the source
> tree: matrix-matrix multiplication and reduce-sum. I would appreciate
> any comment.
>
> Siu Kwan Lam

Hi Siu Kwan Lam,

that looks very interesting! It is very nice to see how easy it is to 
install and how easy it is to add proper function annotations. Also, the 
generated source code seems to be a good start. It would be interesting 
to try it with Polly [1]. I believe that this could give great speedups 
for the naive matrix multiply implementation.
Is there a way I can dump the content of the entire LLVM-IR module 
generated in the demo/matrixmul/matrixmul.py example?

Cheers
Tobi

[1] http://polly.llvm.org




More information about the llvm-dev mailing list