[LLVMdev] propagating Globals modref information using metadata

ramshankar r ramshankar543 at gmail.com
Fri Nov 7 05:58:00 PST 2014


Hi,

I am wondering why not put some or all of the information gathered in the
globals mod/ref information as metadata on loads and stores.

According to the alias documentation:
http://llvm.org/docs/AliasAnalysis.html#the-globalsmodref-aa-pass

"This pass implements a simple context-sensitive mod/ref and alias analysis
for internal global variables that don’t “have their address taken”. If a
global does not have its address taken, the pass knows that no pointers
alias the global. ... "

The globals mod ref pass can add metadata on each use of these internal
global variables if their addresses were not taken. Alias analyzer could
skip these addresses from all alias sets.

Thanks,
Ram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141107/ad120397/attachment.html>


More information about the llvm-dev mailing list