[cfe-dev] Mutable AST -- Advice Needed --

Mehdi AMINI mehdi.amini at silkan.com
Tue May 28 12:10:09 PDT 2013


> One of the proposed directions of development is based on Clang, and going
> against the grain, with a mutable AST. We understand the AST in Clang is
> fundamentally treated as immutable and we respect this design choice. The
> goal of the WebCL Validator does not rely on a later stage coupling with
> LLVM or later stages of compilation where the modified AST could become
> unstable/problematic.

This is something we're interested in and we are currently exploring 
this path.

> Given the above information, could those with experience and expertise
> please provide feedback on the proposed implementation? We are curious the
> pitfalls of modifying the AST. Eventually, if the code is stable and meets
> the requirements of Clang we would like to upstream/contribute the code, but
> this would be in the distant future.

I'll certainly look at it. You may also want to have a look at this 
work: http://llvm.org/devmtg/2013-04/#talk9



More information about the cfe-dev mailing list