[Mlir-commits] [mlir] [mlir][amdgpu] Lower amdgpu.make_dma_base (PR #169817)
Erick Ochoa Lopez
llvmlistbot at llvm.org
Tue Dec 2 11:01:14 PST 2025
================
@@ -705,6 +705,24 @@ LogicalResult TransposeLoadOp::verify() {
return success();
}
+//===----------------------------------------------------------------------===//
+// MakeDmaBaseOp
+//===----------------------------------------------------------------------===//
+
+LogicalResult MakeDmaBaseOp::verify() {
+ MemRefType ldsType = cast<MemRefType>(getLds().getType());
+ MemRefType globalType = cast<MemRefType>(getGlobal().getType());
+ if (!hasWorkgroupMemorySpace(ldsType.getMemorySpace())) {
+ return emitOpError(
+ "lds memref must have workgroup address space attribute.");
+ }
+ if (!hasGlobalMemorySpace(globalType.getMemorySpace())) {
+ return emitOpError(
+ "global memref must have global address space attribute.");
+ }
----------------
amd-eochoalo wrote:
I'll correct these in the next PR! Thanks @kuhar !
https://github.com/llvm/llvm-project/pull/169817
More information about the Mlir-commits
mailing list