pythonllvmllvmlite

how to transpiling c to llvm in llvmlite


I want to do a runtime with llvmlite, and I would like to transpiler c to llvm.

I want to know if in a way in llvmlite itself or in some python lib, I can't find it on the internet, so I came to ask you. Thank you very much in advance


Solution

  • If you want to transform C code to LLVM IR, no need to do it using llvmlite, which is a LLVM binding library. Just call clang -c -emit-llvm on a C source from your Python code.