[llvm-commits] [patch][8927] Add an unnamed_addr attribute
Rafael Ávila de Espíndola
rafael.espindola at gmail.com
Fri Jan 7 19:56:19 PST 2011
This is the first step in fixing PR8927:
The attached patch adds a unnamed_addr bit to global constants and
functions. This will be used to indicate that the address is not
significant and therefore the constant or function can be merged with
others.
If an optimization pass can show that an address is not used, it can set
this.
Examples of things that can have this set by the FE are globals created
to hold string literals and C++ constructors.
Aliases and non constant globals are not allowed to have unnamed_addr
since I couldn't figure out any use for it.
Comments?
Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unnamed_addr.patch
Type: text/x-patch
Size: 16760 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110107/da56720a/attachment.bin>
More information about the llvm-commits
mailing list