[LLVMdev] Using DependenceAnalysis::depends

Snehasish Kumar ska124 at sfu.ca
Fri Dec 27 08:46:46 PST 2013


Hi

I want to analyse the memory dependencies which exist in a loop at an intra
iteration as well as inter iteration (loop carried dependencies). I looked
at the DependenceAnalysis implementation which returns a lot of the
information I require (based on a prior AliasAnalysis pass), however I need
to pass the Src and Dst instructions in program order.

I was wondering how I can collect all the memory access pairs from the
basic blocks within the CFG of the loop body which would allow me to know
which pairs are RAW/WAR/WAW. It seems related to the approach outlined here
:
https://sites.google.com/site/parallelizationforllvm/building-the-dependence-graph

Is there any existing implementation I can take a look at?
It seems that the only the DependenceAnalysis::depends is only called in
the dumpExampleDependence() function (checked using cscope). Is there no
other module which uses this class?

Thanks,
Snehasish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131227/fb9a96a4/attachment.html>


More information about the llvm-dev mailing list