mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Improve V3Ast function usage ergonomics (#3650)
Signed-off-by: HungMingWu <[email protected]>
This commit is contained in:
+3
-3
@@ -385,7 +385,7 @@ private:
|
||||
// Blocking assignments are always OK in combinational (and initial/final) processes
|
||||
if (m_check != CT_SEQ) return;
|
||||
|
||||
const bool ignore = nodep->lhsp()->forall<AstVarRef>([&](const AstVarRef* refp) {
|
||||
const bool ignore = nodep->lhsp()->forall([&](const AstVarRef* refp) {
|
||||
// Ignore reads (e.g.: index expressions)
|
||||
if (refp->access().isReadOnly()) return true;
|
||||
const AstVar* const varp = refp->varp();
|
||||
@@ -500,7 +500,7 @@ private:
|
||||
|
||||
void visitSenItems(AstNode* nodep) {
|
||||
if (v3Global.opt.timing().isSetTrue()) {
|
||||
nodep->foreach<AstSenItem>([this](AstSenItem* senItemp) { visit(senItemp); });
|
||||
nodep->foreach([this](AstSenItem* senItemp) { visit(senItemp); });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -561,7 +561,7 @@ private:
|
||||
}
|
||||
}
|
||||
|
||||
nodep->sensp()->foreach<AstVarRef>([](const AstVarRef* refp) {
|
||||
nodep->sensp()->foreach([](const AstVarRef* refp) {
|
||||
refp->varp()->usedClock(true);
|
||||
refp->varScopep()->user1(true);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user