Apply 'make format'

This commit is contained in:
github action 2024-06-09 02:45:26 +00:00
parent 4babba16d6
commit 962efa3691
2 changed files with 8 additions and 11 deletions

View File

@ -903,10 +903,8 @@ std::pair<uint32_t, uint32_t> AstNodeDType::dimensions(bool includeBasic) {
} }
dtypep = adtypep->subDTypep(); dtypep = adtypep->subDTypep();
continue; continue;
} else if (VN_IS(dtypep, QueueDType) } else if (VN_IS(dtypep, QueueDType) || VN_IS(dtypep, DynArrayDType)
|| VN_IS(dtypep, DynArrayDType) || VN_IS(dtypep, AssocArrayDType) || VN_IS(dtypep, WildcardArrayDType)) {
|| VN_IS(dtypep, AssocArrayDType)
|| VN_IS(dtypep, WildcardArrayDType)) {
unpacked++; unpacked++;
dtypep = dtypep->subDTypep(); dtypep = dtypep->subDTypep();
continue; continue;

View File

@ -1528,8 +1528,7 @@ class WidthVisitor final : public VNVisitor {
case VAttrType::DIM_SIZE: { case VAttrType::DIM_SIZE: {
UASSERT_OBJ(nodep->fromp() && nodep->fromp()->dtypep(), nodep, "Unsized expression"); UASSERT_OBJ(nodep->fromp() && nodep->fromp()->dtypep(), nodep, "Unsized expression");
AstNodeDType* const dtypep = nodep->fromp()->dtypep(); AstNodeDType* const dtypep = nodep->fromp()->dtypep();
if (VN_IS(dtypep, QueueDType) if (VN_IS(dtypep, QueueDType) || VN_IS(dtypep, DynArrayDType)) {
|| VN_IS(dtypep, DynArrayDType)) {
switch (nodep->attrType()) { switch (nodep->attrType()) {
case VAttrType::DIM_SIZE: { case VAttrType::DIM_SIZE: {
AstNodeExpr* const fromp = VN_AS(nodep->fromp()->unlinkFrBack(), NodeExpr); AstNodeExpr* const fromp = VN_AS(nodep->fromp()->unlinkFrBack(), NodeExpr);
@ -2157,8 +2156,8 @@ class WidthVisitor final : public VNVisitor {
nodep->dtypep(iterateEditMoveDTypep(nodep, nodep->subDTypep())); nodep->dtypep(iterateEditMoveDTypep(nodep, nodep->subDTypep()));
UASSERT_OBJ(nodep->dtypep(), nodep, "No dtype determined for var"); UASSERT_OBJ(nodep->dtypep(), nodep, "No dtype determined for var");
if (m_ftaskp && m_ftaskp->dpiImport()) { if (m_ftaskp && m_ftaskp->dpiImport()) {
AstNodeDType *dtp = nodep->dtypep(); AstNodeDType* dtp = nodep->dtypep();
AstNodeDType *np = nullptr; AstNodeDType* np = nullptr;
while (VN_IS(dtp->skipRefp(), DynArrayDType) while (VN_IS(dtp->skipRefp(), DynArrayDType)
|| VN_IS(dtp->skipRefp(), UnpackArrayDType)) { || VN_IS(dtp->skipRefp(), UnpackArrayDType)) {
if (const AstDynArrayDType* const unsizedp if (const AstDynArrayDType* const unsizedp