[Mlir-commits] [mlir] [AMDGPU] Add parameterization for optimized shared memory variables (PR #82508)
Mehdi Amini
llvmlistbot at llvm.org
Tue Feb 27 17:18:07 PST 2024
================
@@ -37,10 +37,17 @@ def OptimizeSharedMemory : Pass<"amdgpu-optimize-shared-memory"> {
attempts to optimize reads/writes from a memref representing GPU shared
memory in order to avoid bank conflicts.
}];
-
let dependentDialects = [
"memref::MemRefDialect", "vector::VectorDialect"
];
+ let options = [
+ Option<"sharedMemoryLineSizeBytes", "shared-memory-line-size-bytes", "uint64_t",
+ /*default=*/"128",
+ "Shared memory line size in bytes">,
+ Option<"defaultVectorSizeBits", "default-vector-size-bits", "uint64_t",
----------------
joker-eph wrote:
Default to `int64_t` please :)
https://github.com/llvm/llvm-project/pull/82508
More information about the Mlir-commits
mailing list