LLVM IR for Python Compiler

Is there any tool to convert LLVM IR code to Python code? I know that you can convert it to Javascript (https://github.com/kripken/emscripten/wiki), to Java (http://da.vidr.cc/projects/lljvm/), and I would like to convert this also in Python.

Additionally, if such a tool does not exist, you could provide some information which tool is best to use (maybe I should extend emscripten in another language - Javascript and Python are similar to each other in some terms;))

+4
source share
1 answer

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

+2
source

Source: https://habr.com/ru/post/1446436/


All Articles