Skip to content

Commit

Permalink
Propagate new names
Browse files Browse the repository at this point in the history
Signed-off-by: Ryszard Rozak <[email protected]>
  • Loading branch information
RRozak committed Oct 16, 2023
1 parent 78d975a commit ca6b667
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/V3Const.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ class ConstBitOpTreeVisitor final : public VNVisitorConst {
}
// Set width and widthMin precisely
resultp->dtypeChgWidth(resultWidth, 1);
for (AstNode* const termp : termps) deleter.pushDeletep(termp);
for (AstNode* const termp : termps) deleterr.pushDeletep(termp);
return resultp;
}
const ResultTerm result = v->getResultTerm();
Expand Down Expand Up @@ -792,7 +792,7 @@ class ConstBitOpTreeVisitor final : public VNVisitorConst {

// Only substitute the result if beneficial as determined by operation count
if (visitor.m_ops <= resultOps) {
for (AstNode* const termp : termps) deleter.pushDeletep(termp);
for (AstNode* const termp : termps) deleterr.pushDeletep(termp);
return nullptr;
}

Expand Down Expand Up @@ -1176,10 +1176,10 @@ class ConstVisitor final : public VNVisitor {
const int width = nodep->width();
if (andp && isConst(andp->lhsp(), 1)) { // 1 & BitOpTree
newp = ConstBitOpTreeVisitor::simplify(andp->rhsp(), width, 1, m_statBitOpReduction,
getDeleter());
deleter());
} else { // BitOpTree
newp = ConstBitOpTreeVisitor::simplify(nodep, width, 0, m_statBitOpReduction,
getDeleter());
deleter());
}

if (newp) {
Expand Down
6 changes: 3 additions & 3 deletions src/V3Order.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ class OrderProcess final {
, m_deleteDomainp{makeDeleteDomainSenTree(netlistp->fileline())}
, m_tag{tag}
, m_slow{slow} {
deleter.pushDeletep(m_deleteDomainp);
m_deleter.pushDeletep(m_deleteDomainp);
}

~OrderProcess() = default;
Expand Down Expand Up @@ -1224,7 +1224,7 @@ AstActive* OrderProcess::processMoveOneLogic(const OrderLogicVertex* lvertexp,
needProcess = procp->needProcess();
if (suspendable) slow = slow && !VN_IS(procp, Always);
nodep = procp->stmtsp();
deleter.pushDeletep(procp);
m_deleter.pushDeletep(procp);
}

// Put suspendable processes into individual functions on their own
Expand Down Expand Up @@ -1271,7 +1271,7 @@ AstActive* OrderProcess::processMoveOneLogic(const OrderLogicVertex* lvertexp,
if (nodep->backp()) nodep->unlinkFrBack();

if (domainp == m_deleteDomainp) {
VL_DO_DANGLING(deleter.pushDeletep(nodep), nodep);
VL_DO_DANGLING(m_deleter.pushDeletep(nodep), nodep);
} else {
newFuncpr->addStmtsp(nodep);
// Add in the number of nodes we're adding
Expand Down
2 changes: 1 addition & 1 deletion src/V3Param.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ class ParamProcessor final {
AstClass* classCopyp = VN_AS(srcModpr, Class)->cloneTree(false);
// It is a temporary copy of the original class node, stored in order to create
// another instances. It is needed only during class instantiation.
deleter.pushDeletep(classCopyp);
m_deleter.pushDeletep(classCopyp);
srcModpr->user4p(classCopyp);
storeOriginalParams(classCopyp);
}
Expand Down

0 comments on commit ca6b667

Please sign in to comment.