[Mlir-commits] [mlir] [MLIR][AMDGPU] Added l2-prefetch op to AMDGPU (PR #188457)
Krzysztof Drewniak
llvmlistbot at llvm.org
Thu Mar 26 11:48:34 PDT 2026
================
@@ -1302,5 +1302,38 @@ LogicalResult DsBarrierArriveOp::verify() {
return verifyDsBarrierOpCommon(*this);
}
+//===----------------------------------------------------------------------===//
+// GlobalPrefetchOp
+//===----------------------------------------------------------------------===//
+
+LogicalResult GlobalPrefetchOp::verify() {
+ auto src = cast<MemRefType>(getSrc().getType());
+
+ Attribute memSpace = src.getMemorySpace();
+ if (!memSpace)
+ return this->emitOpError("the source must have address space attribute");
+ if (!hasGlobalMemorySpace(memSpace))
+ return this->emitOpError("the source must reside in global address space");
+
+ ArrayRef<int64_t> srcShape = src.getShape();
+ const size_t numIndices = getIndices().size();
+ if (srcShape.size() != numIndices)
+ return this->emitOpError(
+ "the number of indices must match the source shape size");
+
+ const TemporalHint temporalHint = getTemporalHint();
+ const bool isSpeculative = getSpeculative();
+ if (temporalHint == TemporalHint::NT)
----------------
krzysz00 wrote:
??? Why don't we support this mode?
https://github.com/llvm/llvm-project/pull/188457
More information about the Mlir-commits
mailing list