forked from OSchip/llvm-project
Dump op location in createPrintOpGraphPass for easier debugging.
PiperOrigin-RevId: 277546527
This commit is contained in:
parent
a32f0dcb5d
commit
736ad2061c
|
@ -71,6 +71,10 @@ std::string DOTGraphTraits<mlir::Block *>::getNodeLabel(mlir::Operation *op,
|
|||
raw_string_ostream os(ostr);
|
||||
os << op->getName() << "\n";
|
||||
|
||||
if (!op->getLoc().isa<mlir::UnknownLoc>()) {
|
||||
os << op->getLoc() << "\n";
|
||||
}
|
||||
|
||||
// Print resultant types
|
||||
mlir::interleaveComma(op->getResultTypes(), os);
|
||||
os << "\n";
|
||||
|
|
Loading…
Reference in New Issue