[Mlir-commits] [mlir] [mlir][mesh] Use tensor shape notation for the shape of a cluster (PR #73826)

Mehdi Amini llvmlistbot at llvm.org
Fri Dec 1 22:31:10 PST 2023


================
@@ -1099,6 +1101,9 @@ namespace mlir {
 AffineMap makeStridedLinearLayoutMap(ArrayRef<int64_t> strides, int64_t offset,
                                      MLIRContext *context);
 
+void printShape(OpAsmPrinter &printer, Operation *op, ArrayRef<int64_t> shape);
+ParseResult parseShape(OpAsmParser &parser, DenseI64ArrayAttr &shape);
----------------
joker-eph wrote:

Similarly, this could belong to the parser, if we write it as:

```ParseResult parseShape(SmallVectorImpl<int64_t> &dims)```

https://github.com/llvm/llvm-project/pull/73826


More information about the Mlir-commits mailing list