diff --git a/src/V3Active.cpp b/src/V3Active.cpp index 32dcef12e..84f6f26e9 100644 --- a/src/V3Active.cpp +++ b/src/V3Active.cpp @@ -476,7 +476,7 @@ private: m_scopeFinalp = new AstCFunc( nodep->fileline(), "_final_" + m_namer.scopep()->nameDotless(), m_namer.scopep()); m_scopeFinalp->dontCombine(true); - m_scopeFinalp->formCallTree(true); + m_scopeFinalp->isFinal(true); m_scopeFinalp->isStatic(false); m_scopeFinalp->isLoose(true); m_scopeFinalp->slow(true); diff --git a/src/V3AstNodes.h b/src/V3AstNodes.h index 92045b5b6..545fefae5 100644 --- a/src/V3AstNodes.h +++ b/src/V3AstNodes.h @@ -8874,7 +8874,7 @@ private: bool m_isTrace : 1; // Function is related to tracing bool m_dontCombine : 1; // V3Combine shouldn't compare this func tree, it's special bool m_declPrivate : 1; // Declare it private - bool m_formCallTree : 1; // Make a global function to call entire tree of functions + bool m_isFinal : 1; // This is a function corresponding to a SystemVerilog 'final' block bool m_slow : 1; // Slow routine, called once or just at init time bool m_funcPublic : 1; // From user public task/function bool m_isConstructor : 1; // Is C class constructor @@ -8903,7 +8903,7 @@ public: m_isTrace = false; m_dontCombine = false; m_declPrivate = false; - m_formCallTree = false; + m_isFinal = false; m_slow = false; m_funcPublic = false; m_isConstructor = false; @@ -8961,8 +8961,8 @@ public: bool dontInline() const { return dontCombine() || slow() || funcPublic(); } bool declPrivate() const { return m_declPrivate; } void declPrivate(bool flag) { m_declPrivate = flag; } - bool formCallTree() const { return m_formCallTree; } - void formCallTree(bool flag) { m_formCallTree = flag; } + bool isFinal() const { return m_isFinal; } + void isFinal(bool flag) { m_isFinal = flag; } bool slow() const { return m_slow; } void slow(bool flag) { m_slow = flag; } bool funcPublic() const { return m_funcPublic; } diff --git a/src/V3Clock.cpp b/src/V3Clock.cpp index 74e5899f8..77b655963 100644 --- a/src/V3Clock.cpp +++ b/src/V3Clock.cpp @@ -322,8 +322,8 @@ private: virtual void visit(AstCFunc* nodep) override { iterateChildren(nodep); // Link to global function - if (nodep->formCallTree()) { - UINFO(4, " formCallTree " << nodep << endl); + if (nodep->isFinal()) { + UINFO(4, " isFinal " << nodep << endl); AstCCall* const callp = new AstCCall(nodep->fileline(), nodep); m_finalFuncp->addStmtsp(callp); }