Searched refs:StateID (Results 1 – 9 of 9) sorted by relevance
| /llvm-project-15.0.7/clang-tools-extra/pseudo/include/clang-pseudo/grammar/ |
| H A D | LRTable.h | 67 using StateID = uint16_t; 78 llvm::Optional<StateID> getGoToState(StateID State, in getGoToState() 85 llvm::Optional<StateID> getShiftState(StateID State, in getShiftState() 113 llvm::ArrayRef<Recovery> getRecovery(StateID State) const { in getRecovery() 127 StateID getStartState(SymbolID StartSymbol) const; 152 std::vector<std::pair<SymbolID, StateID>> StartStates; 155 llvm::DenseMap<std::pair<StateID, SymbolID>, StateID> Transition; 161 std::vector<std::pair<StateID, Recovery>> Recoveries; 191 std::vector<StateID> Values; 218 llvm::Optional<StateID> get(unsigned Key) const { in get() [all …]
|
| H A D | LRGraph.h | 127 using StateID = uint16_t; 136 StateID Src, Dst; 146 StateID Src; // The state we are in when encountering the error. 154 llvm::ArrayRef<std::pair<SymbolID, StateID>> startStates() const { in startStates() 163 std::vector<std::pair<SymbolID, StateID>> StartStates) in LRGraph() 171 std::vector<std::pair<SymbolID, StateID>> StartStates;
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/unittests/ |
| H A D | GLRTest.cpp | 34 using StateID = LRTable::StateID; typedef 40 MATCHER_P(state, StateID, "") { return arg->State == StateID; } 176 B.Transition[{StateID{0}, id("class-name")}] = StateID{2}; in TEST_F() 177 B.Transition[{StateID{0}, id("enum-name")}] = StateID{3}; in TEST_F() 273 B.Transition[{StateID{1}, id("type-name")}] = StateID{5}; in TEST_F() 329 B.Transition[{StateID{0}, id("pointer")}] = StateID{5}; in TEST_F() 357 B.Transition[{StateID{0}, id("term")}] = StateID{2}; in TEST_F() 391 B.Transition[{StateID{1}, id("word")}] = StateID{3}; in TEST_F() 435 B.Transition[{StateID{1}, id("body")}] = StateID{2}; in TEST_F() 477 B.Transition[{StateID{1}, id("number")}] = StateID{2}; in TEST_F() [all …]
|
| H A D | LRTableTest.cpp | 23 using StateID = LRTable::StateID; typedef 48 B.Transition[{StateID{0}, Identifier}] = StateID{0}; in TEST() 49 B.Transition[{StateID{1}, Term}] = StateID{3}; in TEST() 50 B.Reduce[StateID{0}].insert(RuleID{0}); in TEST() 51 B.Reduce[StateID{1}].insert(RuleID{2}); in TEST() 52 B.Reduce[StateID{2}].insert(RuleID{1}); in TEST()
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/lib/grammar/ |
| H A D | LRGraph.cpp | 166 for (StateID ID = 0; ID < States.size(); ++ID) { in dumpForTests() 183 std::pair<StateID, /*inserted*/ bool> insert(ItemSet KernelItems) { in buildLR0() 190 StateID NextStateID = States.size() - 1; in buildLR0() 195 void insertEdge(StateID Src, StateID Dst, SymbolID Label) { in buildLR0() 204 const State &find(StateID ID) const { in buildLR0() 209 void addStartState(SymbolID Sym, StateID State) { in buildLR0() 230 std::vector<std::pair<SymbolID, StateID>> StartStates; in buildLR0() 233 std::vector<StateID> PendingStates; in buildLR0() 249 auto StateID = PendingStates.back(); in buildLR0() local 255 Builder.insertEdge(StateID, Insert.first, Next.first); in buildLR0() [all …]
|
| H A D | LRTable.cpp | 36 for (StateID S = 0; S < numStates(); ++S) { in dumpForTests() 67 LRTable::StateID LRTable::getStartState(SymbolID Target) const { in getStartState() 70 StartStates, [Target](const std::pair<SymbolID, StateID> &X) { in getStartState()
|
| H A D | LRTableBuild.cpp | 25 StateID MaxState = 0; in build() 57 for (StateID S = 0; S < NumStates; ++S) { in build() 79 for (StateID State = 0; State < NumStates; ++State) { in build() 104 for (StateID SID = 0; SID < Graph.states().size(); ++SID) { in buildSLR()
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/lib/ |
| H A D | GLR.cpp | 185 LRTable::StateID OldState = Option->RecoveryNode->State; in glrRecover() 186 LRTable::StateID NewState = in glrRecover() 197 using StateID = LRTable::StateID; typedef 231 llvm::SmallVector<std::pair<StateID, const GSS::Node *>, 8> Shifts; in glrShift() 242 StateID NextState = Rest.front().first; in glrShift() 481 std::vector<std::pair</*Goto*/ StateID, const GSS::Node *>> FamilyBases; 530 StateID NextState = BasesLeft.front().first; in pushNext() 599 StateID StartState = Lang.Table.getStartState(StartSymbol); in glrParse() 686 const GSS::Node *GSS::addNode(LRTable::StateID State, const ForestNode *Symbol, in addNode()
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/include/clang-pseudo/ |
| H A D | GLR.h | 71 LRTable::StateID State; in alignas() 91 const Node *addNode(LRTable::StateID State, const ForestNode *Symbol,
|