DAGNodeWorklist TODO

This commit is contained in:
Andrew Trick
2021-09-27 21:28:52 -07:00
parent ae727e1348
commit f9e95da19b

View File

@@ -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;