[Mlir-commits] [mlir] [mlir][amdgpu] Shared memory access optimization pass (PR #75627)
Krzysztof Drewniak
llvmlistbot at llvm.org
Mon Jan 15 13:17:16 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;
----------------
krzysz00 wrote:
I'm fine with having the check for integral address spaces, if that helps
https://github.com/llvm/llvm-project/pull/75627
More information about the Mlir-commits
mailing list