[llvm] [mlir] [MLIR][LLVM][Intrinsics] Add new MLIR and LLVM APIs to automatically resolve overload types (PR #168188)

Guray Ozen via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 18 04:03:01 PST 2025


================
@@ -3176,12 +3176,7 @@ def NVVM_PrefetchOp : NVVM_Op<"prefetch",
   let llvmBuilder = [{
     auto [id, args] = NVVM::PrefetchOp::getIntrinsicIDAndArgs(op,
                                           moduleTranslation, builder);
-
-    if(op.getTensormap())
-      // Overloaded intrinsic
-      createIntrinsicCall(builder, id, args, {args[0]->getType()});
-    else
-      createIntrinsicCall(builder, id, args);
+    createIntrinsicCall(builder, id, builder.getVoidTy(), args);
----------------
grypp wrote:

+1 from me as well for any simplification. I am wondering are there any other OPs we can leverage? Is it only nvvm.prefetch?

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


More information about the llvm-commits mailing list