Internals: Remove dead code, fix or sign off coverage

Remove/fix/signoff uncontroversial code coverage holes. Also added a
couple TODOs that should be investigated at some point
This commit is contained in:
Geza Lore
2025-10-08 08:24:06 +01:00
parent 1a8f9f0483
commit 838b8a2bec
47 changed files with 267 additions and 731 deletions
+4 -4
View File
@@ -170,7 +170,7 @@ class AstToDfgConverter final : public VNVisitor {
} else if (newp->is<DfgVarArray>()) {
newp->srcp(make<DfgSpliceArray>(newp->fileline(), newp->dtype()));
} else {
nodep->v3fatalSrc("Unhandled DfgVertexVar sub-type"); // LCOV_EXCL_LINE
nodep->v3fatalSrc("Unhandled DfgVertexVar sub-type");
}
// Use new temporary
@@ -245,7 +245,7 @@ class AstToDfgConverter final : public VNVisitor {
DfgSpliceArray* const newp = make<DfgSpliceArray>(flp, dtype);
splicep->addDriver(newp, index, flp);
} else {
nodep->v3fatalSrc("Unhandled data type kind"); // LCOV_EXCL_LINE
nodep->v3fatalSrc("Unhandled data type kind");
}
}
@@ -345,7 +345,7 @@ class AstToDfgConverter final : public VNVisitor {
sap->addDriver(item.m_rhsp, item.m_idx, flp);
}
} else {
item.m_lhsp->v3fatalSrc("Unhandled DfgVertexSplice sub-type"); // LCOV_EXCL_LINE
item.m_lhsp->v3fatalSrc("Unhandled DfgVertexSplice sub-type");
}
}
@@ -894,7 +894,7 @@ class AstToDfgSynthesize final {
} else if (var.is<DfgVarArray>()) {
splicep = make<DfgSpliceArray>(var.fileline(), var.dtype());
} else {
var.v3fatalSrc("Unhandled DfgVertexVar sub-type"); // LCOV_EXCL_LINE
var.v3fatalSrc("Unhandled DfgVertexVar sub-type");
}
for (const Driver& d : newDrivers) splicep->addDriver(d.m_vtxp, d.m_lo, d.m_flp);
return splicep;