[LLVMdev] Python Backend

Eli Bendersky eliben at google.com
Tue Nov 20 16:15:13 PST 2012

On Tue, Nov 20, 2012 at 4:10 PM, Wojciech DaniƂo
<wojtek.danilo.ml at gmail.com> wrote:
> I will take a look into NVPTX.
> I don't want to deconstruct C++ classes to generate Python code - I want to
> generate Python backend :)
> Its purpose is to be able to generate Python code from LLVM IR code (not C++
> code! - C++ code is needed for me only to get a sample IR code).
> I want to write my custom compiler in the future and I want to be able to
> output Python code from it (of course not only Python code - I want to be
> able to output IR or bytecode also), so I though that writing Python Backend
> (as a function pass) is the best solution. Am I wrong?

What I was trying to say is that I don't see why you need Python
classes in the generated code. LLVM IR is much lower than the concept
of classes, so if you want to translate it to some executable form
(such as Python) you don't need classes there. Functions to represent
IR functions should be enough.


More information about the llvm-dev mailing list