summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2017-08-02 13:04:44 +0000
committerManuel Klimek <klimek@google.com>2017-08-02 13:04:44 +0000
commit696e505278663ef76f996fa5c196ba01e2904be2 (patch)
treecc97e4d5d3aef31b5f3c03020a0d92e4074dcee8 /llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
parentf23bb4a8ba9e0e30a954d52175845e21833dfa37 (diff)
downloadbcm5719-llvm-696e505278663ef76f996fa5c196ba01e2904be2.tar.gz
bcm5719-llvm-696e505278663ef76f996fa5c196ba01e2904be2.zip
Unify and simplify the behavior of the hasDeclaration matcher.
Originally, we weren't able to match on Type nodes themselves (only QualType), so the hasDeclaration matcher was initially written to give what we thought are reasonable results for QualType matches. When we chagned the matchers to allow matching on Type nodes, it turned out that the hasDeclaration matcher was by chance written templated enough to now allow hasDeclaration to also match on (some) Type nodes. This patch change the hasDeclaration matcher to: a) work the same on Type and QualType nodes, b) be completely explicit about what nodes we can match instead of just allowing anything with a getDecl() to match, c) explicitly control desugaring only one level in very specific instances. d) adds hasSpecializedTemplate and tagType matchers to allow migrating existing use cases that now need more explicit matchers Note: This patch breaks clang-tools-extra. The corresponding patch there is approved and will land in a subsequent patch. Differential Revision: https://reviews.llvm.org/D27104 llvm-svn: 309809
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud