[cfe-dev] Advice for front-end design?

Philip Reames via cfe-dev cfe-dev at lists.llvm.org
Sun Sep 20 21:57:24 PDT 2015



On 09/17/2015 10:36 PM, Joachim Durchholz via cfe-dev wrote:
> Hi all,
>
> I'm starting work on a new language (not going to make excuses for 
> that), and my initial plan was to use LLVM as backend.
>
> Looking at the Kaleidoscope tutorial, I found that LLVM-as-backend 
> makes no attempt at supporting the frontend side (d'oh); in 
> particular, it doesn't offern patterns or best practices for 
> organizing things like input stream handling, line/column number 
> bookkeeping, or error message generation.
>
> Would it make sense to turn to clang for that?
> If yes, where should I start reading?
Not directly what you were asking about, but once you have something 
basic working all the way through, you may find this document useful: 
http://llvm.org/docs/Frontend/PerformanceTips.html


>
> Regards,
> Jo
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list