[Mlir-commits] [mlir] [MLIR][NVVM] Add prefetch Ops (PR #141737)
Durgadoss R
llvmlistbot at llvm.org
Mon Jun 2 06:08:25 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()) {
----------------
durga4github wrote:
can we catch the addr-space in an integer and then switch-over it?
It feels that may be cleaner(?)
https://github.com/llvm/llvm-project/pull/141737
More information about the Mlir-commits
mailing list