summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2012-09-07 09:26:10 +0000
committerManuel Klimek <klimek@google.com>2012-09-07 09:26:10 +0000
commit3ca12c5b541e2b81f0c4d929b22b08695050f41a (patch)
tree3370467b8e0a8ab2c418feb02afd6f1e259b2f2d /llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
parentf42e860c51bb8c721dfe7542e3c28750bf6967a4 (diff)
downloadbcm5719-llvm-3ca12c5b541e2b81f0c4d929b22b08695050f41a.tar.gz
bcm5719-llvm-3ca12c5b541e2b81f0c4d929b22b08695050f41a.zip
Implements hasAncestor.
Implements the hasAncestor matcher. This builds on the previous patch that introduced DynTypedNode to build up a parent map for an additional degree of freedom in the AST traversal. The map is only built once we hit an hasAncestor matcher, in order to not slow down matching for cases where this is not needed. We could implement some speed-ups for special cases, like building up the parent map as we go and only building up the full map if we break out of the already visited part of the tree, but that is probably not going to be worth it, and would make the code significantly more complex. Major TODOs are: - implement hasParent - implement type traversal - implement memoization in hasAncestor llvm-svn: 163382
Diffstat (limited to 'llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud