[PATCH] D128805: [pseudo] Fix bugs/inconsistencies in forest dump.
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 29 04:38:04 PDT 2022
sammccall created this revision.
sammccall added a reviewer: hokein.
Herald added a project: All.
sammccall requested review of this revision.
Herald added subscribers: cfe-commits, alextsao1999.
Herald added a project: clang-tools-extra.
- when printing a shared node for the second time, don't print its children (This keeps output proportional to the size of the structure)
- when printing a shared node for the second time, print its type only, not rule (for consistency with above: don't dump details of nodes twice)
- don't abbreviate shared nodes, to ensure we can prune the tree there
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D128805
Files:
clang-tools-extra/pseudo/lib/Forest.cpp
clang-tools-extra/pseudo/test/glr.cpp
clang-tools-extra/pseudo/unittests/ForestTest.cpp
clang-tools-extra/pseudo/unittests/GLRTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128805.440939.patch
Type: text/x-patch
Size: 5933 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220629/d0435698/attachment.bin>
More information about the cfe-commits
mailing list