Lines Matching refs:Stack
142 Stack.emplace_back(std::make_unique<InProgressEntry>(
145 return &Stack.back()->Event;
153 Stack.emplace_back(std::make_unique<InProgressEntry>(
156 return &Stack.back()->Event;
160 if (Stack.empty())
163 Stack.back()->InstantEvents.emplace_back(TimeTraceProfilerEntry(
169 assert(!Stack.empty() && "Must call begin() first");
170 end(Stack.back()->Event);
174 assert(!Stack.empty() && "Must call begin() first");
181 llvm::find_if(Stack, [&](const std::unique_ptr<InProgressEntry> &Val) {
184 assert(Iter != Stack.end() && "Event not in the Stack");
199 if (llvm::none_of(llvm::drop_begin(llvm::reverse(Stack)),
208 Stack.erase(Iter);
217 assert(Stack.empty() &&
220 [](const auto &TTP) { return TTP->Stack.empty(); }) &&
366 SmallVector<std::unique_ptr<InProgressEntry>, 16> Stack;