[Mlir-commits] [mlir] [mlir][linalg] Introduce transpose semantic to 'linalg.matmul' ops. (PR #104783)
    Nicolas Vasilache 
    llvmlistbot at llvm.org
       
    Tue Sep 24 07:22:48 PDT 2024
    
    
  
================
@@ -149,15 +154,30 @@ static void fillStructuredOpRegion(OpBuilder &opBuilder, Region ®ion,
   // iterator_types is an auto-generated method.
 }
 
+static void getDefaultIndexingMap(MLIRContext *context,
+                                  SmallVectorImpl<Attribute> &indexingMaps) {
+  Attribute mapAttr;
+  mapAttr = llvm::cast<AffineMapAttr>(
+      mlir::parseAttribute("affine_map<(d0, d1, d2)->(d0, d2)>", context));
----------------
nicolasvasilache wrote:
We generally avoid to put the parser on the critical path, can we use the `AffineMap::inferFromExprList`-and-friends methods instead?
https://github.com/llvm/llvm-project/pull/104783
    
    
More information about the Mlir-commits
mailing list