@@ -248,12 +248,12 @@ class PrintOpPass : public impl::ViewOpGraphBase<PrintOpPass> {
248
248
os << " v" << n1.id ;
249
249
if (!port.empty ())
250
250
// Attach edge to south compass point of the result
251
- os << " :" << port << " :s" ;
251
+ os << " :res " << port << " :s" ;
252
252
os << " -> " ;
253
253
os << " v" << n2.id ;
254
254
if (!port.empty ())
255
255
// Attach edge to north compass point of the operand
256
- os << " :" << port << " :n" ;
256
+ os << " :arg " << port << " :n" ;
257
257
emitAttrList (os, attrs);
258
258
}));
259
259
}
@@ -330,7 +330,7 @@ class PrintOpPass : public impl::ViewOpGraphBase<PrintOpPass> {
330
330
if (op->getNumOperands () > 0 ) {
331
331
os << " {" ;
332
332
auto operandToPort = [&](Value operand) {
333
- os << " <" << getValuePortName (operand) << " > " ;
333
+ os << " <arg " << getValuePortName (operand) << " > " ;
334
334
emitMlirOperand (os, operand);
335
335
};
336
336
interleave (op->getOperands (), os, operandToPort, " |" );
@@ -353,7 +353,7 @@ class PrintOpPass : public impl::ViewOpGraphBase<PrintOpPass> {
353
353
if (op->getNumResults () > 0 ) {
354
354
os << " |{" ;
355
355
auto resultToPort = [&](Value result) {
356
- os << " <" << getValuePortName (result) << " > " ;
356
+ os << " <res " << getValuePortName (result) << " > " ;
357
357
emitMlirOperand (os, result);
358
358
if (printResultTypes) {
359
359
os << " " ;
@@ -371,7 +371,7 @@ class PrintOpPass : public impl::ViewOpGraphBase<PrintOpPass> {
371
371
// / Generate a label for a block argument.
372
372
std::string getLabel (BlockArgument arg) {
373
373
return strFromOs ([&](raw_ostream &os) {
374
- os << " <" << getValuePortName (arg) << " > " ;
374
+ os << " <res " << getValuePortName (arg) << " > " ;
375
375
arg.printAsOperand (os, OpPrintingFlags ());
376
376
if (printResultTypes) {
377
377
os << " " ;
0 commit comments