llvm-project/clang/unittests
Benjamin Kramer 94355aeff8 [AST] Re-add TypeLocs and NestedNameSpecifierLocs to the ParentMap.
This relands r250831 after some fixes to shrink the ParentMap overall
with one addtional tweak: nodes with pointer identity (e.g. Decl* and
friends) can be store more efficiently so I put them in a separate map.
All other nodes (so far only TypeLoc and NNSLoc) go in a different map
keyed on DynTypedNode. This further uglifies the code but significantly
reduces memory overhead.

Overall this change still make ParentMap significantly larger but it's
nowhere as bad as before. I see about 25 MB over baseline (pre-r251008)
on X86ISelLowering.cpp. If this becomes an issue we could consider
splitting the maps further as DynTypedNode is still larger (32 bytes)
than a single TypeLoc (16 bytes) but I didn't want to introduce even
more complexity now.

Differential Revision: http://reviews.llvm.org/D14011

llvm-svn: 251101
2015-10-23 09:04:55 +00:00
..
AST [AST] Re-add TypeLocs and NestedNameSpecifierLocs to the ParentMap. 2015-10-23 09:04:55 +00:00
ASTMatchers [AST] Re-add TypeLocs and NestedNameSpecifierLocs to the ParentMap. 2015-10-23 09:04:55 +00:00
Basic [VFS] Let the user decide if they want path normalization. 2015-10-12 16:16:39 +00:00
CodeGen Fix Clang-tidy modernize-use-nullptr warnings in source directories; other minor cleanups 2015-10-06 23:40:43 +00:00
Driver [Driver] Use the parent_path of the clang executable as the default InstalledDir 2015-10-13 15:19:32 +00:00
Format clang-format: Teach --sort-includes to interleave #include and #import. 2015-10-21 17:13:45 +00:00
Frontend Add a missing dependency to unittests/Frontend. 2015-07-10 15:47:36 +00:00
Lex [VFS] Use VFS instead of virtual files in PPCallbacks test. 2015-10-08 14:20:14 +00:00
Rewrite [Rewrite] Make RewriteBuffer accessible on its own, and add a unit test for it. 2015-03-08 04:00:33 +00:00
Sema Use 'override/final' instead of 'virtual' for overridden methods 2015-04-11 02:00:23 +00:00
StaticAnalyzer [analyzer] Individual configuration options can be specified for checkers. 2015-03-04 17:59:34 +00:00
Tooling [Tooling] Add a utility function to replace one nested name with another. 2015-10-22 15:04:10 +00:00
libclang Tweak libclang's users, c-arcmt-test, c-index-test and libclangTests to satisfy LDFLAGS=-static. 2015-07-12 12:17:55 +00:00
CMakeLists.txt Document problems when trying libclang tests on Windows 7. 2015-07-05 17:53:00 +00:00
Makefile [Rewrite] Make RewriteBuffer accessible on its own, and add a unit test for it. 2015-03-08 04:00:33 +00:00