eli.friedman at gmail.com
Mon Apr 13 13:36:46 PDT 2009
On Mon, Apr 13, 2009 at 1:28 PM, Anthony Danalis <adanalis at eecs.utk.edu> wrote:
> 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
>>> matter) to gather that the instructions
>>> j = N/2 (store i32 %11, i32* %j, align 4)
>>> 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
Ah, hmm, it seems like what you really want is
getPointerDependencyFrom... a patch to expose a similar API publicly
might be a good idea.
More information about the llvm-dev