mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 02:23:19 +02:00
Generate AstNode accessors via astgen
Introduce the @astgen directives parsed by astgen, currently used for the generation child node (operand) accessors. Please see the updated internal documentation for details.
This commit is contained in:
+2
-2
@@ -141,7 +141,7 @@ private:
|
||||
{
|
||||
m_counting = false;
|
||||
m_instrs = 0.0;
|
||||
iterateAndNextConstNull(nodep->ifsp());
|
||||
iterateAndNextConstNull(nodep->thensp());
|
||||
ifInstrs = m_instrs;
|
||||
}
|
||||
}
|
||||
@@ -158,7 +158,7 @@ private:
|
||||
// Now collect the stats
|
||||
if (m_counting) {
|
||||
if (ifInstrs >= elseInstrs) {
|
||||
iterateAndNextConstNull(nodep->ifsp());
|
||||
iterateAndNextConstNull(nodep->thensp());
|
||||
} else {
|
||||
iterateAndNextConstNull(nodep->elsesp());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user