Lines Matching refs:RID
423 bool canReduce(const Rule &R, RuleID RID, in canReduce() argument
427 if (auto Guard = Lang.Guards.lookup(RID)) in canReduce()
431 Lang.G.dumpRule(RID))); in canReduce()
436 void pop(const GSS::Node *Head, RuleID RID, const Rule &Rule) { in pop() argument
437 LLVM_DEBUG(llvm::dbgs() << " Pop " << Lang.G.dumpRule(RID) << "\n"); in pop()
438 Family F{/*Start=*/0, /*Symbol=*/Rule.Target, /*Rule=*/RID}; in pop()
448 if (!canReduce(Rule, RID, TempSequence)) in pop()
471 for (RuleID RID : in popPending() local
473 const auto &Rule = Lang.G.lookupRule(RID); in popPending()
475 pop((*Heads)[NextPopHead], RID, Rule); in popPending()
560 llvm::Optional<RuleID> RID; in popAndPushTrivial() local
562 if (RID.has_value()) in popAndPushTrivial()
564 RID = R; in popAndPushTrivial()
566 if (!RID) in popAndPushTrivial()
568 const auto &Rule = Lang.G.lookupRule(*RID); in popAndPushTrivial()
579 if (!canReduce(Rule, *RID, TempSequence)) in popAndPushTrivial()
582 &Params.Forest.createSequence(Rule.Target, *RID, TempSequence); in popAndPushTrivial()