[Mlir-commits] [mlir] [mlir][amdgpu] Shared memory access optimization pass (PR #75627)

Krzysztof Drewniak llvmlistbot at llvm.org
Wed Jan 10 08:41:54 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:

Yeah, but roundtripping/backcompat/...

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


More information about the Mlir-commits mailing list