[LLVMdev] Tracking global variables accesses

Chris Lattner sabre at nondot.org
Wed Apr 20 07:02:03 PDT 2005

On Wed, 20 Apr 2005, Vladimir Prus wrote:
>> iterate through the globals).  If your pass uses the standard alias
>> analysis interface, this will allow it to work with many different aa
>> implementations.
> So, I can just call AliasAnalysis::getModRefInfo with a call instruction and
> global value as argument? Excellent.


>> The other option is to hack the globals mod/ref alias analysis in
>> Analysis/IPA to do what you want.
> Will that have any advantage over calling getModRefInfo for each global
> variable?

No.  Additionally, that would prevent your from using other alias 



More information about the llvm-dev mailing list