[Mlir-commits] [mlir] [NFC][MLIR][Linalg] Refactor linalg.matmul tablegen ODS and related C++ code. (PR #116377)
Md Asghar Ahmad Shahid
llvmlistbot at llvm.org
Mon Nov 18 03:51:26 PST 2024
================
@@ -3578,7 +3561,9 @@ ParseResult MatmulOp::parse(OpAsmParser &parser, OperationState &result) {
}
// Initialize indexingMaps, if not supplied explicitly.
if (indexingMapsAttr.empty()) {
- indexingMapsAttr = getDefaultMatmulIndexingMapAttr(result.getContext());
+ indexingMapsAttr = llvm::map_to_vector(
+ MatmulOp::getDefaultIndexingMaps(parser.getContext()),
+ [](AffineMap map) -> Attribute { return AffineMapAttr::get(map); });
}
----------------
shahidact wrote:
This is because user may choose not to explicitly provide the indexing map as it is optional. In this case compiler has to consider the default map and update `indexing_mps `attribute accordingly.
https://github.com/llvm/llvm-project/pull/116377
More information about the Mlir-commits
mailing list