Hi LLVMdev, I am trying to add declarations of some functions in a module, and the following assert is failing test_task_inst: Type.cpp:130: const Type* Type::getForwardedTypeInternal() const: Assertion `ForwardType && "This type is not being forwarded to another type!"' failed. Any idea what the bug might be? The code was working about 3 months ago, and I am not aware of any changes that might cause it to fail. Thanks, Rahul
> I am trying to add declarations of some functions in a module, > and the following assert is failing > test_task_inst: Type.cpp:130: const Type* Type::getForwardedTypeInternal() const: Assertion `ForwardType && "This type is not being forwarded to another type!"' failed. > > Any idea what the bug might be? The code was working about > 3 months ago, and I am not aware of any changes that might > cause it to fail.I have no idea. When did you last update your tree? What functions are you trying to add? If you're using the Function *Module::getOrInsertFunction(const std::string &Name, const Type *RetTy,...); method, make sure to null terminate the type list. -Chris -- http://llvm.cs.uiuc.edu/ http://www.nondot.org/~sabre/Projects/
Just wondering if anyone con compare LLVM JIT with GNU Lightning? Have we looked at GNU Lightning? While its not complete, neither is LLVM's JIT. What's to stop us from integrating? ... just an idle thought .. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20031112/148364fd/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20031112/148364fd/attachment.sig>
> Just wondering if anyone con compare LLVM JIT with GNU Lightning? > > Have we looked at GNU Lightning? While its not complete, neither is > LLVM's JIT. What's to stop us from integrating? > > ... just an idle thought ..Hi, Funny you should ask. We looked at GNU lightning over a year ago when planning out how to write the JIT. I personally think that LLVM is strictly more powerful than GNU lightning in many ways; maybe the thing to do, if there are people out there actually interested in this, would be to reimplement GNU lightning on top of LLVM. Anyway, today, I wrote up a small missive comparing GNU lightning and GCC with LLVM; it's kind of terse, but it should give you a better feel for why we feel this way: http://llvm.cs.uiuc.edu/docs/LLVMVsTheWorld.html -Brian -- gaeke at uiuc.edu
On Tue, 11 Nov 2003, Reid Spencer wrote:> Just wondering if anyone con compare LLVM JIT with GNU Lightning? > > Have we looked at GNU Lightning? While its not complete, neither is > LLVM's JIT. What's to stop us from integrating?Just out of curiousity, how is the LLVM JIT not complete? While I know that we are not 'performance complete', we are basically feature complete. GNU lightning is far from being feature complete (see Brian's post), and we have better performance than it too. Just curious, :) -Chris -- http://llvm.cs.uiuc.edu/ http://www.nondot.org/~sabre/Projects/