[llvm] [NVPTX] Add prefetch tensormap variant (PR #146203)

Durgadoss R via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 1 00:54:51 PDT 2025


================
@@ -760,6 +760,11 @@ def PREFETCH_GLOBAL_L1 : PREFETCH_INTRS<"prefetch.global.L1">;
 def PREFETCH_LOCAL_L1  : PREFETCH_INTRS<"prefetch.local.L1">;
 def PREFETCH_GLOBAL_L2 : PREFETCH_INTRS<"prefetch.global.L2">;
 def PREFETCH_LOCAL_L2 : PREFETCH_INTRS<"prefetch.local.L2">;
+def PREFETCH_CONST_TENSORMAP        : PREFETCH_INTRS<"prefetch.const.tensormap">;                                   
+def PREFETCH_GENERIC_TENSORMAP      : BasicNVPTXInst<(outs), (ins ADDR:$addr),
+                                      "prefetch.tensormap",
+                                      [(int_nvvm_prefetch_generic_tensormap addr:$addr)]>,
----------------
durga4github wrote:

If we add another argument `intr_name` (with default value as empty string) to the `class` above, it seems we can make this also go through the same class.

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


More information about the llvm-commits mailing list