[llvm] [mlir] [MLIR][LLVM][Intrinsics] Add new MLIR and LLVM APIs to automatically resolve overload types (PR #168188)
Durgadoss R via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 17 02:18:08 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);
----------------
durga4github wrote:
A general +1 from me for this enhancement. This can simplify (i.e. remove the if-checks) on a number of NVVM Ops.
https://github.com/llvm/llvm-project/pull/168188
More information about the llvm-commits
mailing list