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.). Thanks, Rohith. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100920/8fbd0bfe/attachment.html>
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