Dear LLVM Developers, I am a student at TU Darmstadt and I am currently working with LLVM in a project to extract data dependencies from a program. Since I want to use a use-def chain but didn't find a corresponding Pass in LLVM, I would like to ask you, if there is an existing LLVM-Pass for use-def analysis. I am looking forward to hearing from you. Best regards, Pascal Hefter
Doerfert, Johannes Rudolf via llvm-dev
2019-Jan-19 07:27 UTC
[llvm-dev] LLVM Use Def Analysis
Hi Pascal, could you elaborate on "use-def analysis" a bit? If it helps, an llvm::Value does know both users and operands. Cheers, Johannes On 01/18, Pascal Dominik Hefter via llvm-dev wrote:> Dear LLVM Developers, > > I am a student at TU Darmstadt and I am currently working with LLVM in a > project to extract data dependencies from a program. > > Since I want to use a use-def chain but didn't find a corresponding Pass in > LLVM, I would like to ask you, if there is an existing LLVM-Pass for use-def > analysis. > > I am looking forward to hearing from you. > > Best regards, > Pascal Hefter > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev-- Johannes Doerfert Researcher Argonne National Laboratory Lemont, IL 60439, USA jdoerfert at anl.gov -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 228 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190119/1a953bb6/attachment.sig>
If by "use-def" chain you mean classical def-use analysis, you don't need it in LLVM, as LLVM IR is in SSA form. The dependencies are explicitly expressed in the IR itself. If my "data dependence" you mean loop dependence analysis then there are a couple of different implementations available. -David Pascal Dominik Hefter via llvm-dev <llvm-dev at lists.llvm.org> writes:> Dear LLVM Developers, > > I am a student at TU Darmstadt and I am currently working with LLVM in > a project to extract data dependencies from a program. > > Since I want to use a use-def chain but didn't find a corresponding > Pass in LLVM, I would like to ask you, if there is an existing > LLVM-Pass for use-def analysis. > > I am looking forward to hearing from you. > > Best regards, > Pascal Hefter > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev