Home
last modified time | relevance | path

Searched refs:DFSStack (Results 1 – 5 of 5) sorted by relevance

/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_function_call_trie.h493 Stack DFSStack(StackAllocator); in deepCopyInto()
510 if (DFSStack.AppendEmplace(Root, NewRoot) == nullptr) in deepCopyInto()
512 while (!DFSStack.empty()) { in deepCopyInto()
513 NodeAndParent NP = DFSStack.back(); in deepCopyInto()
516 DFSStack.trim(1); in deepCopyInto()
551 Stack DFSStack(StackAllocator); in mergeInto()
569 DFSStack.AppendEmplace(Root, TargetRoot); in mergeInto()
570 while (!DFSStack.empty()) { in mergeInto()
571 NodeAndTarget NT = DFSStack.back(); in mergeInto()
574 DFSStack.trim(1); in mergeInto()
[all …]
H A Dxray_profile_collector.cpp172 StackArray DFSStack(StackAlloc); in populateRecords() local
174 DFSStack.Append(R); in populateRecords()
175 while (!DFSStack.empty()) { in populateRecords()
176 auto *Node = DFSStack.back(); in populateRecords()
177 DFSStack.trim(1); in populateRecords()
192 DFSStack.Append(C.NodePtr); in populateRecords()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DLazyCallGraph.cpp813 assert(DFSStack.empty() && in switchInternalEdgeToRef()
839 DFSStack.push_back({N, I}); in switchInternalEdgeToRef()
861 while (!DFSStack.empty()) in switchInternalEdgeToRef()
918 } while (!DFSStack.empty()); in switchInternalEdgeToRef()
1237 assert(DFSStack.empty() && in removeInternalRefEdge()
1269 DFSStack.push_back({N, I}); in removeInternalRefEdge()
1301 assert(!DFSStack.empty() && in removeInternalRefEdge()
1342 } while (!DFSStack.empty()); in removeInternalRefEdge()
1809 assert(DFSStack.empty() && in buildGenericSCCs()
1835 DFSStack.push_back({N, I}); in buildGenericSCCs()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DScheduleDAGInstrs.cpp1415 std::vector<std::pair<const SUnit *, SUnit::const_pred_iterator>> DFSStack; member in __anon9baec1a40311::SchedDAGReverseDFS
1418 bool isComplete() const { return DFSStack.empty(); } in isComplete()
1421 DFSStack.push_back(std::make_pair(SU, SU->Preds.begin())); in follow()
1423 void advance() { ++DFSStack.back().second; } in advance()
1426 DFSStack.pop_back(); in backtrack()
1427 return DFSStack.empty() ? nullptr : std::prev(DFSStack.back().second); in backtrack()
1430 const SUnit *getCurr() const { return DFSStack.back().first; } in getCurr()
1432 SUnit::const_pred_iterator getPred() const { return DFSStack.back().second; } in getPred()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DNewGVN.cpp3710 std::pair<int, int> dfs_back() const { return DFSStack.back(); } in dfs_back()
3714 DFSStack.emplace_back(DFSIn, DFSOut); in push_back()
3717 bool empty() const { return DFSStack.empty(); } in empty()
3722 return DFSIn >= DFSStack.back().first && DFSOut <= DFSStack.back().second; in isInScope()
3728 assert(ValueStack.size() == DFSStack.size() && in popUntilDFSScope()
3731 !DFSStack.empty() && in popUntilDFSScope()
3732 !(DFSIn >= DFSStack.back().first && DFSOut <= DFSStack.back().second)) { in popUntilDFSScope()
3733 DFSStack.pop_back(); in popUntilDFSScope()
3740 SmallVector<std::pair<int, int>, 8> DFSStack; member in __anon0afe5c7c1511::ValueDFSStack