1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00
llvm-mirror/lib
Steven Wu 6d3109d835 [BitcodeReader] Infer the correct runtime preemption for GlobalValue
Summary:
To allow bitcode built by old compiler to pass the current verifer,
BitcodeReader needs to auto infer the correct runtime preemption from
linkage and visibility for GlobalValues.

Since llvm-6.0 bitcode already contains the new field but can be
incorrect in some cases, the attribute needs to be recomputed all the
time in BitcodeReader. This will make all the GVs has dso_local marked
correctly if read from bitcode, and it should still allow the verifier
to catch mistakes in optimization passes.

This should fix PR38009.

Reviewers: sfertile, vsk

Reviewed By: vsk

Subscribers: dexonsmith, llvm-commits

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

llvm-svn: 336560
2018-07-09 16:52:05 +00:00
..
Analysis Revert "[SCEV] Strengthen StrengthenNoWrapFlags (reapply r334428)." 2018-07-06 23:20:35 +00:00
AsmParser [ThinLTO] Parse module summary index from assembly 2018-06-26 13:56:49 +00:00
BinaryFormat [WebAssembly] Move toString helpers to BinaryFormat 2018-05-14 22:42:07 +00:00
Bitcode [BitcodeReader] Infer the correct runtime preemption for GlobalValue 2018-07-09 16:52:05 +00:00
CodeGen [AccelTable] Provide abstraction for emitting DWARF5 accelerator tables. 2018-07-09 09:08:44 +00:00
DebugInfo [PDB] memicmp only exists on Windows, use StringRef::compare_lower instead 2018-07-06 21:56:57 +00:00
Demangle [demangler] Avoid alignment warning 2018-07-05 06:22:39 +00:00
ExecutionEngine [ORC] Add BitReader/BitWriter to target_link_libraries 2018-07-05 21:23:15 +00:00
Fuzzer
FuzzMutate
IR Fix DIExpression::ExprOperand::appendToVector 2018-07-06 21:06:21 +00:00
IRReader
LineEditor
Linker IRMover: Account for matching types present across modules 2018-06-20 16:50:56 +00:00
LTO [ThinLTO] Update ThinLTO cache file atimes when on Windows 2018-07-04 14:17:10 +00:00
MC [MC] Error on a .zerofill directive in a non-virtual section 2018-07-02 17:29:43 +00:00
Object [llvm-objdump] Add --file-headers (-f) option 2018-07-04 15:25:03 +00:00
ObjectYAML [llvm-readobj] Add experimental support for SHT_RELR sections 2018-06-28 21:07:34 +00:00
Option Re-revert "[Option] Fix PR37006 prefix choice in findNearest" 2018-05-19 16:21:01 +00:00
Passes [UnrollAndJam] New Unroll and Jam pass 2018-07-01 12:47:30 +00:00
ProfileData [NFC] Change sample profile format enum name SPF_Raw_Binary to SPF_Binary. 2018-06-12 05:53:49 +00:00
Support [Support] Make JSON handle doubles and int64s losslessly 2018-07-09 12:16:40 +00:00
TableGen [TableGen] Use WithColor for printing errors/warnings 2018-06-23 16:48:03 +00:00
Target [X86] Remove some patterns that include a bitcast of a floating point load to an integer type. 2018-07-09 16:03:02 +00:00
Testing
ToolDrivers [COFF] Improve correctness of def parsing for GNU features 2018-05-09 09:21:53 +00:00
Transforms [InstCombine] generalize safe vector constant utility 2018-07-09 16:16:51 +00:00
WindowsManifest
XRay
CMakeLists.txt
LLVMBuild.txt