mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-23 14:23:41 +00:00
parent
e9effd58d2
commit
8bdc019730
5 changed files with 86 additions and 54 deletions
|
@ -199,7 +199,7 @@ bool AstNode::get_bool_attribute(RTLIL::IdString id)
|
|||
|
||||
// create new node (AstNode constructor)
|
||||
// (the optional child arguments make it easier to create AST trees)
|
||||
AstNode::AstNode(AstNodeType type, AstNode *child1, AstNode *child2, AstNode *child3)
|
||||
AstNode::AstNode(AstNodeType type, AstNode *child1, AstNode *child2, AstNode *child3, AstNode *child4)
|
||||
{
|
||||
static unsigned int hashidx_count = 123456789;
|
||||
hashidx_count = mkhash_xorshift(hashidx_count);
|
||||
|
@ -236,6 +236,8 @@ AstNode::AstNode(AstNodeType type, AstNode *child1, AstNode *child2, AstNode *ch
|
|||
children.push_back(child2);
|
||||
if (child3)
|
||||
children.push_back(child3);
|
||||
if (child4)
|
||||
children.push_back(child4);
|
||||
}
|
||||
|
||||
// create a (deep recursive) copy of a node
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue