[LLVMdev] gerate LLVM IR from an AST output from ANTLR

emily thomas emilythomas007 at gmail.com
Thu Aug 15 07:07:55 PDT 2013


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>


More information about the llvm-dev mailing list