Hi, I am a complete newbie to LLVM. I have an ANTLR parser, that outputs an AST. I want to comvert this AST to a LLVM IR, Can someone point me some relevant documentation/examples/ etc. on how to go about doing this? TIA. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130814/919cb805/attachment.html>
On Wed, Aug 14, 2013 at 12:31 PM, emily thomas <emilythomas007 at gmail.com>wrote:> Hi, > I am a complete newbie to LLVM. I have an ANTLR parser, that outputs an > AST. I want to comvert this AST to a LLVM IR, Can someone point me some > relevant documentation/examples/ etc. on how to go about doing this? > TIA. > >http://llvm.org/docs/tutorial/LangImpl3.html -Eli -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130814/067e40ab/attachment.html>
Thanks. So, in this tutorial, the LLVM IR generation code is embedded in the parser. I already have an AST, and if I dont want to touch the parser code, is there a way to generate the IR? or do I just walk the tree and generate the iR? On Wed, Aug 14, 2013 at 3:36 PM, Eli Friedman <eli.friedman at gmail.com>wrote:> On Wed, Aug 14, 2013 at 12:31 PM, emily thomas <emilythomas007 at gmail.com>wrote: > >> Hi, >> I am a complete newbie to LLVM. I have an ANTLR parser, that outputs an >> AST. I want to comvert this AST to a LLVM IR, Can someone point me some >> relevant documentation/examples/ etc. on how to go about doing this? >> TIA. >> >> > > http://llvm.org/docs/tutorial/LangImpl3.html > > -Eli > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130815/a84a79a2/attachment.html>
Possibly Parallel Threads
- [LLVMdev] gerate LLVM IR from an AST output from ANTLR
- [LLVMdev] gerate LLVM IR from an AST output from ANTLR
- [LLVMdev] adding customized functions to the modules
- [LLVMdev] Error while linking LLVM files
- [LLVMdev] 'Implementing a language with LLVM' tutorial