We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae727e1 commit f9e95daCopy full SHA for f9e95da
include/swift/Basic/DAGNodeWorklist.h
@@ -25,6 +25,9 @@
25
///
26
/// The primary API has two methods: intialize() and pop(). Others are provided
27
/// for flexibility.
28
+///
29
+/// TODO: This also works well for cyclic graph traversal. Particularly CFG
30
+/// traversal. So we should probably just call it GraphNodeWorklist.
31
template <typename T, unsigned SmallSize> struct DAGNodeWorklist {
32
llvm::SmallPtrSet<T, SmallSize> nodeVisited;
33
llvm::SmallVector<T, SmallSize> nodeVector;
0 commit comments