Hi Emily,
> So, in this tutorial, the LLVM IR generation code is embedded in the parser.
It's embedded in the AST classes, but the parser itself doesn't know
anything about it. It's still a two-stage process: create AST, then
generate code from it.
It looks like ANTLR would allow you to change the AST to one with
similar abilities, but I can see why you might not want to.
> or do I just walk the tree and generate the iR?
That seems like the only option to me. Nothing inside LLVM is going to
know about the intended semantics of your AST.
Cheers.
Tim.
_______________________________________________
LLVM Developers mailing list
LLV...@cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev