[Mlir-commits] [mlir] [AMDGPU] Add parameterization for optimized shared memory variables (PR #82508)

Mehdi Amini llvmlistbot at llvm.org
Mon Feb 26 20:39:42 PST 2024


================
@@ -273,13 +262,14 @@ struct OptimizeSharedMemoryPass
       shmAllocOps.push_back(allocOp);
     });
     for (auto allocOp : shmAllocOps) {
-      if (failed(optimizeSharedMemoryReadsAndWrites(getOperation(),
-                                                    allocOp.getMemref())))
+      if (failed(optimizeSharedMemoryReadsAndWrites(op, allocOp.getMemref(),
+                                                    kSharedMemoryLineSizeBytes,
+                                                    kDefaultVectorSizeBits)))
         return;
     }
   }
 
 private:
-  int64_t _kSharedMemoryLineSizeBytes;
-  int64_t _kDefaultVectorSizeBits;
+  int64_t kSharedMemoryLineSizeBytes;
+  int64_t kDefaultVectorSizeBits;
----------------
joker-eph wrote:

This should be defined in ODS

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


More information about the Mlir-commits mailing list