mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
DAGNodeWorklist TODO
This commit is contained in:
@@ -25,6 +25,9 @@
|
||||
///
|
||||
/// The primary API has two methods: intialize() and pop(). Others are provided
|
||||
/// for flexibility.
|
||||
///
|
||||
/// TODO: This also works well for cyclic graph traversal. Particularly CFG
|
||||
/// traversal. So we should probably just call it GraphNodeWorklist.
|
||||
template <typename T, unsigned SmallSize> struct DAGNodeWorklist {
|
||||
llvm::SmallPtrSet<T, SmallSize> nodeVisited;
|
||||
llvm::SmallVector<T, SmallSize> nodeVector;
|
||||
|
||||
Reference in New Issue
Block a user