[Mlir-commits] [mlir] [MLIR][NVVM] Add prefetch Ops (PR #141737)
Durgadoss R
llvmlistbot at llvm.org
Fri May 30 05:00:12 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:
----------------
durga4github wrote:
Let us add an entry for `Generic` to that enum above and use it here (instead of 0)
https://github.com/llvm/llvm-project/pull/141737
More information about the Mlir-commits
mailing list