Hi, I'm learning the tutorial. http://llvm.org/docs/tutorial/ I'm wondering if there is already a git repository of the examples in the tutorial so that I don't have to copy the code from the webpage. Thanks! -- Regards, Peng
Peng, If you have LLVM source tree, please seek "example". http://llvm.org/viewvc/llvm-project/llvm/branches/release_32/examples/Kaleidoscope/ You may also fetch llvm.git from http://llvm.org/git/llvm.git (master, release_xx) ...Takumi 2012/12/30 Peng Yu <pengyu.ut at gmail.com>:> Hi, > > I'm learning the tutorial. > > http://llvm.org/docs/tutorial/ > > I'm wondering if there is already a git repository of the examples in > the tutorial so that I don't have to copy the code from the webpage. > Thanks! > > -- > Regards, > Peng > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Hello Peng Yu and List, I have put toy.cpp into github but it has a form of LLVM project makefile infrastructure. So you can build it together with LLVM Project source tree. git://github.com/Journeyer/klang.git There exist many branches and each branch is for each chapter of Kaleidoscope. Regards Journeyer 2012/12/30 Peng Yu <pengyu.ut at gmail.com>:> Hi, > > I'm learning the tutorial. > > http://llvm.org/docs/tutorial/ > > I'm wondering if there is already a git repository of the examples in > the tutorial so that I don't have to copy the code from the webpage. > Thanks! > > -- > Regards, > Peng > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-- ---------------------------------------- Journeyer J. Joh o o s a p r o g r a m m e r a t g m a i l d o t c o m ----------------------------------------
On Sat, Dec 29, 2012 at 6:30 PM, Journeyer J. Joh <oosaprogrammer at gmail.com> wrote:> I have put toy.cpp into github but it has a form of LLVM project > makefile infrastructure. So you can build it together with LLVM > Project source tree. > > git://github.com/Journeyer/klang.git > > There exist many branches and each branch is for each chapter of Kaleidoscope.Also, klang is organized similar to how clang is organized, so it will help you get familiar with clang too. -- Sean Silva
On Sat, Dec 29, 2012 at 7:30 PM, Journeyer J. Joh <oosaprogrammer at gmail.com> wrote:> Hello Peng Yu and List, > > I have put toy.cpp into github but it has a form of LLVM project > makefile infrastructure. So you can build it together with LLVM > Project source tree. > > git://github.com/Journeyer/klang.git > > There exist many branches and each branch is for each chapter of Kaleidoscope.Hi Journeyer, Thanks! I'm following instructions in the README. But I get the following error when run make -j8 in llvm_obj_dir$. Do you know what is wrong? llvm[4]: Compiling ASTNodes.cpp for Debug+Asserts build In file included from /Users/py/dvcs_src/llvm/projects/klang/lib/AST/ASTNodes.cpp:15: /Users/py/dvcs_src/llvm_obj_dir/projects/klang/../../../llvm/projects/klang/include/klang/Driver/Driver.h:23:10: fatal error: 'llvm/Support/IRBuilder.h' file not found #include "llvm/Support/IRBuilder.h" ^ 1 error generated. -- Regards, Peng