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

Durgadoss R via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 21 02:15:53 PST 2025


================
@@ -789,6 +789,21 @@ def PREFETCH_GLOBAL_L2_EVICT_LAST   : NVPTXInst<(outs), (ins Int64Regs:$addr),
 
 def PREFETCHU_L1 : PREFETCH_INTRS<"prefetchu.L1">;
 
+//Applypriority intrinsics
+class APPLYPRIORITY_STRINGS<string addr> {
+  string InstName = StrJoin<".", ["applypriority", !if(!eq(addr, ""), "", addr) , "L2::evict_normal"]>.ret;
----------------
durga4github wrote:

The StrJoin can take care of empty strings.
So, simply providing addr as the second element is enough here..

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


More information about the llvm-commits mailing list