1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
llvm-mirror/lib
Zachary Turner f070dd590e [codeview,pdb] Try really hard to conserve memory when reading.
PDBs can be extremely large.  We're already mapping the entire
PDB into the process's address space, but to make matters worse
the blocks of the PDB are not arranged contiguously.  So, when
we have something like an array or a string embedded into the
stream, we have to make a copy.  Since it's convenient to use
traditional data structures to iterate and manipulate these
records, we need the memory to be contiguous.

As a result of this, we were using roughly twice as much memory
as the file size of the PDB, because every stream was copied
out and re-stitched together contiguously.

This patch addresses this by improving the MappedBlockStream
to allocate from a BumpPtrAllocator only when a read requires
a discontiguous read.  Furthermore, it introduces some data
structures backed by a stream which can iterate over both
fixed and variable length records of a PDB.  Since everything
is backed by a stream and not a buffer, we can read almost
everything from the PDB with zero copies.

Differential Revision: http://reviews.llvm.org/D20654
Reviewed By: ruiu

llvm-svn: 270951
2016-05-27 01:54:44 +00:00
..
Analysis [LoopUnrollAnalyzer] Bail out instead of dying with assert when facing huge index. 2016-05-27 00:55:16 +00:00
AsmParser Objective-C Class Properties: Autoupgrade "Class Properties" module flag. 2016-05-25 23:14:48 +00:00
Bitcode Objective-C Class Properties: Autoupgrade "Class Properties" module flag. 2016-05-25 23:14:48 +00:00
CodeGen [CodeGen] Fix problem with X86 byte registers in CriticalAntiDepBreaker 2016-05-26 23:08:52 +00:00
DebugInfo [codeview,pdb] Try really hard to conserve memory when reading. 2016-05-27 01:54:44 +00:00
ExecutionEngine [Orc] Merge some common code for creating CompileCallbackManagers and 2016-05-26 17:20:35 +00:00
Fuzzer [libFuzzer] make check-fuzzer a bit faster 2016-05-27 01:12:21 +00:00
IR [ConstantFold] NFC cleanup after previous change. 2016-05-26 07:08:09 +00:00
IRReader
LibDriver LibDriver: Silently do nothing when provided no inputs. 2016-04-13 19:36:04 +00:00
LineEditor Fix Clang-tidy modernize-deprecated-headers warnings in some files; other minor fixes. 2016-03-28 17:40:08 +00:00
Linker ValueMaterializer: rename materializeDeclFor() to materialize() 2016-05-25 21:03:21 +00:00
LTO [ThinLTO] Resolve LinkOnceAny 2016-05-26 14:16:52 +00:00
MC coff: fix weak alias to local. 2016-05-26 20:31:00 +00:00
Object [CMake] Restrict libxar linkage to just llvm-objdump 2016-05-26 16:32:40 +00:00
ObjectYAML [obj2yaml][yaml2obj] Support for MachO lazy bindings 2016-05-26 21:29:39 +00:00
Option Option parser: class for consuming a joined arg in addition to all remaining args 2016-04-15 00:23:30 +00:00
Passes [PM] Port PartiallyInlineLibCalls to the new pass manager. 2016-05-25 23:38:53 +00:00
ProfileData Add FIXMEs to all derived classes of std::error_category. 2016-05-24 20:13:46 +00:00
Support [Support] Rename unconvertibleErrorCode to inconvertibleErrorCode. 2016-05-27 01:54:25 +00:00
TableGen [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
Target [Hexagon] Enable the post-RA scheduler 2016-05-26 19:44:28 +00:00
Transforms ValueMapper: fix typo in minor optimization on constant mapping (NFC) 2016-05-27 00:32:12 +00:00
CMakeLists.txt Move ObjectYAML code to a new library. 2016-03-01 19:15:06 +00:00
LLVMBuild.txt Add LLVMBuild for ObjectYAML. 2016-03-01 21:29:33 +00:00