llvm-6502/lib
Duncan P. N. Exon Smith 0b29dea9f1 LTO: Add API to choose whether to embed uselists
Reverse libLTO's default behaviour for preserving use-list order in
bitcode, and add API for controlling it.  The default setting is now
`false` (don't preserve them), which is consistent with `clang`'s
default behaviour.

Users of libLTO should call `lto_codegen_should_embed_uselists(CG,true)`
prior to calling `lto_codegen_write_merged_modules()` whenever the
output file isn't part of the production workflow in order to reproduce
results with subsequent calls to `llc`.

(I haven't added tests since `llvm-lto` (the test tool for LTO) doesn't
support bitcode output, and even if it did: there isn't actually a good
way to test whether a tool has passed the flag.  If the order is already
"natural" (if the order will already round-trip) then no use-list
directives are emitted at all.  At some point I'll circle back to add
tests to `llvm-as` (etc.) that they actually respect the flag, at which
point I can somehow add a test here as well.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235943 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-27 23:38:54 +00:00
..
Analysis Fix typo in comment. 2015-04-24 15:46:41 +00:00
AsmParser IR: Add assembly/bitcode support for function metadata attachments 2015-04-24 22:04:41 +00:00
Bitcode [opaque pointer type] encode the pointee type of global variables 2015-04-27 19:58:56 +00:00
CodeGen Switch lowering: Take branch weight into account when ordering for fall-through 2015-04-27 23:35:22 +00:00
DebugInfo Add missing library dependency in libPDB. 2015-04-27 21:23:12 +00:00
ExecutionEngine Move DIContext.h to common DebugInfo location. 2015-04-23 17:37:47 +00:00
Fuzzer
IR Constfold insertelement to undef when index is out-of-bounds 2015-04-27 09:30:49 +00:00
IRReader
LineEditor
Linker Linker: Copy over function metadata attachments 2015-04-24 22:07:31 +00:00
LTO LTO: Add API to choose whether to embed uselists 2015-04-27 23:38:54 +00:00
MC Use CIE version 1 for .eh_frame. 2015-04-27 22:04:24 +00:00
Object Change range-based for-loops to be -Wrange-loop-analysis clean. 2015-04-15 01:21:15 +00:00
Option
Passes
ProfileData
Support Fixes a hang that can occur if a signal comes in during malloc calls. 2015-04-27 20:45:35 +00:00
TableGen [TableGen] Don't leak Expanders and Operators in SetTheory. 2015-04-24 06:49:44 +00:00
Target remove obsolete pattern matches for scalar SSE ops 2015-04-27 22:23:17 +00:00
Transforms [RewriteStatepointsForGC] Exclude constant values from being considered live at a safepoint 2015-04-26 19:48:03 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile