[Mlir-commits] [mlir] [MLIR][NVVM] Add prefetch Ops (PR #141737)

Durgadoss R llvmlistbot at llvm.org
Thu May 29 05:45:48 PDT 2025


================
@@ -1205,6 +1205,15 @@ LogicalResult NVVM::VoteSyncOp::verify() {
   return success();
 }
 
+LogicalResult NVVM::PrefetchL2Op::verify() {
+  if (getEvictionPriority() &&
+      (llvm::cast<LLVM::LLVMPointerType>(getPtr().getType())
+           .getAddressSpace() != 1))
----------------
durga4github wrote:

I think we have an `enum` to represent the address spaces. Can we use that name instead of `1` here?

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


More information about the Mlir-commits mailing list