llvm-project/llvm/test/Feature/OperandBundles
Peter Collingbourne 96efdd6107 IR: Introduce local_unnamed_addr attribute.
If a local_unnamed_addr attribute is attached to a global, the address
is known to be insignificant within the module. It is distinct from the
existing unnamed_addr attribute in that it only describes a local property
of the module rather than a global property of the symbol.

This attribute is intended to be used by the code generator and LTO to allow
the linker to decide whether the global needs to be in the symbol table. It is
possible to exclude a global from the symbol table if three things are true:
- This attribute is present on every instance of the global (which means that
  the normal rule that the global must have a unique address can be broken without
  being observable by the program by performing comparisons against the global's
  address)
- The global has linkonce_odr linkage (which means that each linkage unit must have
  its own copy of the global if it requires one, and the copy in each linkage unit
  must be the same)
- It is a constant or a function (which means that the program cannot observe that
  the unique-address rule has been broken by writing to the global)

Although this attribute could in principle be computed from the module
contents, LTO clients (i.e. linkers) will normally need to be able to compute
this property as part of symbol resolution, and it would be inefficient to
materialize every module just to compute it.

See:
http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20160509/356401.html
http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20160516/356738.html
for earlier discussion.

Part of the fix for PR27553.

Differential Revision: http://reviews.llvm.org/D20348

llvm-svn: 272709
2016-06-14 21:01:22 +00:00
..
adce.ll [OperandBundles] Treat "deopt" operand bundles specially 2015-11-26 01:16:05 +00:00
basic-aa-argmemonly.ll [OperandBundles] Treat "deopt" operand bundles specially 2015-11-26 01:16:05 +00:00
dse.ll [OperandBundles] Treat "deopt" operand bundles specially 2015-11-26 01:16:05 +00:00
early-cse.ll [OperandBundles] Treat "deopt" operand bundles specially 2015-11-26 01:16:05 +00:00
function-attrs.ll [OperandBundles] Treat "deopt" operand bundles specially 2015-11-26 01:16:05 +00:00
inliner-conservative.ll [Inliner] Don't inline through callsites with operand bundles 2015-10-23 20:09:55 +00:00
merge-func.ll [MergeFunctions] Use II instead of CI for InvokeInst; NFC 2015-12-14 19:11:45 +00:00
pr26510.ll IR: Introduce local_unnamed_addr attribute. 2016-06-14 21:01:22 +00:00
special-state.ll Teach haveSameSpecialState about operand bundles 2015-12-14 19:11:35 +00:00