aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2021-01-01 23:18:43 +0000
committerStephen Kelly <steveire@gmail.com>2021-01-16 12:53:11 +0000
commita7101450a42e4f1ed5af1a38a6def08f1b5b58fe (patch)
tree18c4799b5572463856bc227f4e9bb5f8cb38c056 /llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
parentf0a0ec2d085b0bc53e20643b740b20b49cfd9bd5 (diff)
downloadllvm-a7101450a42e4f1ed5af1a38a6def08f1b5b58fe.zip
llvm-a7101450a42e4f1ed5af1a38a6def08f1b5b58fe.tar.gz
llvm-a7101450a42e4f1ed5af1a38a6def08f1b5b58fe.tar.bz2
[ASTMatchers] Add mapAnyOf matcher
Make it possible to compose a matcher for different base nodes. This accepts one or more node matcher functors and zero or more matchers, composing the latter into the former. This allows composing of matchers where the same inner matcher name is used for the same concept, but with a different node functor. Currently, there is a limitation that the nodes must be in the same "clade", so while mapAnyOf(ifStmt, forStmt).with(hasBody(stmt())) can be used, functionDecl can not be added to the tuple. It is possible to use this in clang-query, but it will require changes to the QueryParser, so is deferred to a future review. Differential Revision: https://reviews.llvm.org/D94127
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp')
0 files changed, 0 insertions, 0 deletions