Internals: Remove dead code. No functional change.
Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
This commit is contained in:
parent
54b3f92951
commit
791d02a753
|
|
@ -62,15 +62,12 @@ private:
|
||||||
AstNodeModule* m_modp; // Current module
|
AstNodeModule* m_modp; // Current module
|
||||||
AstTopScope* m_topScopep; // Current top scope
|
AstTopScope* m_topScopep; // Current top scope
|
||||||
AstScope* m_scopep; // Current scope
|
AstScope* m_scopep; // Current scope
|
||||||
AstActive* m_activep; // Current block
|
|
||||||
AstUntilStable* m_untilp; // Current until
|
|
||||||
AstCFunc* m_evalFuncp; // Top eval function we are creating
|
AstCFunc* m_evalFuncp; // Top eval function we are creating
|
||||||
AstCFunc* m_initFuncp; // Top initial function we are creating
|
AstCFunc* m_initFuncp; // Top initial function we are creating
|
||||||
AstCFunc* m_finalFuncp; // Top final function we are creating
|
AstCFunc* m_finalFuncp; // Top final function we are creating
|
||||||
AstCFunc* m_settleFuncp; // Top settlement function we are creating
|
AstCFunc* m_settleFuncp; // Top settlement function we are creating
|
||||||
AstSenTree* m_lastSenp; // Last sensitivity match, so we can detect duplicates.
|
AstSenTree* m_lastSenp; // Last sensitivity match, so we can detect duplicates.
|
||||||
AstIf* m_lastIfp; // Last sensitivity if active to add more under
|
AstIf* m_lastIfp; // Last sensitivity if active to add more under
|
||||||
int m_stableNum; // Number of each untilstable
|
|
||||||
|
|
||||||
// METHODS
|
// METHODS
|
||||||
static int debug() {
|
static int debug() {
|
||||||
|
|
@ -252,7 +249,6 @@ private:
|
||||||
virtual void visit(AstNodeModule* nodep) {
|
virtual void visit(AstNodeModule* nodep) {
|
||||||
//UINFO(4," MOD "<<nodep<<endl);
|
//UINFO(4," MOD "<<nodep<<endl);
|
||||||
m_modp = nodep;
|
m_modp = nodep;
|
||||||
m_stableNum = 0;
|
|
||||||
nodep->iterateChildren(*this);
|
nodep->iterateChildren(*this);
|
||||||
m_modp= NULL;
|
m_modp= NULL;
|
||||||
}
|
}
|
||||||
|
|
@ -330,16 +326,13 @@ private:
|
||||||
pushDeletep(nodep);
|
pushDeletep(nodep);
|
||||||
}
|
}
|
||||||
void addToEvalLoop(AstNode* stmtsp) {
|
void addToEvalLoop(AstNode* stmtsp) {
|
||||||
if (m_untilp) m_untilp->addBodysp(stmtsp); // In a until loop, add to body
|
m_evalFuncp->addStmtsp(stmtsp); // add to top level function
|
||||||
else m_evalFuncp->addStmtsp(stmtsp); // else add to top level function
|
|
||||||
}
|
}
|
||||||
void addToSettleLoop(AstNode* stmtsp) {
|
void addToSettleLoop(AstNode* stmtsp) {
|
||||||
if (m_untilp) m_untilp->addBodysp(stmtsp); // In a until loop, add to body
|
m_settleFuncp->addStmtsp(stmtsp); // add to top level function
|
||||||
else m_settleFuncp->addStmtsp(stmtsp); // else add to top level function
|
|
||||||
}
|
}
|
||||||
void addToInitial(AstNode* stmtsp) {
|
void addToInitial(AstNode* stmtsp) {
|
||||||
if (m_untilp) m_untilp->addBodysp(stmtsp); // In a until loop, add to body
|
m_initFuncp->addStmtsp(stmtsp); // add to top level function
|
||||||
else m_initFuncp->addStmtsp(stmtsp); // else add to top level function
|
|
||||||
}
|
}
|
||||||
virtual void visit(AstActive* nodep) {
|
virtual void visit(AstActive* nodep) {
|
||||||
// Careful if adding variables here, ACTIVES can be under other ACTIVES
|
// Careful if adding variables here, ACTIVES can be under other ACTIVES
|
||||||
|
|
@ -393,14 +386,12 @@ private:
|
||||||
public:
|
public:
|
||||||
// CONSTUCTORS
|
// CONSTUCTORS
|
||||||
explicit ClockVisitor(AstNetlist* nodep) {
|
explicit ClockVisitor(AstNetlist* nodep) {
|
||||||
m_modp=NULL; m_activep=NULL;
|
m_modp=NULL;
|
||||||
m_evalFuncp = NULL;
|
m_evalFuncp = NULL;
|
||||||
m_topScopep=NULL;
|
m_topScopep=NULL;
|
||||||
m_lastSenp=NULL;
|
m_lastSenp=NULL;
|
||||||
m_lastIfp = NULL;
|
m_lastIfp = NULL;
|
||||||
m_scopep = NULL;
|
m_scopep = NULL;
|
||||||
m_stableNum = 0;
|
|
||||||
m_untilp = NULL;
|
|
||||||
//
|
//
|
||||||
nodep->accept(*this);
|
nodep->accept(*this);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue