mirror of
https://github.com/verilator/verilator.git
synced 2026-09-03 07:53:15 +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
@@ -306,8 +306,8 @@ private:
|
||||
for (int w = 0; w < nodep->widthWords(); ++w) {
|
||||
addWordAssign(nodep, w,
|
||||
new AstCond{fl, rhsp->condp()->cloneTree(true),
|
||||
newAstWordSelClone(rhsp->expr1p(), w),
|
||||
newAstWordSelClone(rhsp->expr2p(), w)});
|
||||
newAstWordSelClone(rhsp->thenp(), w),
|
||||
newAstWordSelClone(rhsp->elsep(), w)});
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user