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

Srinivasa Ravi llvmlistbot at llvm.org
Sun Jun 1 22:47:58 PDT 2025


================
@@ -1712,6 +1726,46 @@ NVVM::IDArgPair DotAccumulate4WayOp::getIntrinsicIDAndArgs(
   return {ids[type], args};
 }
 
+llvm::Intrinsic::ID PrefetchL1Op::getIntrinsicID(Operation &op) {
+  auto curOp = llvm::cast<NVVM::PrefetchL1Op>(op);
+  switch (llvm::cast<LLVM::LLVMPointerType>(curOp.getAddr().getType())
+              .getAddressSpace()) {
+  case 0:
----------------
Wolfram70 wrote:

Added `kGenericMemorySpace` to the enum in the latest revision, thanks!

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


More information about the Mlir-commits mailing list