[LLVMdev] AliasAnalysis Doubt.

Chris Lattner clattner at apple.com
Mon Sep 20 08:36:03 PDT 2010


On Sep 19, 2010, at 9:25 PM, Rohith Goparaju wrote:

>  Hi All,
> 
>   I'm trying to use the inbuilt AliasAnalysis function for one of my projects. Im trying to find out if a pair of load and store alias each other. It would be helpful if somebody could point out the right way to do this. 
> 
>  Example :   %13 = load i32* %12, align 4       
>                    store i32 30, i32* %4, align 4
> 
>                   So in the above example i'm trying to find out if the values %4 and %13 alias. (Both these values are getelementptr instructions.).

Start here:  :)
http://llvm.org/docs/AliasAnalysis.html

-Chris



More information about the llvm-dev mailing list