[Mlir-commits] [mlir] [mlir][mesh] Use tensor shape notation for the shape of a cluster (PR #73826)
Mehdi Amini
llvmlistbot at llvm.org
Mon Dec 4 22:39:09 PST 2023
================
@@ -3911,3 +3930,39 @@ void Block::printAsOperand(raw_ostream &os, AsmState &state) {
OperationPrinter printer(os, state.getImpl());
printer.printBlockName(this);
}
+
+//===--------------------------------------------------------------------===//
+// Custom printers and parsers.
+//===--------------------------------------------------------------------===//
+namespace mlir {
+
+void printShape(OpAsmPrinter &printer, Operation *op, ArrayRef<int64_t> shape) {
+ if (!shape.empty())
+ printer << "[";
----------------
joker-eph wrote:
I'm confused: this does not show up in the test output, what do I miss here?
https://github.com/llvm/llvm-project/pull/73826
More information about the Mlir-commits
mailing list