[LLVMdev] function pointer from name?

Alexander Potapenko glider at google.com
Sun May 4 08:24:52 PDT 2014


Don't you have the same problem with other atoms, e.g. variable names?
This sounds like something that should be implemented in the language's
runtime library.
On May 4, 2014 7:15 PM, "Alexander Popolitov" <popolit at gmail.com> wrote:

> 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
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140504/dc833792/attachment.html>


More information about the llvm-dev mailing list