llvm-project/clang/tools
Chandler Carruth e24605bbcd [cleanup] Stop specifying size overrides for BumpPtrAllocators.
These don't seem to have any real point. Let's start with
IndexingContext. I can't come up with any conceivable reason to have
many hundereds of thousands of these alive in an address space which
would make the 4x difference in allocated (but unused) memory for the
string scratch buffer a significant memory usage problem.

The EditedSource one is somewhat more surprising. This is an 8x increase
in the memory allocated (but not used) per editted source file. However,
for this to realistically be a problem, you would need to have over half
a million editted source files in a single address space, and even that
would only really have problems on 32-bit Windows where you really only
have 2gb of virtual address space. And what's more important, the fix to
this if it is actually an issue shouldn't be to shrink the allocator's
size, it is to pass a single allocator into *many* edited source file
objects and let them share the memory.

These were the only two uses of custom sized BumpPtrAllocators
(excluding ones in the JIT using a custom allocation strategy) in all of
LLVM, Clang, LLD, LLDB, or Polly. I don't think we actually need this
complexity in the primary BumpPtrAllocator at all and am planning to
remove it.

llvm-svn: 204910
2014-03-27 10:45:22 +00:00
..
arcmt-test [C++11] Add 'override' keyword to virtual methods that override their base class. 2014-03-15 07:47:46 +00:00
c-arcmt-test c-arcmt-test/Makefile: Fixup for LDFLAGS=-static on cygming, corresponding to r197116. 2013-12-12 06:37:12 +00:00
c-index-test Remove a dead store, add a FIXME for another. 2014-03-06 21:59:38 +00:00
clang-check [C++11] Add 'override' keyword to virtual methods that override their base class. 2014-03-15 07:47:46 +00:00
clang-format Add a main function to the clang-format.py vim integration. 2014-03-10 22:12:14 +00:00
clang-format-vs clang-format vsix cmake build: use ${LLVM_TOOLS_BINARY_DIR}/${CMAKE_CFG_INTDIR} 2013-12-05 17:49:58 +00:00
diag-build Briefly document diag-build.sh 2013-12-28 21:59:11 +00:00
diagtool [C++11] Add 'override' keyword to virtual methods that override their base class. 2014-03-15 07:47:46 +00:00
driver static link polly 2014-03-14 04:04:27 +00:00
libclang [cleanup] Stop specifying size overrides for BumpPtrAllocators. 2014-03-27 10:45:22 +00:00
scan-build [analyzer] scan-build: allow quotes around "-cc1" when looking at -### output. 2014-03-20 17:43:54 +00:00
scan-view [analyzer] scan-view: don't ever serve absolute paths. 2013-04-29 17:23:06 +00:00
CMakeLists.txt CMake: enable building the clang-format vs plugin 2013-12-03 18:02:51 +00:00
Makefile Re-add clang-check to the Makefile build. 2013-08-22 16:12:04 +00:00