[llvm] [NVPTX] Add Intrinsics for discard.* (PR #128404)

Durgadoss R via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 24 11:55:45 PST 2025


================
@@ -5043,6 +5043,15 @@ def int_nvvm_prefetch_global_L2_evict_last: Intrinsic<[], [llvm_global_ptr_ty],
 def int_nvvm_prefetchu_L1 : Intrinsic<[], [llvm_ptr_ty],
   [IntrArgMemOnly, ReadOnly<ArgIndex<0>>, NoCapture<ArgIndex<0>>]>;
 
+// Intrinsics for discard
+def int_nvvm_discard_global_L2 : DefaultAttrsIntrinsic<[], 
+    [llvm_global_ptr_ty, llvm_i64_ty], [IntrArgMemOnly, ReadOnly<ArgIndex<0>>, 
----------------
durga4github wrote:

ah, I misunderstood. Thank you for clarifying!

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


More information about the llvm-commits mailing list