Internals: More const. No functional change intended.

This commit is contained in:
Wilson Snyder
2021-11-26 10:52:45 -05:00
parent 9bda2cb4ad
commit 05e12ab60e
62 changed files with 125 additions and 129 deletions
+10 -12
View File
@@ -53,9 +53,9 @@ private:
// AstNodeModule::user2() // CIL_*. Allowed to automatically inline module
// AstNodeModule::user3() // int. Number of cells referencing this module
// AstNodeModule::user4() // int. Statements in module
AstUser2InUse m_inuser2;
AstUser3InUse m_inuser3;
AstUser4InUse m_inuser4;
const AstUser2InUse m_inuser2;
const AstUser3InUse m_inuser3;
const AstUser4InUse m_inuser4;
// For the user2 field:
enum : uint8_t {
@@ -493,11 +493,10 @@ private:
// // is a direct connect to
// AstVar::user3() // bool Don't alias the user2, keep it as signal
// AstCell::user4 // AstCell* of the created clone
AstUser2InUse m_inuser2;
AstUser3InUse m_inuser3;
AstUser4InUse m_inuser4;
AstUser5InUse m_inuser5;
const AstUser2InUse m_inuser2;
const AstUser3InUse m_inuser3;
const AstUser4InUse m_inuser4;
const AstUser5InUse m_inuser5;
// STATE
AstNodeModule* m_modp = nullptr; // Current module
@@ -625,8 +624,7 @@ class InlineIntfRefVisitor final : public AstNVisitor {
private:
// NODE STATE
// AstVar::user1p() // AstCell which this Var points to
AstUser2InUse m_inuser2;
const AstUser2InUse m_inuser2;
string m_scope; // Scope name
@@ -710,8 +708,8 @@ public:
void V3Inline::inlineAll(AstNetlist* nodep) {
UINFO(2, __FUNCTION__ << ": " << endl);
AstUser1InUse m_inuser1; // output of InlineMarkVisitor,
// input to InlineVisitor.
const AstUser1InUse m_inuser1; // output of InlineMarkVisitor,
// input to InlineVisitor.
// Scoped to clean up temp userN's
{ InlineMarkVisitor mvisitor{nodep}; }
{ InlineVisitor visitor{nodep}; }