We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da400cc commit 4648803Copy full SHA for 4648803
mlir/lib/Transforms/ViewOpGraph.cpp
@@ -355,7 +355,14 @@ class PrintOpPass : public impl::ViewOpGraphBase<PrintOpPass> {
355
356
/// Generate a label for a block argument.
357
std::string getLabel(BlockArgument arg) {
358
- return "arg" + std::to_string(arg.getArgNumber());
+ return strFromOs([&](raw_ostream &os) {
359
+ os << "<" << getValuePortName(arg) << "> ";
360
+ arg.printAsOperand(os, OpPrintingFlags());
361
+ if (printResultTypes)
362
+ os << " "
363
+ << truncateString(escapeLabelString(
364
+ strFromOs([&](raw_ostream &os) { os << arg.getType(); })));
365
+ });
366
}
367
368
/// Process a block. Emit a cluster and one node per block argument and
0 commit comments