llvm-project/llvm/test/Bitcode/Inputs
Steven Wu 05a358cdcd [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
..
PR23310.bc
apple-clang-700-O3-g-1.bc [Bitcode] Address backwards compat bug in r342631 2018-09-20 18:59:33 +00:00
infer_dso_local.bc [BitcodeReader] Infer the correct runtime preemption for GlobalValue 2018-07-09 16:52:05 +00:00
invalid-GCTable-overflow.bc
invalid-abbrev-fixed-size-too-big.bc
invalid-abbrev-no-operands.bc
invalid-abbrev-vbr-size-too-big.bc
invalid-abbrev.bc
invalid-alias-type-mismatch.bc
invalid-align.bc
invalid-array-element-type.bc
invalid-array-op-not-2nd-to-last.bc
invalid-array-operand-encoding.bc Bitcode: Change reader interface to take memory buffers. 2016-11-02 00:08:19 +00:00
invalid-array-type.bc
invalid-bad-abbrev-number.bc
invalid-bitwidth.bc
invalid-call-mismatched-explicit-type.bc
invalid-call-non-function-explicit-type.bc
invalid-cast.bc
invalid-code-len-width.bc Bitcode: Change reader interface to take memory buffers. 2016-11-02 00:08:19 +00:00
invalid-empty.bc Bitcode: Check file size before reading bitcode header. 2016-11-02 00:39:11 +00:00
invalid-extract-0-indices.bc
invalid-extractval-array-idx.bc Bitcode: Change reader interface to take memory buffers. 2016-11-02 00:08:19 +00:00
invalid-extractval-struct-idx.bc
invalid-extractval-too-many-idxs.bc
invalid-fp-shift.bc
invalid-function-argument-type.bc
invalid-function-comdat-id.bc Bitcode: Change reader interface to take memory buffers. 2016-11-02 00:08:19 +00:00
invalid-fwdref-type-mismatch-2.bc Bitcode: Change reader interface to take memory buffers. 2016-11-02 00:08:19 +00:00
invalid-fwdref-type-mismatch.bc
invalid-gep-mismatched-explicit-type.bc
invalid-gep-no-operands.bc
invalid-gep-operator-mismatched-explicit-type.bc
invalid-global-var-comdat-id.bc
invalid-insert-0-indices.bc
invalid-inserted-value-type-mismatch.bc
invalid-insertval-array-idx.bc
invalid-insertval-struct-idx.bc
invalid-insertval-too-many-idxs.bc
invalid-invoke-mismatched-explicit-type.bc
invalid-invoke-non-function-explicit-type.bc
invalid-load-mismatched-explicit-type.bc
invalid-load-pointer-type.bc
invalid-load-ptr-type.bc
invalid-metadata-not-followed-named-node.bc Bitcode: Change reader interface to take memory buffers. 2016-11-02 00:08:19 +00:00
invalid-name-with-0-byte.bc Bitcode: Change reader interface to take memory buffers. 2016-11-02 00:08:19 +00:00
invalid-no-function-block.bc
invalid-no-proper-module.bc
invalid-non-vector-extractelement.bc
invalid-non-vector-insertelement.bc
invalid-non-vector-shufflevector.bc
invalid-nonpointer-atomicrmw.bc
invalid-nonpointer-storeatomic.bc
invalid-pointer-element-type.bc
invalid-pr20485.bc
invalid-too-big-fwdref.bc
invalid-type-table-forward-ref.bc
invalid-unexpected-eof.bc Bitcode: Change reader interface to take memory buffers. 2016-11-02 00:08:19 +00:00
invalid-vector-element-type.bc
invalid-vector-length.bc
invalid-void-constant.bc
module-hash-strtab1.ll Bitcode: Include any strings added to the string table in the module hash. 2017-07-06 17:56:01 +00:00
module-hash-strtab2.ll Bitcode: Include any strings added to the string table in the module hash. 2017-07-06 17:56:01 +00:00
module_hash.ll [ThinLTO] Fix ThinLTOCodegenerator to export llvm.used symbols 2019-04-17 17:38:09 +00:00
multi-module.ll Bitcode: Introduce BitcodeWriter interface. 2016-11-29 20:43:47 +00:00
padding-garbage.bc
padding.bc
source-filename.bc
thinlto-alias.ll
thinlto-function-summary-callgraph-combined.1.bc [thinlto] Basic thinlto fdo heuristic 2016-09-26 20:37:32 +00:00
thinlto-function-summary-callgraph-pgo-combined.1.bc [thinlto] Basic thinlto fdo heuristic 2016-09-26 20:37:32 +00:00
thinlto-function-summary-callgraph-pgo.1.bc [thinlto] Basic thinlto fdo heuristic 2016-09-26 20:37:32 +00:00
thinlto-function-summary-callgraph-profile-summary.ll [thinlto] Basic thinlto fdo heuristic 2016-09-26 20:37:32 +00:00
thinlto-function-summary-callgraph-sample-profile-summary.ll Do not want to use BFI to get profile count for sample pgo 2017-08-03 17:11:41 +00:00
thinlto-function-summary-callgraph.1.bc [thinlto] Basic thinlto fdo heuristic 2016-09-26 20:37:32 +00:00
thinlto-function-summary-callgraph.ll