Changeset View
Changeset View
Standalone View
Standalone View
mlir/lib/Transforms/ViewOpGraph.cpp
Show First 20 Lines • Show All 215 Lines • ▼ Show 20 Lines | return strFromOs([&](raw_ostream &os) { | ||||
os << truncateString(ss.str()) << ")"; | os << truncateString(ss.str()) << ")"; | ||||
os << ")"; | os << ")"; | ||||
} | } | ||||
// Print attributes. | // Print attributes. | ||||
if (printAttrs) { | if (printAttrs) { | ||||
os << "\n"; | os << "\n"; | ||||
for (const NamedAttribute &attr : op->getAttrs()) { | for (const NamedAttribute &attr : op->getAttrs()) { | ||||
os << '\n' << attr.first << ": "; | os << '\n' << attr.first.getValue() << ": "; | ||||
emitMlirAttr(os, attr.second); | emitMlirAttr(os, attr.second); | ||||
} | } | ||||
} | } | ||||
}); | }); | ||||
} | } | ||||
/// Generate a label for a block argument. | /// Generate a label for a block argument. | ||||
std::string getLabel(BlockArgument arg) { | std::string getLabel(BlockArgument arg) { | ||||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |