[Mlir-commits] [mlir] [mlir][amdgpu] Shared memory access optimization pass (PR #75627)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Jan 15 09:14:53 PST 2024
================
@@ -43,6 +43,21 @@ void AMDGPUDialect::initialize() {
>();
}
+bool amdgpu::AMDGPUDialect::isSharedMemoryAddressSpace(Attribute memorySpace) {
+ if (!memorySpace)
+ return false;
+ if (auto intAttr = llvm::dyn_cast<IntegerAttr>(memorySpace))
+ return intAttr.getInt() == AMDGPUDialect::kSharedMemoryAddressSpace;
----------------
erman-gurses wrote:
Please let me know when you can get back on this.
https://github.com/llvm/llvm-project/pull/75627
More information about the Mlir-commits
mailing list