llvm-project/clang/lib/ASTMatchers
Samuel Benzaquen 7ec2cb2fda Separate the matchers by type and statically dispatch to the right list.
Summary:
Separate the matchers by type and statically dispatch to the right list.
For any node type that we support, it reduces the number of matchers we
run it through.
For node types we do not support, it makes match() a noop.
This change improves our clang-tidy related benchmark by ~30%.

Reviewers: klimek

Subscribers: klimek, cfe-commits

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

llvm-svn: 217274
2014-09-05 20:15:31 +00:00
..
Dynamic Refactor VariantMatcher::MatcherOps to reduce the amount of generated code. 2014-09-04 14:13:58 +00:00
ASTMatchFinder.cpp Separate the matchers by type and statically dispatch to the right list. 2014-09-05 20:15:31 +00:00
ASTMatchersInternal.cpp Refactor VariantMatcher::MatcherOps to reduce the amount of generated code. 2014-09-04 14:13:58 +00:00
CMakeLists.txt [CMake] Use LINK_LIBS instead of target_link_libraries(). 2014-02-26 06:41:29 +00:00
Makefile First revision of the dynamic ASTMatcher library. 2013-05-14 09:13:00 +00:00