Searched refs:GSS (Results 1 – 7 of 7) sorted by relevance
| /llvm-project-15.0.7/clang-tools-extra/pseudo/lib/ |
| H A D | GLR.cpp | 59 const GSS::Node *RecoveryNode; in glrRecover() 94 llvm::DenseSet<const GSS::Node *> Seen; in glrRecover() 190 const GSS::Node *NewHead = in glrRecover() 390 const GSS::Node* LastPop = nullptr; 571 const GSS::Node *Base = Head; in popAndPushTrivial() 597 auto &GSS = Params.GSStack; in glrParse() local 601 std::vector<const GSS::Node *> Heads = {GSS.addNode(/*State=*/StartState, in glrParse() 613 GSS.gc(std::move(Roots)); in glrParse() 686 const GSS::Node *GSS::addNode(LRTable::StateID State, const ForestNode *Symbol, in addNode() 699 GSS::Node *GSS::allocate(unsigned Parents) { in allocate() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/include/clang-pseudo/ |
| H A D | GLR.h | 58 struct GSS { struct 113 llvm::raw_ostream &operator<<(llvm::raw_ostream &, const GSS::Node &); argument 122 GSS &GSStack; // Storage for parsing stacks. 137 void glrShift(llvm::ArrayRef<const GSS::Node *> OldHeads, 139 const Language &Lang, std::vector<const GSS::Node *> &NewHeads); 143 void glrReduce(std::vector<const GSS::Node *> &Heads, SymbolID Lookahead, 161 void glrRecover(llvm::ArrayRef<const GSS::Node *> OldHeads, 163 const Language &Lang, std::vector<const GSS::Node *> &NewHeads);
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/benchmarks/ |
| H A D | Benchmark.cpp | 124 pseudo::GSS GSS; in glrParse() local 125 pseudo::glrParse(ParseParams{Stream, Forest, GSS}, StartSymbol, *Lang); in glrParse() 137 pseudo::GSS GSS; in full() local 138 pseudo::glrParse(ParseParams{Stream, Forest, GSS}, StartSymbol, *Lang); in full()
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/unittests/ |
| H A D | GLRTest.cpp | 45 testing::Matcher<const GSS::Node *> 46 parents(llvm::ArrayRef<const GSS::Node *> Parents) { in parents() 47 return testing::Property(&GSS::Node::parents, in parents() 123 GSS GSStack; 154 std::vector<const GSS::Node *> NewHeads; in TEST_F() 187 std::vector<const GSS::Node *> Heads = {GSSNode1}; in TEST_F() 226 std::vector<const GSS::Node *> Heads = {GSSNode4}; in TEST_F() 406 std::vector<const GSS::Node *> NewHeads; in TEST_F() 457 std::vector<const GSS::Node *> NewHeads; in TEST_F() 490 std::vector<const GSS::Node *> NewHeads; in TEST_F() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/fuzzer/ |
| H A D | Fuzzer.cpp | 43 clang::pseudo::GSS GSS; in operator ()() local 46 glrParse(clang::pseudo::ParseParams{ParseableStream, Arena, GSS}, in operator ()()
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/tool/ |
| H A D | ClangPseudo.cpp | 148 clang::pseudo::GSS GSS; in main() local 157 glrParse(clang::pseudo::ParseParams{*ParseableStream, Arena, GSS}, in main() 176 llvm::outs() << "GSS bytes: " << GSS.bytes() in main() 177 << " nodes: " << GSS.nodesCreated() << "\n"; in main()
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/ |
| H A D | DesignNotes.md | 68 Our GSS looks something like: 80 will soon die, as will the parent GSS Node - the latter should trigger recovery. 82 - we need a refcount in GSS nodes so we can recognize never-reduced node death 91 - We create a GSS node to represent the state after recovery.
|