mirror of
https://github.com/verilator/verilator.git
synced 2026-09-03 05:33:14 +02:00
Rename AstAssignAlias to AstAlias and make it derive from AstNode instead of AstNodeStmt. Replace AstAlias with AstAssignW in V3LinkDot::linkDotScope, which is the last place we need to be aware of the alias construct. Using AstAssignW dowstream enables further optimization while preserving the same functionality.
This commit is contained in:
+2
-2
@@ -208,7 +208,7 @@ class ScopeVisitor final : public VNVisitor {
|
||||
m_scopep->addBlocksp(clonep);
|
||||
iterateChildren(clonep); // We iterate under the *clone*
|
||||
}
|
||||
void visit(AstAssignAlias* nodep) override {
|
||||
void visit(AstAlias* nodep) override {
|
||||
// Add to list of blocks under this scope
|
||||
UINFO(4, " Move " << nodep);
|
||||
AstNode* const clonep = nodep->cloneTree(false);
|
||||
@@ -353,7 +353,7 @@ class ScopeCleanupVisitor final : public VNVisitor {
|
||||
}
|
||||
|
||||
void visit(AstNodeProcedure* nodep) override { movedDeleteOrIterate(nodep); }
|
||||
void visit(AstAssignAlias* nodep) override { movedDeleteOrIterate(nodep); }
|
||||
void visit(AstAlias* nodep) override { movedDeleteOrIterate(nodep); }
|
||||
void visit(AstAssignVarScope* nodep) override { movedDeleteOrIterate(nodep); }
|
||||
void visit(AstAssignW* nodep) override { movedDeleteOrIterate(nodep); }
|
||||
void visit(AstCoverToggle* nodep) override { movedDeleteOrIterate(nodep); }
|
||||
|
||||
Reference in New Issue
Block a user