File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed
lib/Dialect/FIRRTL/Transforms Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -106,9 +106,6 @@ class CircuitDomainInfo {
106106 size_t getNumDomains () const { return domainTable.size (); }
107107 DomainOp getDomain (DomainTypeID id) const { return domainTable[id]; }
108108
109- DomainTypeID getDomainTypeID (DomainOp op) const {
110- return typeIDTable.at (op.getNameAttr ());
111- }
112109
113110 DomainTypeID getDomainTypeID (StringAttr name) const {
114111 return typeIDTable.at (name);
@@ -1407,18 +1404,14 @@ struct InferDomainsPass
14071404} // namespace
14081405
14091406void InferDomainsPass::runOnOperation () {
1410- LLVM_DEBUG ( debugPassHeader ( this ) << " \n " );
1407+ CIRCT_DEBUG_SCOPED_PASS_LOGGER ( this );
14111408 auto circuit = getOperation ();
14121409 auto &instanceGraph = getAnalysis<InstanceGraph>();
14131410 GlobalState globals (circuit);
14141411 DenseSet<InstanceGraphNode *> visited;
1415- for (auto *root : instanceGraph) {
1416- for (auto *node : llvm::post_order_ext (root, visited)) {
1417- if (failed (runOnModuleLike (mode, globals, node->getModule ()))) {
1418- signalPassFailure ();
1419- return ;
1420- }
1421- }
1422- }
1423- LLVM_DEBUG (debugFooter () << " \n " );
1412+ auto result = instanceGraph.walkPostOrder ([&](auto &node) {
1413+ return runOnModuleLike (mode, globals, node.getModule ());
1414+ });
1415+ if (failed (result))
1416+ signalPassFailure ();
14241417}
You can’t perform that action at this time.
0 commit comments