forked from OSchip/llvm-project
05a358cdcd
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 |
||
---|---|---|
.. | ||
alias_import.ll | ||
alias_internal.ll | ||
alias_resolution.ll | ||
autoupgrade.bc | ||
cache-icall.ll | ||
cache-import-lists1.ll | ||
cache-import-lists2.ll | ||
cache-typeid-resolutions-import.ll | ||
cache-typeid-resolutions1.ll | ||
cache-typeid-resolutions2.ll | ||
cache-typeid-resolutions3.ll | ||
cache.ll | ||
callees-metadata.ll | ||
cfi-distributed.ll | ||
crash_debuginfo.ll | ||
deadstrip.ll | ||
debuginfo-compositetype-import.ll | ||
debuginfo-cu-import.ll | ||
diagnostic-handler-remarks.ll | ||
dicompositetype-unique-alias.ll | ||
dicompositetype-unique.ll | ||
dicompositetype-unique2.ll | ||
distributed_import.ll | ||
distributed_indexes.ll | ||
dot-dumper.ll | ||
drop-debug-info.bc | ||
drop-debug-info.ll | ||
dsolocal_dllimport.ll | ||
emit_imports.ll | ||
emit_imports2.ll | ||
empty.ll | ||
empty_module_with_cache.ll | ||
export.ll | ||
funcimport-debug.ll | ||
funcimport-tbaa.ll | ||
funcimport.ll | ||
funcimport2.ll | ||
function_entry_count.ll | ||
globals-import-blockaddr.ll | ||
globals-import-cf-baz.ll | ||
globals-import.ll | ||
import_opaque_type.ll | ||
index-const-prop-alias.ll | ||
index-const-prop-cache-foo.ll | ||
index-const-prop-cache-test1.ll | ||
index-const-prop-cache-test2.ll | ||
index-const-prop-comdat.ll | ||
index-const-prop-define-g.ll | ||
index-const-prop-full-lto.ll | ||
index-const-prop-gvref.ll | ||
index-const-prop-linkage.ll | ||
index-const-prop.ll | ||
lazyload_metadata.ll | ||
linkonce_aliasee_ref_import.ll | ||
linkonce_resolution_comdat.ll | ||
llvm.used.ll | ||
local_name_conflict1.ll | ||
local_name_conflict2.ll | ||
local_name_conflict_var1.ll | ||
local_name_conflict_var2.ll | ||
merge-triple.ll | ||
module_asm.ll | ||
module_asm2.ll | ||
noinline.ll | ||
personality-local.ll | ||
personality.ll | ||
pr35472.ll | ||
reference_non_importable.ll | ||
referenced_by_constant.ll | ||
section.ll | ||
select_right_alias_definition1.ll | ||
select_right_alias_definition2.ll | ||
strong_non_prevailing.ll | ||
thinlto-internalize-used2.ll | ||
weak_resolution.ll |