1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-26 06:22:56 +02:00
llvm-mirror/test/tools/gold/X86
Peter Collingbourne e3f12b0e68 IR: New representation for CFI and virtual call optimization pass metadata.
The bitset metadata currently used in LLVM has a few problems:

1. It has the wrong name. The name "bitset" refers to an implementation
   detail of one use of the metadata (i.e. its original use case, CFI).
   This makes it harder to understand, as the name makes no sense in the
   context of virtual call optimization.

2. It is represented using a global named metadata node, rather than
   being directly associated with a global. This makes it harder to
   manipulate the metadata when rebuilding global variables, summarise it
   as part of ThinLTO and drop unused metadata when associated globals are
   dropped. For this reason, CFI does not currently work correctly when
   both CFI and vcall opt are enabled, as vcall opt needs to rebuild vtable
   globals, and fails to associate metadata with the rebuilt globals. As I
   understand it, the same problem could also affect ASan, which rebuilds
   globals with a red zone.

This patch solves both of those problems in the following way:

1. Rename the metadata to "type metadata". This new name reflects how
   the metadata is currently being used (i.e. to represent type information
   for CFI and vtable opt). The new name is reflected in the name for the
   associated intrinsic (llvm.type.test) and pass (LowerTypeTests).

2. Attach metadata directly to the globals that it pertains to, rather
   than using the "llvm.bitsets" global metadata node as we are doing now.
   This is done using the newly introduced capability to attach
   metadata to global variables (r271348 and r271358).

See also: http://lists.llvm.org/pipermail/llvm-dev/2016-June/100462.html

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

llvm-svn: 273729
2016-06-24 21:21:32 +00:00
..
Inputs Add triple to input file. 2016-06-13 17:08:15 +00:00
alias2.ll
alias.ll
available-externally.ll
bad-alias.ll
bcsection.ll
coff.ll IR: Introduce local_unnamed_addr attribute. 2016-06-14 21:01:22 +00:00
comdat2.ll
comdat.ll [gold] Gate value name discarding under save-temps 2016-04-23 05:15:59 +00:00
common.ll [gold] Fix linkInModule and extend common.ll test. 2016-04-25 18:23:29 +00:00
ctors2.ll
ctors.ll
disable-verify.ll
drop-debug.ll
drop-linkage.ll Fix Gold test after r266750 (ModuleLinker: Do not import linkonce/weak as "external_weak") 2016-04-19 16:21:37 +00:00
emit-llvm.ll IR: Introduce local_unnamed_addr attribute. 2016-06-14 21:01:22 +00:00
invalid.ll
irmover-error.ll Linker: teach the IR mover to return llvm::Error. 2016-05-27 05:21:35 +00:00
linker-script.ll
linkonce-weak.ll
lit.local.cfg
no-map-whole-file.ll
opt-level.ll IR: New representation for CFI and virtual call optimization pass metadata. 2016-06-24 21:21:32 +00:00
parallel.ll
pr19901_thinlto.ll
pr19901.ll
pr25907.ll
pr25915.ll
relax-relocs.ll Add a test for r273022. 2016-06-18 00:24:49 +00:00
remarks.ll
resolve-to-alias.ll
slp-vectorize.ll
start-lib-common.ll
stats.ll
strip_names.ll [gold] Gate value name discarding under save-temps 2016-04-23 05:15:59 +00:00
thinlto_alias.ll [ThinLTO/gold] Enable summary-based internalization 2016-06-09 01:14:13 +00:00
thinlto_archive.ll [ThinLTO/gold] Handle bitcode archives 2016-05-26 01:46:41 +00:00
thinlto_emit_imports.ll [ThinLTO] Add option to emit imports files for distributed backends 2016-05-10 15:54:09 +00:00
thinlto_internalize.ll [ThinLTO/gold] Enable summary-based internalization 2016-06-09 01:14:13 +00:00
thinlto_linkonceresolution.ll [ThinLTO/gold] Enable summary-based internalization 2016-06-09 01:14:13 +00:00
thinlto_prefix_replace.ll [ThinLTO] Use semicolon to separate path prefix replacement 2016-05-17 18:43:22 +00:00
thinlto.ll Restore "[ThinLTO] Emit individual index files for distributed backends" 2016-05-10 13:48:23 +00:00
type-merge2.ll [gold] Gate value name discarding under save-temps 2016-04-23 05:15:59 +00:00
type-merge.ll
unnamed-addr.ll
vectorize.ll
visibility.ll Remove size 1 from check as that isn't part of what the test is meant to be testing. 2016-04-27 15:03:09 +00:00
weak.ll