[llvm] [NVPTX] Add Intrinsics for applypriority.* (PR #127989)

Durgadoss R via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 20 03:24:53 PST 2025


================
@@ -789,6 +789,22 @@ def PREFETCH_GLOBAL_L2_EVICT_LAST   : NVPTXInst<(outs), (ins Int64Regs:$addr),
 
 def PREFETCHU_L1 : PREFETCH_INTRS<"prefetchu.L1">;
 
+//Applypriority intrinsics
+multiclass APPLYPRIORITY_L2_INTRS<string addr> {
+  defvar InstName = "applypriority."
+                    # !if(!eq(addr, ""), "", addr # ".") 
+                    # "L2::evict_normal";
+                    
----------------
durga4github wrote:

Optional:
We have StrJoin<> available now.
So, we can also do: StrJoin<".", ["applypriority", addr, "L2::evict_normal"]>.ret;

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


More information about the llvm-commits mailing list