[cfe-dev] LLVM- AST contents display and dependency analysis

Renato Golin renato.golin at linaro.org
Mon May 18 13:50:37 PDT 2015

On 18 May 2015 at 21:48, Sean Silva <chisophugis at gmail.com> wrote:
> Of course, all of clang's source code is there for you to look at, so for
> any given construct you can theoretically just imitate what is happening
> inside clang, but it is extremely error-prone because you need to ensure
> that all of the AST's invariants are maintained, with anything ranging from
> a crash to silent miscompilation if you don't. These invariants are not
> documented and probably not all consciously known.

This brings back memories of EDG...

I'm beginning to think that it'd be easier to create a perl script to
annotate the source code before compilation and always add the OpenMP
command line options, instead of doing anything in Clang/LLVM itself.


More information about the cfe-dev mailing list