1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00
llvm-mirror/test/Feature
Peter Collingbourne 5dcb77e9fb 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
..
OperandBundles IR: Introduce local_unnamed_addr attribute. 2016-06-14 21:01:22 +00:00
alias2.ll [opaque pointer type] Add textual IR support for explicit type parameter for global aliases 2015-09-11 03:22:04 +00:00
aliases.ll [opaque pointer type] Add textual IR support for explicit type parameter for global aliases 2015-09-11 03:22:04 +00:00
alignment.ll
attributes.ll [opaque pointer type] Add textual IR support for explicit type parameter to the call instruction 2015-04-16 23:24:18 +00:00
basictest.ll
callingconventions.ll HHVM calling conventions. 2015-09-29 22:09:16 +00:00
calltest.ll Move the personality function from LandingPadInst to Function 2015-06-17 20:52:32 +00:00
casttest.ll
cfgstructures.ll
cold.ll
comdat.ll [opaque pointer type] Add textual IR support for explicit type parameter for global aliases 2015-09-11 03:22:04 +00:00
const_pv.ll [opaque pointer type] Add textual IR support for explicit type parameter to gep operator 2015-03-13 18:20:45 +00:00
constexpr.ll Make "@name =" mandatory for globals in .ll files. 2016-05-10 18:22:45 +00:00
constpointer.ll Make "@name =" mandatory for globals in .ll files. 2016-05-10 18:22:45 +00:00
escaped_label.ll
exception.ll [WinEH] Verify unwind edges against EH pad tree 2016-01-10 04:28:38 +00:00
float.ll
fold-fpcast.ll
forwardreftest.ll
global_pv.ll
global_section.ll
globalredefinition3.ll
globalvars.ll Make "@name =" mandatory for globals in .ll files. 2016-05-10 18:22:45 +00:00
indirectcall2.ll
indirectcall.ll
inlineasm.ll
instructions.ll
intrinsic-noduplicate.ll [NVVM] Remove noduplicate attribute from synchronizing intrinsics. 2016-03-22 22:08:01 +00:00
intrinsics.ll
load_module.ll
md_on_instruction.ll Rewrite test/Feature/md_on_instruction.ll 2015-03-20 18:34:53 +00:00
memorymarkers.ll [opaque pointer type] Add textual IR support for explicit type parameter to load instruction 2015-02-27 21:17:42 +00:00
metadata.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
minsize_attr.ll
NamedMDNode2.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
NamedMDNode.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
newcasts.ll
optnone-llc.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
optnone-opt.ll [opaque pointer type] Add textual IR support for explicit type parameter to load instruction 2015-02-27 21:17:42 +00:00
optnone.ll Make the default triple optional by allowing an empty string 2015-09-16 05:34:32 +00:00
packed_struct.ll [opaque pointer type] Add textual IR support for explicit type parameter to gep operator 2015-03-13 18:20:45 +00:00
packed.ll [opaque pointer type] Add textual IR support for explicit type parameter to load instruction 2015-02-27 21:17:42 +00:00
paramattrs.ll [opaque pointer type] Add textual IR support for explicit type parameter to the call instruction 2015-04-16 23:24:18 +00:00
ppcld.ll [opaque pointer type] Add textual IR support for explicit type parameter to load instruction 2015-02-27 21:17:42 +00:00
prefixdata.ll
prologuedata.ll Prologue support 2014-12-03 02:08:38 +00:00
properties.ll
prototype.ll
README.txt
recursivetype.ll [opaque pointer type] Add textual IR support for explicit type parameter to load instruction 2015-02-27 21:17:42 +00:00
seh-nounwind.ll Move the personality function from LandingPadInst to Function 2015-06-17 20:52:32 +00:00
simplecalltest.ll
small.ll
smallest.ll
sparcld.ll [opaque pointer type] Add textual IR support for explicit type parameter to load instruction 2015-02-27 21:17:42 +00:00
strip_names.ll Add a flag to the LLVMContext to disable name for Value other than GlobalValue 2016-03-10 01:28:54 +00:00
terminators.ll
testalloca.ll [opaque pointer type] Add textual IR support for explicit type parameter to load instruction 2015-02-27 21:17:42 +00:00
testconstants.ll Make "@name =" mandatory for globals in .ll files. 2016-05-10 18:22:45 +00:00
testlogical.ll
testtype.ll
testvarargs.ll [opaque pointer type] Add textual IR support for explicit type parameter to the call instruction 2015-04-16 23:24:18 +00:00
undefined.ll
unreachable.ll
varargs_new.ll [opaque pointer type] Add textual IR support for explicit type parameter to load instruction 2015-02-27 21:17:42 +00:00
varargs.ll
vector-cast-constant-exprs.ll
weak_constant.ll [opaque pointer type] Add textual IR support for explicit type parameter to load instruction 2015-02-27 21:17:42 +00:00
weirdnames.ll
x86ld.ll [opaque pointer type] Add textual IR support for explicit type parameter to load instruction 2015-02-27 21:17:42 +00:00

This directory contains test cases for individual source features of LLVM.
It is designed to make sure that the major components of LLVM support all of the
features of LLVM, for very small examples.  Entire programs should not go here.

Regression tests for individual bug fixes should go into the test/Regression dir.