Lines Matching refs:GSS

42 void glrRecover(llvm::ArrayRef<const GSS::Node *> OldHeads,  in glrRecover()
45 std::vector<const GSS::Node *> &NewHeads) { in glrRecover()
59 const GSS::Node *RecoveryNode; in glrRecover()
94 llvm::DenseSet<const GSS::Node *> Seen; in glrRecover()
95 auto WalkUp = [&](const GSS::Node *N, Token::Index NextTok, auto &WalkUp) { in glrRecover()
111 for (const GSS::Node *Parent : N->parents()) in glrRecover()
190 const GSS::Node *NewHead = in glrRecover()
199 llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const GSS::Node &N) { in operator <<()
222 void glrShift(llvm::ArrayRef<const GSS::Node *> OldHeads, in glrShift()
224 const Language &Lang, std::vector<const GSS::Node *> &NewHeads) { in glrShift()
231 llvm::SmallVector<std::pair<StateID, const GSS::Node *>, 8> Shifts; in glrShift()
238 llvm::SmallVector<const GSS::Node *> Parents; in glrShift()
390 const GSS::Node* LastPop = nullptr;
397 std::vector<const GSS::Node *> *Heads;
406 void operator()(std::vector<const GSS::Node *> &Heads, SymbolID Lookahead) { in operator ()()
436 void pop(const GSS::Node *Head, RuleID RID, const Rule &Rule) { in pop()
440 auto DFS = [&](const GSS::Node *N, unsigned I, auto &DFS) { in pop()
459 for (const GSS::Node *Parent : N->parents()) in pop()
481 std::vector<std::pair</*Goto*/ StateID, const GSS::Node *>> FamilyBases;
483 std::vector<const GSS::Node *> Parents;
504 for (const GSS::Node *Base : Push.LastPop->parents()) { in pushNext()
559 const GSS::Node *Head = Heads->back(); in popAndPushTrivial()
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()
604 std::vector<const GSS::Node *> NextHeads; in glrParse()
605 auto MaybeGC = [&, Roots(std::vector<const GSS::Node *>{}), I(0u)]() mutable { in glrParse()
613 GSS.gc(std::move(Roots)); in glrParse()
650 auto SearchForAccept = [&](llvm::ArrayRef<const GSS::Node *> Heads) { in glrParse()
680 void glrReduce(std::vector<const GSS::Node *> &Heads, SymbolID Lookahead, in glrReduce()
686 const GSS::Node *GSS::addNode(LRTable::StateID State, const ForestNode *Symbol, in addNode()
699 GSS::Node *GSS::allocate(unsigned Parents) { in allocate()
712 void GSS::destroy(Node *N) { in destroy()
719 unsigned GSS::gc(std::vector<const Node *> &&Queue) { in gc()