File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
lib/Dialect/FIRRTL/Transforms Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ class Term {
127127};
128128
129129#include < list>
130+ #include < stack>
130131class Terms {
131132private:
132133 std::list<Term> terms_;
@@ -2028,16 +2029,18 @@ LogicalResult InferenceMapping::extractConstraints(Operation *op) {
20282029// ===----------------------------------------------------------------------===//
20292030// upper_bound
20302031// ===----------------------------------------------------------------------===//
2032+
2033+ struct StackFrame {
2034+ Node *node;
2035+ size_t nextChildIndex;
2036+ };
2037+
20312038std::vector<Node *> findPathBetween (Node *start, Node *end) {
20322039 if (!start || !end)
20332040 return {};
20342041 if (start == end)
20352042 return {start};
20362043
2037- struct StackFrame {
2038- Node *node;
2039- size_t nextChildIndex;
2040- };
20412044 std::stack<StackFrame> stack;
20422045 std::unordered_set<Node *> visited;
20432046 std::vector<Node *> path;
You can’t perform that action at this time.
0 commit comments