[Mlir-commits] [mlir] [mlir][linalg] Generic to category specialization (PR #184624)

Andrzej WarzyƄski llvmlistbot at llvm.org
Fri Mar 6 01:02:11 PST 2026


================
@@ -200,7 +200,10 @@ static void buildMatmulOp(OpBuilder &b, OperationState &state,
       llvm::map_to_vector(indexingMaps, [](AffineMap map) -> Attribute {
         return AffineMapAttr::get(map);
       });
-  state.addAttribute("indexing_maps", b.getArrayAttr(indexingMapsAttrVal));
+  if (none_of(attributes, [](NamedAttribute attr) {
+        return attr.getName() == "indexing_maps";
+      }))
+    state.addAttribute("indexing_maps", b.getArrayAttr(indexingMapsAttrVal));
----------------
banach-space wrote:

Could you add a comment here? It's not clear _why_ this is needed.

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


More information about the Mlir-commits mailing list