[LLVMdev] Vtables for non c++ languages

Talin viridia at gmail.com
Wed May 11 22:05:32 PDT 2011


On Wed, May 11, 2011 at 8:54 PM, Timothy Baldridge <tbaldridge at gmail.com>wrote:

> I'm working on implementing a simple functional language in LLVM. It's
> statically typed, but I'd like to a have some simple multimethods involved.
> Does LLVM have some intrinsics for handling something like C++ vtables? Or
> do I need to implement my own way of handling single-dispatch functions?
>

You'll need to do that yourself. A vtable is just an array of function
pointers.


> Thanks,
>
> Timothy
>
> --
> “One of the main causes of the fall of the Roman Empire was that–lacking
> zero–they had no way to indicate successful termination of their C
> programs.”
> (Robert Firth)
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>


-- 
-- Talin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110511/9ffe820b/attachment.html>


More information about the llvm-dev mailing list