[LLVMdev] Function calls only being JIT'd once by Kaleidoscope with MCJIT?

Per Mildner Per.Mildner at sics.se
Tue Apr 21 07:26:05 PDT 2015


Charlie Turner <charlesturner7c5 <at> gmail.com> writes:

> I was planning on committing these changes with the corresponding
> changes to the Kaleidoscope tutorial walk-through. Might be a bit of a
> surprise to have no explanation of what MCJITHelper and friends is
> doing.
> 
> I'll try and make time to prepare some patches along these lines, as
> well as updating future chapters with the same fix.
> 
> Thanks for taking a look :)


Any progress on fixing the tutorial?

I am about to dive into LLVM and after some hair-pulling found that the
Kaleidoscope tutorials (from part 5 onwards), are broken.

Obviously this is not a good first impression.

(even a note in the source code, #error "currently does not work", would be
a huge improvement, since it would avoid a lot of wasted time for the beginner.)

PS. On OS X 10.8.5, the compile command for part 4 of the tutorial needs
-fno-rtti, presumably because the code now inherits from a LLVM class.

Regards,

Per Mildner





More information about the llvm-dev mailing list