[Mlir-commits] [mlir] [MLIR][AMDGPU] Added l2-prefetch op to AMDGPU (PR #188457)

Ravil Dorozhinskii llvmlistbot at llvm.org
Thu Mar 26 06:02:03 PDT 2026


================
@@ -1302,5 +1302,36 @@ LogicalResult DsBarrierArriveOp::verify() {
   return verifyDsBarrierOpCommon(*this);
 }
 
+//===----------------------------------------------------------------------===//
+// GlobalPrefetchOp
+//===----------------------------------------------------------------------===//
+
+LogicalResult GlobalPrefetchOp::verify() {
+  auto src = cast<MemRefType>(getSrc().getType());
+
+  const unsigned memorySpace = src.getMemorySpaceAsInt();
----------------
ravil-mobile wrote:

Done

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


More information about the Mlir-commits mailing list