1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00
llvm-mirror/test/Transforms/FunctionImport
Teresa Johnson e24ec3840e [ThinLTO] Prevent importing of "llvm.used" values
Summary:
This patch prevents importing from (and therefore exporting from) any
module with a "llvm.used" local value. Local values need to be promoted
and renamed when importing, and their presense on the llvm.used variable
indicates that there are opaque uses that won't see the rename. One such
example is a use in inline assembly.

See also the discussion at:
http://lists.llvm.org/pipermail/llvm-dev/2016-April/098047.html

As part of this, move collectUsedGlobalVariables out of Transforms/Utils
and into IR/Module so that it can be used more widely. There are several
other places in LLVM that used copies of this code that can be cleaned
up as a follow on NFC patch.

Reviewers: joker.eph

Subscribers: pcc, llvm-commits, joker.eph

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

llvm-svn: 266877
2016-04-20 14:39:45 +00:00
..
Inputs [ThinLTO] Prevent importing of "llvm.used" values 2016-04-20 14:39:45 +00:00
adjustable_threshold.ll Move summary creation out of llvm-as into opt 2016-04-12 21:35:18 +00:00
funcimport_alias.ll Move summary creation out of llvm-as into opt 2016-04-12 21:35:18 +00:00
funcimport_debug.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
funcimport.ll ThinLTO: Make aliases explicit in the summary 2016-04-16 06:56:44 +00:00
inlineasm.ll [ThinLTO] Prevent importing of "llvm.used" values 2016-04-20 14:39:45 +00:00