mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
Internals: Rename Ast on non-node classes (#3262). No functional change.
This commit has the following replacements applied:
s/\bAstUserInUseBase\b/VNUserInUseBase/g;
s/\bAstAttrType\b/VAttrType/g;
s/\bAstBasicDTypeKwd\b/VBasicDTypeKwd/g;
s/\bAstDisplayType\b/VDisplayType/g;
s/\bAstNDeleter\b/VNDeleter/g;
s/\bAstNRelinker\b/VNRelinker/g;
s/\bAstNVisitor\b/VNVisitor/g;
s/\bAstPragmaType\b/VPragmaType/g;
s/\bAstType\b/VNType/g;
s/\bAstUser1InUse\b/VNUser1InUse/g;
s/\bAstUser2InUse\b/VNUser2InUse/g;
s/\bAstUser3InUse\b/VNUser3InUse/g;
s/\bAstUser4InUse\b/VNUser4InUse/g;
s/\bAstUser5InUse\b/VNUser5InUse/g;
s/\bAstVarType\b/VVarType/g;
This commit is contained in:
+4
-4
@@ -36,7 +36,7 @@
|
||||
// Then user can build Verilated module as usual.
|
||||
//
|
||||
// Here is more detailed internal process.
|
||||
// 1) Parser adds AstPragmaType::HIER_BLOCK of AstPragma to modules
|
||||
// 1) Parser adds VPragmaType::HIER_BLOCK of AstPragma to modules
|
||||
// that are marked with /*verilator hier_block*/ metacomment in Verilator run a).
|
||||
// 2) AstModule with HIER_BLOCK pragma is marked modp->hier_block(true)
|
||||
// in V3LinkResolve.cpp during run a).
|
||||
@@ -236,10 +236,10 @@ string V3HierBlock::commandArgsFileName(bool forCMake) const {
|
||||
|
||||
//######################################################################
|
||||
// Collect how hierarchical blocks are used
|
||||
class HierBlockUsageCollectVisitor final : public AstNVisitor {
|
||||
class HierBlockUsageCollectVisitor final : public VNVisitor {
|
||||
// NODE STATE
|
||||
// AstNode::user1() -> bool. Processed
|
||||
const AstUser1InUse m_inuser1;
|
||||
const VNUser1InUse m_inuser1;
|
||||
|
||||
// STATE
|
||||
using ModuleSet = std::unordered_set<const AstModule*>;
|
||||
@@ -247,7 +247,7 @@ class HierBlockUsageCollectVisitor final : public AstNVisitor {
|
||||
AstModule* m_modp = nullptr; // The current module
|
||||
AstModule* m_hierBlockp = nullptr; // The nearest parent module that is a hierarchical block
|
||||
ModuleSet m_referred; // Modules that have hier_block pragma
|
||||
V3HierBlock::GParams m_gparams; // list of variables that is AstVarType::GPARAM
|
||||
V3HierBlock::GParams m_gparams; // list of variables that is VVarType::GPARAM
|
||||
|
||||
virtual void visit(AstModule* nodep) override {
|
||||
// Don't visit twice
|
||||
|
||||
Reference in New Issue
Block a user