[PATCH] D127448: [wip][pseudo] Implement guard extension.

2022-07-01 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clang-tools-extra/pseudo/lib/GLR.cpp:298 auto Pop = [&](const GSS::Node *Head, RuleID RID) { -LLVM_DEBUG(llvm::dbgs() << " Pop " << Params.G.dumpRule(RID) << "\n"); -const auto &Rule = Params.G.lookupRule(RID); +LLVM_DEBUG

[PATCH] D127448: [wip][pseudo] Implement guard extension.

2022-07-01 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 441680. hokein marked 5 inline comments as done. hokein added a comment. fix format. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127448/new/ https://reviews.llvm.org/D127448 Files: clang-tools-extra/pseudo/

[PATCH] D127448: [wip][pseudo] Implement guard extension.

2022-07-01 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 441677. hokein marked 8 inline comments as done. hokein added a comment. rebase and address comments. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127448/new/ https://reviews.llvm.org/D127448 Files: clang-to

[PATCH] D127448: [wip][pseudo] Implement guard extension.

2022-06-23 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. (comments for guard part) Comment at: clang-tools-extra/pseudo/include/clang-pseudo/Language.h:22 + +// Interface for implementing the grammar "guard" attribute. +// nit: I think the first sentence should try to describe what this *is

[PATCH] D127448: [wip][pseudo] Implement guard extension.

2022-06-23 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. The ParseLang + CLI library seem clearly separate from everything else, I think this patch should be split. Comments on that part first... Comment at: clang-tools-extra/pseudo/benchmarks/Benchmark.cpp:68 for (auto _ : State) -LRTable::buildSL

[PATCH] D127448: [wip][pseudo] Implement guard extension.

2022-06-10 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 435889. hokein added a comment. - add comments; - add unittest and lit test; - misc improvements; Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127448/new/ https://reviews.llvm.org/D127448 Files: clang-tools-

[PATCH] D127448: [wip][pseudo] Implement guard extension.

2022-06-09 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: sammccall. Herald added a subscriber: mgorny. Herald added a project: All. hokein requested review of this revision. Herald added subscribers: cfe-commits, alextsao1999. Herald added a project: clang-tools-extra. - define a common data structu