[cfe-dev] Def/Use

Hervé Yviquel via cfe-dev cfe-dev at lists.llvm.org
Tue Sep 15 09:57:33 PDT 2015


Hi all,

I need to know if a DeclRefExpr is a use or a def while visiting the AST at Clang level (i.e. before generating the LLVM IR).
I found an old discussion on the list about making an analysis to build the use-def chain but it seems to never have been commited to the trunk. 
http://lists.llvm.org/pipermail/cfe-dev/2009-September/006308.html

Anyone would have an idea? Any help would be very appreciated :-)

Hervé





More information about the cfe-dev mailing list