From aa2b653c71a6d9f87810cde47d5d21e1103ae66a Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 1 Dec 2024 17:38:02 -0500 Subject: [PATCH] Internals: With `--dumpi-tree >= 9`, create pre-sort cells.tree --- src/V3Global.cpp | 2 ++ src/V3LinkLevel.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/V3Global.cpp b/src/V3Global.cpp index e65a00081..bd61712cb 100644 --- a/src/V3Global.cpp +++ b/src/V3Global.cpp @@ -108,6 +108,8 @@ void V3Global::readFiles() { // Resolve all modules cells refer to V3LinkCells::link(v3Global.rootp(), &filter, &parseSyms); } + + V3Global::dumpCheckGlobalTree("cells", false, dumpTreeEitherLevel() >= 9); } void V3Global::removeStd() { diff --git a/src/V3LinkLevel.cpp b/src/V3LinkLevel.cpp index 76254c77c..228b9a7de 100644 --- a/src/V3LinkLevel.cpp +++ b/src/V3LinkLevel.cpp @@ -82,7 +82,7 @@ void V3LinkLevel::modSortByLevel() { UASSERT_OBJ(!v3Global.rootp()->modulesp(), v3Global.rootp(), "Unlink didn't work"); for (AstNodeModule* nodep : mods) v3Global.rootp()->addModulesp(nodep); UINFO(9, "modSortByLevel() done\n"); // Comment required for gcc4.6.3 / bug666 - V3Global::dumpCheckGlobalTree("cells", false, dumpTreeEitherLevel() >= 3); + V3Global::dumpCheckGlobalTree("cellsort", false, dumpTreeEitherLevel() >= 3); } void V3LinkLevel::timescaling(const ModVec& mods) {