Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LLVM IR to Python Compiler [closed]

Is there any tool to convert the LLVM IR code to Python code? I know it is possible to convert it to Javascript (https://github.com/kripken/emscripten/wiki), to Java (http://da.vidr.cc/projects/lljvm/) and I would love to convert it to Python also.

Additionaly if such tool does not exist, could you provide any information, what is the best tool to base on (maybe I should extend the emscripten with other language - Javascript and Python are similar to each other in some terms ;) )

like image 257
Wojciech Danilo Avatar asked Nov 16 '12 11:11

Wojciech Danilo


1 Answers

LLVM up to 3.0 provided a C backend (see lib/Target/CBackend) which should be a good starting point for implementing a simple Python code generator.

like image 106
SK-logic Avatar answered Oct 04 '22 00:10

SK-logic