mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 10:33:13 +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
@@ -921,7 +921,7 @@ private:
|
||||
if (m_dedupable) {
|
||||
if (!m_always) {
|
||||
m_always = true;
|
||||
iterateAndNextNull(alwaysp->bodysp());
|
||||
iterateAndNextNull(alwaysp->stmtsp());
|
||||
} else {
|
||||
m_dedupable = false;
|
||||
}
|
||||
@@ -936,7 +936,7 @@ private:
|
||||
if (m_always && !m_ifCondp && !ifp->elsesp()) {
|
||||
// we're under an always, this is the first IF, and there's no else
|
||||
m_ifCondp = ifp->condp();
|
||||
iterateAndNextNull(ifp->ifsp());
|
||||
iterateAndNextNull(ifp->thensp());
|
||||
} else {
|
||||
m_dedupable = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user