Skip to content

Commit f453664

Browse files
committed
refine
1 parent 53fa94d commit f453664

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

llvm/lib/Target/NVPTX/NVPTXIntrinsics.td

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -790,14 +790,10 @@ def PREFETCH_GLOBAL_L2_EVICT_LAST : NVPTXInst<(outs), (ins Int64Regs:$addr),
790790
def PREFETCHU_L1 : PREFETCH_INTRS<"prefetchu.L1">;
791791

792792
//Applypriority intrinsics
793-
class APPLYPRIORITY_STRINGS<string addr> {
794-
string InstName = StrJoin<".", ["applypriority", !if(!eq(addr, ""), "", addr) , "L2::evict_normal"]>.ret;
795-
string IntrName = StrJoin<"_", ["int_nvvm_applypriority", !if(!eq(addr, ""), "", addr) , "L2_evict_normal"]>.ret;
796-
}
797793
class APPLYPRIORITY_L2_INTRS<string addr> :
798794
NVPTXInst<(outs), (ins Int64Regs:$addr, Int64Regs:$size),
799-
APPLYPRIORITY_STRINGS<addr>.InstName # " [$addr], $size;",
800-
[(!cast<Intrinsic>(APPLYPRIORITY_STRINGS<addr>.IntrName)
795+
StrJoin<".", ["applypriority", addr , "L2::evict_normal"]>.ret # " [$addr], $size;",
796+
[(!cast<Intrinsic>(StrJoin<"_", ["int_nvvm_applypriority", addr , "L2_evict_normal"]>.ret)
801797
i64:$addr, i64:$size)]>,
802798
Requires<[hasPTX<74>, hasSM<80>]>;
803799

0 commit comments

Comments
 (0)