[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:40:44 PST 2023
================
@@ -1762,6 +1764,15 @@ class OpAsmDialectInterface
const SetVector<AsmDialectResourceHandle> &referencedResources,
AsmResourceBuilder &builder) const {}
};
+
+//===--------------------------------------------------------------------===//
+// Custom printers and parsers.
+//===--------------------------------------------------------------------===//
+
+// Handles custom<Shape>(...) in TableGen.
+void printShape(OpAsmPrinter &printer, Operation *op, ArrayRef<int64_t> shape);
+ParseResult parseShape(OpAsmParser &parser, DenseI64ArrayAttr &shape);
+
----------------
joker-eph wrote:
Since this is calling `printer.printDimensionList()` I could see it being named `printDimensionList()` as well as a free function here?
https://github.com/llvm/llvm-project/pull/73826
More information about the Mlir-commits
mailing list