hi all, Does anyone know how can I import python functions and parameters into llvm Ir code? (how to generate llvm IR using having python function)? Best -- This email was Anti Virus checked by Security Gateway. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170605/e2bf36d8/attachment.html>
Hi, I have not tried it, but you would be some way towards getting this working, if you google "Calling Python Functions from C" Once you get the python being called from C, you can compile the C into LLVM-IR (--emit-llvm) and then work out how to do it from LLVM-IR. Kind Regards James On 5 June 2017 at 19:33, Samaneh Berenjian via llvm-dev <llvm-dev at lists.llvm.org> wrote:> hi all, > Does anyone know how can I import python functions and parameters into llvm > Ir code? (how to generate llvm IR using having python function)? > > Best > > -- > This email was Anti Virus checked by Security Gateway. > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >
You may want to check out llvmlite: https://github.com/numba/llvmlite AFAIR it does not require C bindings for IR building, but some things might have changed. Cheers, Marcin On Jun 5, 2017 20:33, "Samaneh Berenjian via llvm-dev" < llvm-dev at lists.llvm.org> wrote:> hi all, > Does anyone know how can I import python functions and parameters into > llvm Ir code? (how to generate llvm IR using having python function)? > > Best > > > -- > This email was Anti Virus checked by Security Gateway. > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170606/3392ad82/attachment.html>