[Mlir-commits] [mlir] [NFC][MLIR][Linalg] Refactor linalg.matmul tablegen ODS and related C++ code. (PR #116377)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Nov 18 14:56:22 PST 2024


================
@@ -664,7 +658,15 @@ def MatmulOp : LinalgStructuredBase_Op<"matmul", [
                                 Block &block, ArrayRef<NamedAttribute> attrs);
 
       /// Returns a list of AffineMap with the typical matmul indexing charactristic.
-      SmallVector<AffineMap> getDefaultIndexingMaps();
+      static SmallVector<AffineMap> getDefaultIndexingMaps(MLIRContext *context){
----------------
MaheshRavishankar wrote:

Could you just keep the declaration here and keep the definition of this function in the cpp file?

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


More information about the Mlir-commits mailing list