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

via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 24 11:10:31 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>>, 
----------------
gonzalobg wrote:

Yes, per https://github.com/llvm/llvm-project/pull/128404#discussion_r1966764987 the intrinsic should be modeled as a "write".

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


More information about the llvm-commits mailing list