llvm-project/llvm/test/Other
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
..
Inputs
X86
2002-01-31-CallGraph.ll
2002-02-24-InlineBrokePHINodes.ll
2002-03-11-ConstPropCrash.ll
2003-02-19-LoopInfoNestingBug.ll
2004-08-16-PackedConstantInlineStore.ll
2004-08-16-PackedGlobalConstant.ll
2004-08-16-PackedSelect.ll
2004-08-16-PackedSimple.ll
2004-08-20-PackedControlFlow.ll
2006-02-05-PassManager.ll
2007-04-24-eliminate-mostly-empty-blocks.ll
2007-06-05-PassID.ll
2007-06-28-PassManager.ll
2007-09-10-PassManager.ll
2008-02-14-PassManager.ll
2008-06-04-FieldSizeInPacked.ll
2008-10-06-RemoveDeadPass.ll
2008-10-15-MissingSpace.ll
2009-03-31-CallGraph.ll
2009-06-05-no-implicit-float.ll
2009-09-14-function-elements.ll
2010-05-06-Printer.ll Recommit r256952 "Filtering IR printing for print-after-all/print-before-all" 2016-01-06 22:55:03 +00:00
FileCheck-space.txt
ResponseFile.ll Try to get ResponseFile.ll passing on Windows after r267556. 2016-04-26 20:32:51 +00:00
attribute-comment.ll
bcanalyzer-block-info.txt
can-execute.txt
cleanup-lcssa.ll [PM] Schedule InstSimplify after late LICM run, to clean up LCSSA nodes. 2016-06-02 22:14:26 +00:00
close-stderr.ll
constant-fold-gep-address-spaces.ll
constant-fold-gep.ll IR: Introduce local_unnamed_addr attribute. 2016-06-14 21:01:22 +00:00
extract-alias.ll
extract-linkonce.ll
extract-weak-odr.ll
extract.ll
invalid-commandline-option.ll
lint.ll Revert "Change memcpy/memset/memmove to have dest and source alignments." 2015-11-19 05:56:52 +00:00
lit-unicode.txt
llvm-nm-without-aliases.ll
loop-pass-ordering.ll PM: Implement a basic loop pass manager 2016-02-25 07:23:08 +00:00
new-pass-manager.ll [CG] Add a new pass manager printer pass for the old call graph and 2016-03-10 11:24:11 +00:00
opt-bisect-helper.py Re-commit optimization bisect support (r267022) without new pass manager support. 2016-04-22 22:06:11 +00:00
opt-bisect-legacy-pass-manager.ll Update the stack coloring pass to remove lifetime intrinsics in the optnone/opt-bisect skip case. 2016-05-27 22:56:49 +00:00
opt-override-mcpu-mattr.ll
opt-twice.ll [llc/opt] Add an option to run all passes twice 2015-12-04 21:56:46 +00:00
optimization-remarks-inline.ll
optimize-options.ll
pass-pipeline-parsing.ll [PM] Add the IR unit type to the pass manager's logging and make all of 2016-02-25 10:27:39 +00:00
pass-pipelines.ll Move "Eliminate Available Externally" immediately after the inliner 2016-05-03 15:46:00 +00:00
pipefail.txt
spir_cc.ll
umask.ll