[Mlir-commits] [mlir] [MLIR][Linalg] Introduce linalg.contract (PR #123618)
Rolf Morel
llvmlistbot at llvm.org
Thu Jan 30 14:13:49 PST 2025
rolfmorel wrote:
I had a look and it's not clear to me what the right way to fix this should be.
Might the following work?
```
diff --git a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
index b33ba1cfb87d..db6d1d2c923b 100644
--- a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
+++ b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
@@ -3533,7 +3533,8 @@ bool MatmulOp::isValidLhsRhsBroadcastMap(AffineMap bcastMap) {
FailureOr<ArrayAttr> parseIndexingMapsAttr(OpAsmParser &parser) {
if (parser.parseOptionalKeyword("indexing_maps"))
- return {nullptr}; // Success in case indexing_maps was not provided.
+ return {
+ (ArrayAttr) nullptr}; // Success in case indexing_maps was not provided.
ArrayAttr arrayAttr;
if (parser.parseEqual() || parser.parseAttribute(arrayAttr))
```
This compiles with `clang-16` for me.
Note I will be AFK from my work machine until Saturday late. If you could try and submit a fix-up patch that would be much appreciated.
https://github.com/llvm/llvm-project/pull/123618
More information about the Mlir-commits
mailing list