[LLVMdev] function pointer from name?

Alexander Popolitov
2014-05-04T17:12:15Z

Hi everyone!

I'm trying to implement lisp's funcall function, which roughly calls a
function, name of which
is known only at runtime.
I know that LLVM IR 'call' directive can accept function pointers, so
the question is,
is there a simple way to get a function pointer from a function name
(represented as e.g. i8*)?

BTW, I'm using llvmpy to generate LLVM IR, so if there is a way to do
this using llvmpy tools, it would also do.

Yours sincerely,
Alexandr Popolitov