[Mlir-commits] [mlir] [MLIR][NVVM] Add prefetch Ops (PR #141737)
Durgadoss R
llvmlistbot at llvm.org
Wed Jun 4 03:14:54 PDT 2025
================
@@ -1205,6 +1205,40 @@ LogicalResult NVVM::VoteSyncOp::verify() {
return success();
}
+LogicalResult NVVM::PrefetchOp::verify() {
+ unsigned addressSpace =
+ llvm::cast<LLVM::LLVMPointerType>(getAddr().getType()).getAddressSpace();
+ auto evictPriority = getEvictPriority();
+
+ if (getUniform()) {
+ if (!(getCacheLevel() == NVVM::PrefetchCacheLevel::L1)) {
----------------
durga4github wrote:
nit: can we not do level != L1 ?
https://github.com/llvm/llvm-project/pull/141737
More information about the Mlir-commits
mailing list