Where exactly is this mythical Kaleidoscope example? I have llvm 2.5 installed. examples dsw$ ls BrainF Fibonacci Makefile ParallelJIT CMakeLists.txt HowToUseJIT ModuleMaker> Date: Sat, 3 Oct 2009 21:40:44 +0100 > From: Renato Golin <rengolin at systemcall.org> > Subject: Re: [LLVMdev] LLVM-Kaleidoscope tutorial > > 2009/10/3 Remy Demarest <remy.demarest at gmail.com>: >> Good morning everyone, >> It seems the LLVM tutorial is not up to date anymore and doesn't compile as >> is... >> The function makeLLVMModule() function doesn't compile at all. Here is a > > The Kaleidoscope in the source tree is correct, but the web page is > not updated as often. Lots has changed since and you should use the > source on: > > llvm/examples/Kaleidoscope
Daniel Wilkerson <daniel.wilkerson at gmail.com> writes:> Where exactly is this mythical Kaleidoscope example? I have llvm 2.5 installed.It's on svn. Maybe in the 2.6 RC too. -- Óscar
On Oct 4, 2009, at 12:21 PM, Daniel Wilkerson wrote:> Where exactly is this mythical Kaleidoscope example? I have llvm > 2.5 installed.http://llvm.org/docs/tutorial/ -Chris
That's not an example, that's a tutorial, and an incomplete one at that. However I did find the Kaleidoscope example in the subversion repository head. Any clue as to why when we attempt to follow the very simple example in the llvm-2.5 release docs/tutorial/JITTutorial1.html we construct a module state that verifies but then when we ask it to emit, we get a stack overflow from LLVM? Is it supposed to be possible for me to render out an LLVM datastructure that will verify but not render? That is, is this my bug or an LLVM bug? Daniel On Sun, Oct 4, 2009 at 7:27 PM, Chris Lattner <clattner at apple.com> wrote:> > On Oct 4, 2009, at 12:21 PM, Daniel Wilkerson wrote: > >> Where exactly is this mythical Kaleidoscope example? I have llvm 2.5 >> installed. > > http://llvm.org/docs/tutorial/ > > -Chris >
Chris Lattner wrote:> On Oct 4, 2009, at 12:21 PM, Daniel Wilkerson wrote: > >> Where exactly is this mythical Kaleidoscope example? I have llvm >> 2.5 installed. > > http://llvm.org/docs/tutorial/For llvm 2.5, that should be: http://llvm.org/releases/2.5/docs/tutorial/ Nick