Does anyone know if I can execute LLVM IR which is generated from Python code?
Using numba, llvm-lite we can have LLVM IR, but I am not sure if it is executable using clang or not?
You can compile it with clang, just make sure your IR have .bc or .ll extensions.
But the proper way is to use llc or LLVM API to compile down to native code, and then link it using system linker or LLD.
On linking stage you'd probably need to link some "runtime" libraries, numba ones in this case.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With