1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 21:13:02 +02:00
llvm-mirror/tools
Peter Collingbourne ff87ac19c3 LTO: Fix a potential race condition in the caching API.
After the call to sys::fs::exists succeeds, indicating a cache hit, we call
AddFile and the client will open the file using the supplied path. If the
client is using cache pruning, there is a potential race between the pruner
and the client. To avoid this, change the caching API so that it provides
a MemoryBuffer to the client, and have clients use that MemoryBuffer where
possible.

This scheme won't work with the gold plugin because the plugin API expects a
file path. So we have the gold plugin use the buffer identifier as a path and
live with the race for now. (Note that the gold plugin isn't actually affected
by the problem at the moment because it doesn't support cache pruning.)

This effectively reverts r279883 modulo the change to use the existing path
in the gold plugin.

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

llvm-svn: 298020
2017-03-17 00:34:07 +00:00
..
bugpoint Fix bugpoint to work with swifterror values 2017-03-07 20:28:59 +00:00
bugpoint-passes [CMake] bugpoint-passes depends on intrinsics_gen 2016-11-19 02:20:59 +00:00
dsymutil [dsymutil] Fix handling of empty CUs in LTO links. 2017-02-09 19:41:55 +00:00
gold LTO: Fix a potential race condition in the caching API. 2017-03-17 00:34:07 +00:00
llc [Assembler] Add test for !srcloc references in assembler diags 2017-02-28 10:34:48 +00:00
lli [Orc] Rename ObjectLinkingLayer -> RTDyldObjectLinkingLayer. 2017-02-20 05:45:14 +00:00
llvm-ar Don't modify archive members unless really needed. 2017-02-21 20:40:54 +00:00
llvm-as [CMake] llvm-as depends on intrinsics_gen 2016-11-19 02:15:04 +00:00
llvm-as-fuzzer
llvm-bcanalyzer IR: Function summary extensions for whole-program devirtualization pass. 2017-02-10 22:29:38 +00:00
llvm-c-test Fix "isn't a prototype" warning 2016-11-16 21:51:39 +00:00
llvm-cat llvm-cat: Allow bitcode files to be created with no modules. 2016-12-13 23:14:55 +00:00
llvm-config [llvm-config] Fix obviously wrong code in parsing DyLib components. 2017-01-12 19:47:38 +00:00
llvm-cov Use the new member accessors of llvm::enumerate. 2017-03-13 16:32:08 +00:00
llvm-cxxdump
llvm-cxxfilt llvm-cxxfilt: support -_ 2017-01-22 17:41:10 +00:00
llvm-diff Cleanup dump() functions. 2017-01-28 02:02:38 +00:00
llvm-dis [CMake] llvm-dis depends on intrinsics_gen 2016-11-19 02:31:14 +00:00
llvm-dwarfdump Fix a bugs with using some Mach-O command line flags like "-arch armv7m". 2016-12-16 22:54:02 +00:00
llvm-dwp [llvm-dwp] - Reuse object::Decompressor class 2017-01-13 15:58:55 +00:00
llvm-extract [CMake] llvm-extract depends on intrinsics_gen 2016-11-19 02:33:57 +00:00
llvm-go
llvm-jitlistener
llvm-link Remove unused lambda capture 2017-03-13 21:46:14 +00:00
llvm-lto llvm-lto: pass errs() to the module verifier (NFC) 2016-12-23 23:53:57 +00:00
llvm-lto2 LTO: Fix a potential race condition in the caching API. 2017-03-17 00:34:07 +00:00
llvm-mc [DWARFv5] llvm-mc support for new unit header. 2017-02-28 23:40:46 +00:00
llvm-mc-assemble-fuzzer llvm-mc-fuzzer: add support for assembly 2017-02-27 06:22:17 +00:00
llvm-mc-disassemble-fuzzer llvm-mc-fuzzer: add support for assembly 2017-02-27 06:22:17 +00:00
llvm-mcmarkup
llvm-modextract llvm-modextract: Call keep() on the output stream before exiting. 2016-12-01 23:13:11 +00:00
llvm-nm Add a warning when the llvm-nm -print-size flag is used on a Mach-O file as 2017-01-25 21:33:38 +00:00
llvm-objdump llvm-objdump: handle line numbers and source options for amdgpu objects 2017-03-07 20:17:11 +00:00
llvm-opt-report [llvm-opt-report] Fix context-sensitive lines where nothing happened 2017-01-07 20:21:17 +00:00
llvm-pdbdump [PDB] Add support for parsing Flags from PDB Stream. 2017-03-16 20:19:11 +00:00
llvm-profdata Resubmit r297897: [PGO] Value profile for size of memory intrinsic calls 2017-03-16 21:15:48 +00:00
llvm-readobj [llvm-readobj] Support SHT_MIPS_DWARF section type flag 2017-03-10 08:22:25 +00:00
llvm-rtdyld Apply clang-tidy's 'performance-faster-string-find' check to LLVM. 2016-11-30 10:01:11 +00:00
llvm-shlib
llvm-size llvm-size: remove leading dash in '-radix' option 2016-12-23 23:55:08 +00:00
llvm-split [CMake] llvm-split depends on intrinsics_gen 2016-11-18 23:20:38 +00:00
llvm-stress Remove uses of deprecated std::random_shuffle in the LLVM code base. Reviewed as https://reviews.llvm.org/D29780. 2017-02-16 14:37:03 +00:00
llvm-strings llvm-strings: remove default for -Wcovered-switch-default 2017-01-21 02:52:29 +00:00
llvm-symbolizer Add a verbose/human readable mode to llvm-symbolizer to investigate discriminators and other line table/backtrace features 2017-01-31 22:19:38 +00:00
llvm-xray [XRAY] A Color Choosing helper for XRay Graph 2017-02-25 00:26:42 +00:00
lto [ThinLTO] Honor -O{0,1,2,4} passed through the libLTO interface for ThinLTO 2016-12-28 19:37:16 +00:00
msbuild Create msbuild only when using MSVC 2017-03-16 20:24:14 +00:00
obj2yaml [ObjectYAML] Add support for DWARF5 Unit header 2017-03-07 18:50:58 +00:00
opt opt: Rename -default-data-layout flag to -data-layout and make it always override the layout. 2017-02-17 17:36:52 +00:00
sancov [sancov] better input parameters validation 2017-03-03 18:22:20 +00:00
sanstats [CMake] sanstats depends on intrinsics_gen 2016-11-18 23:30:39 +00:00
verify-uselistorder [CMake] verify-uselistorder depends on intrinsics_gen 2016-11-18 23:30:58 +00:00
xcode-toolchain
yaml2obj Add LC_BUILD_VERSION load command 2017-01-23 20:07:55 +00:00
CMakeLists.txt
LLVMBuild.txt Add llvm-modextract tool. 2016-11-29 21:54:33 +00:00