Skip to content

Commit

Permalink
[luci/part] Revise dump for better info. (Samsung#8010)
Browse files Browse the repository at this point in the history
This will revise partition related structure dump for better understanding.

ONE-DCO-1.0-Signed-off-by: SaeHie Park <[email protected]>
  • Loading branch information
seanshpark authored Nov 16, 2021
1 parent 02c756f commit 6eb1c01
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions compiler/luci/partition/src/PartitionIRDump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@ void dump(std::ostream &os, const PNode *pnode)
void dump(std::ostream &os, const PGroup *pgroup)
{
os << "--- PGroup: " << pgroup->group << std::endl;
os << "Input(s): ";
os << "Input(s): [ ";
for (auto &node_in : pgroup->inputs)
os << node_in->name() << " ";
os << std::endl;
os << "]" << std::endl;
for (auto &pnode : pgroup->pnodes)
{
dump(os, pnode.get());
}
os << "Output(s): ";
os << "Output(s): [ ";
for (auto &node_out : pgroup->outputs)
os << node_out->name() << " ";
os << std::endl;
os << "]" << std::endl;
}

void dump(std::ostream &os, const PGroups *pgroups)
Expand All @@ -57,7 +57,8 @@ void dump(std::ostream &os, const PGroups *pgroups)
{
auto node = it->first;
auto group = it->second;
os << " Node: " << node << "(" << node->name() << "): " << group << std::endl;
os << " Node: " << node << "(" << luci::opcode_name(node) << "," << node->name()
<< "): " << group << std::endl;
}
}

Expand Down

0 comments on commit 6eb1c01

Please sign in to comment.