IMPORTANT: Major internal changes for supporting complex data types.

Adds dtype() to every node, keep global table of dtypes and remove duplicates.
Final merge from dtype branch.
This commit is contained in:
Wilson Snyder
2012-04-29 10:14:13 -04:00
parent c0da16bfcd
commit 87e8736823
34 changed files with 1049 additions and 400 deletions
+4 -3
View File
@@ -220,10 +220,11 @@ private:
V3Number zeronum (nodep->fileline(), nodep->width(), 0);
constzerop = new AstConst(nodep->fileline(), zeronum);
}
constzerop->widthFrom (nodep); // unsigned
V3Number widthnum (nodep->fileline(), nodep->rhsp()->widthMin(), nodep->width()-1);
constzerop->dtypeFrom (nodep); // unsigned
V3Number widthnum (nodep->fileline(), nodep->rhsp()->widthMin(), m1value);
AstNode* constwidthp = new AstConst(nodep->fileline(), widthnum);
constwidthp->widthFrom (nodep->rhsp()); // unsigned
constwidthp->dtypeFrom (nodep->rhsp()); // unsigned
AstCond* newp =
new AstCond (nodep->fileline(),
new AstLte (nodep->fileline(),