[LLVMdev] MemoryDependenceAnalysis
Anthony Danalis
adanalis at eecs.utk.edu
Mon Apr 13 13:28:36 PDT 2009
On Apr 13, 2009, at 3:32 PM, Eli Friedman wrote:
> 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.
But I'm not interested in the dependencies of the alloca instruction,
I'm interested in the definition(s) of the particular use of the
pointer.
Anthony
More information about the llvm-dev
mailing list