mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Internals: Add referencing flags in Dfg dumps
This commit is contained in:
@@ -288,6 +288,12 @@ static void dumpDotVertex(std::ostream& os, const DfgVertex& vtx) {
|
||||
os << '\n';
|
||||
varVtxp->dtype().astDtypep()->dumpSmall(os);
|
||||
os << " / F" << varVtxp->fanout();
|
||||
// Reference flags
|
||||
os << " / ";
|
||||
static const char* const rwmn[2][2] = {{"_", "W"}, {"R", "M"}};
|
||||
os << rwmn[varVtxp->hasExtRdRefs()][varVtxp->hasExtWrRefs()];
|
||||
os << rwmn[varVtxp->hasModRdRefs()][varVtxp->hasModWrRefs()];
|
||||
os << (varVtxp->hasDfgRefs() ? "D" : "_");
|
||||
// End 'label'
|
||||
os << '"';
|
||||
// Shape
|
||||
|
||||
Reference in New Issue
Block a user