Lines Matching defs:StateNode
1280 struct StateNode {
1281 StateNode(const LineState &State, bool NewLine, StateNode *Previous)
1285 StateNode *Previous;
1288 /// An item in the prioritized BFS search queue. The \c StateNode's
1290 typedef std::pair<OrderedPenalty, StateNode *> QueueItem;
1308 // Increasing count of \c StateNode items we have created. This is used to
1314 StateNode *RootNode =
1315 new (Allocator.Allocate()) StateNode(InitialState, false, nullptr);
1328 StateNode *Node = Queue.top().second;
1375 void addNextStateToQueue(unsigned Penalty, StateNode *PreviousNode,
1382 StateNode *Node = new (Allocator.Allocate())
1383 StateNode(PreviousNode->State, NewLine, PreviousNode);
1395 void reconstructPath(LineState &State, StateNode *Best) {
1396 llvm::SmallVector<StateNode *> Path;
1418 llvm::SpecificBumpPtrAllocator<StateNode> Allocator;