[LLVMdev] MemoryDependenceAnalysis

Eli Friedman eli.friedman at gmail.com
Mon Apr 13 12:32:38 PDT 2009

On Mon, Apr 13, 2009 at 9:06 AM, Anthony Danalis <adanalis at eecs.utk.edu> wrote:
> How can I use MemoryDependenceAnalysis (or any other analysis for that
> matter) to gather that the instructions
> j = N/2  (store i32 %11, i32* %j, align 4)
> and
> N = N+7  (store i32 %12, i32* %n, align 4)
> are the ones that define the parameters "j" and "N" respectively?

Try calling MemoryDependenceAnalysis::getDependency?  It sounds like
you're misusing getNonLocalPointerDependency.


More information about the llvm-dev mailing list