[cfe-dev] [llvm-dev] AST of whole program

Vedant Kumar via cfe-dev cfe-dev at lists.llvm.org
Tue Oct 4 17:58:04 PDT 2016


- llvm-dev, + cfe-dev

Hi,

What kind of transformation are you interested in, and what kind of programs
are you looking to transform?

By 'AST of whole program', do you mean AST's for the source from all libraries
linked into the program?

vedant


> On Oct 4, 2016, at 5:50 PM, Anil Altinay via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> Hello,
> 
> I would like to do transformations on AST of a c program but I need to have access to all ASTs created for the program to do right changes. LLVM processes one translation unit at a time and because of it, I do not have access to AST of all the translation units at the same time. Do you have any suggestion how I can access all the ASTs created for a program, do analysis on the ASTs and do modifications on the ASTs?
> 
> As a summary:
> 
> 	• I need to have access to ASTs of the program at the same time.
> 	• Do analysis on ASTs.
> 	• Modify ASTs based on my analysis and create llvm IR from modified ASTs.
> Thank you,
> Anil
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev




More information about the cfe-dev mailing list