Jack Orenstein via llvm-dev
2019-Jan-12 16:44 UTC
[llvm-dev] LLVM header files for Kaleidoscope tutorial
I'm going through the Kaleidoscope tutorial, adding the codegen() functions: https://llvm.org/docs/tutorial/LangImpl03.html. I cannot find any discussion of header files to include, (other than the include of llvm/ADT/STLExtras.h in the lexer/parser code), and the compilation is failing due to several undefined symbols: LogErrorV, Value, LLVMContext, APFloat, and others. I've been hunting down the header files for each symbol, but I must be missing something. What am I doing wrong? Jack Orenstein -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190112/062e0b2d/attachment.html>
David Blaikie via llvm-dev
2019-Jan-12 21:28 UTC
[llvm-dev] LLVM header files for Kaleidoscope tutorial
At the bottom of every tutorial page, I think there's a full code listing with all the required includes, etc? https://llvm.org/docs/tutorial/LangImpl03.html#full-code-listing On Sun, Jan 13, 2019, 2:45 AM Jack Orenstein via llvm-dev < llvm-dev at lists.llvm.org wrote:> I'm going through the Kaleidoscope tutorial, adding the codegen() > functions: https://llvm.org/docs/tutorial/LangImpl03.html. > > I cannot find any discussion of header files to include, (other than the > include of llvm/ADT/STLExtras.h in the lexer/parser code), and the > compilation is failing due to several undefined symbols: LogErrorV, Value, > LLVMContext, APFloat, and others. I've been hunting down the header files > for each symbol, but I must be missing something. What am I doing wrong? > > Jack Orenstein > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190113/81290da0/attachment.html>
Jack Orenstein via llvm-dev
2019-Jan-12 21:35 UTC
[llvm-dev] LLVM header files for Kaleidoscope tutorial
Hmm. It's right there. I don't know how I missed that. Thank you! On Sat, Jan 12, 2019 at 4:29 PM David Blaikie <dblaikie at gmail.com> wrote:> At the bottom of every tutorial page, I think there's a full code listing > with all the required includes, etc? > https://llvm.org/docs/tutorial/LangImpl03.html#full-code-listing > > > On Sun, Jan 13, 2019, 2:45 AM Jack Orenstein via llvm-dev < > llvm-dev at lists.llvm.org wrote: > >> I'm going through the Kaleidoscope tutorial, adding the codegen() >> functions: https://llvm.org/docs/tutorial/LangImpl03.html. >> >> I cannot find any discussion of header files to include, (other than the >> include of llvm/ADT/STLExtras.h in the lexer/parser code), and the >> compilation is failing due to several undefined symbols: LogErrorV, Value, >> LLVMContext, APFloat, and others. I've been hunting down the header files >> for each symbol, but I must be missing something. What am I doing wrong? >> >> Jack Orenstein >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190112/cd6c06d1/attachment.html>