[llvm-commits] [patch] Add an unnamed_addr attribute
Rafael Ávila de Espíndola
rafael.espindola at gmail.com
Fri Jan 7 21:56:19 CST 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
If an optimization pass can show that an address is not used, it can set
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 16760 bytes
Desc: not available
Url : http://lists.cs.uiuc.edu/pipermail/llvm-commits/attachments/20110107/da56720a/attachment.bin
More information about the llvm-commits