1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test
Steven Wu 4fc1c31a27 [ThinLTO] Fix ThinLTOCodegenerator to export llvm.used symbols
Summary:
Reapply r357931 with fixes to ThinLTO testcases and llvm-lto tool.

ThinLTOCodeGenerator currently does not preserve llvm.used symbols and
it can internalize them. In order to pass the necessary information to the
legacy ThinLTOCodeGenerator, the input to the code generator is
rewritten to be based on lto::InputFile.

Now ThinLTO using the legacy LTO API will requires data layout in
Module.

"internalize" thinlto action in llvm-lto is updated to run both
"promote" and "internalize" with the same configuration as
ThinLTOCodeGenerator. The old "promote" + "internalize" option does not
produce the same output as ThinLTOCodeGenerator.

This fixes: PR41236
rdar://problem/49293439

Reviewers: tejohnson, pcc, kromanova, dexonsmith

Reviewed By: tejohnson

Subscribers: ormris, bd1976llvm, mehdi_amini, inglorion, eraman, hiraditya, jkorous, dexonsmith, arphaman, dang, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D60421

llvm-svn: 358601
2019-04-17 17:38:09 +00:00
..
Analysis [AMDGPU] Flag new raw/struct atomic ops as source of divergence 2019-04-17 14:04:31 +00:00
Assembler
Bindings
Bitcode [ThinLTO] Fix ThinLTOCodegenerator to export llvm.used symbols 2019-04-17 17:38:09 +00:00
BugPoint
CodeGen [ARM] tighten test checks; NFC 2019-04-17 16:51:09 +00:00
DebugInfo
Demangle llvm-undname: Fix nullptr deref on invalid structor names in template args 2019-04-16 14:10:34 +00:00
Examples
ExecutionEngine
Feature
FileCheck
Instrumentation Asan use-after-scope: don't poison allocas if there were untraced lifetime intrinsics in the function (PR41481) 2019-04-16 07:54:20 +00:00
Integer
JitListener
Linker
LTO
MachineVerifier
MC [AMDGPU][MC] Corrected handling of "-" before expressions 2019-04-17 16:56:34 +00:00
Object [llvm-objdump] Simplify PrintHelpMessage() logic 2019-04-16 02:37:29 +00:00
ObjectYAML
Other [PGO] Profile guided code size optimization. 2019-04-15 16:49:00 +00:00
SafepointIRVerifier
Support [CommandLineParser] Add DefaultOption flag 2019-04-15 17:18:10 +00:00
SymbolRewriter
TableGen [TableGen] Include schedule model name in diagnostic. 2019-04-15 10:06:26 +00:00
ThinLTO/X86 [ThinLTO] Fix ThinLTOCodegenerator to export llvm.used symbols 2019-04-17 17:38:09 +00:00
tools [llvm-objcopy] Support full list of bfd targets that lld uses. 2019-04-17 07:42:31 +00:00
Transforms [ThinLTO] Fix ThinLTOCodegenerator to export llvm.used symbols 2019-04-17 17:38:09 +00:00
Unit
Verifier [SystemZ] Add missing intrinsics to intrinsics-immarg.ll 2019-04-16 14:35:18 +00:00
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg.py
lit.site.cfg.py.in
TestRunner.sh