[llvm] [NVPTX] Add asynchronous store intrinsics (PR #200768)

Durgadoss R via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 1 04:52:26 PDT 2026


================
@@ -3272,6 +3272,26 @@ let IntrProperties = [IntrArgMemOnly, IntrWriteMem, WriteOnly<ArgIndex<0>>,
       DefaultAttrsIntrinsic<[], [llvm_shared_ptr_ty, llvm_i64_ty, llvm_i64_ty]>;
 }
 
+//
+// Asynchronous store intrinsics
+//
+
+def int_nvvm_st_async_space_cluster :
+  DefaultAttrsIntrinsic<[],
+    [llvm_shared_cluster_ptr_ty, llvm_anyint_ty, llvm_shared_cluster_ptr_ty],
+    [WriteOnly<ArgIndex<0>>]>;
+
+foreach scope = ["_sys", "_gpu"] in {
+  def int_nvvm_st_async_scope # scope # _space_global :
+    DefaultAttrsIntrinsic<[],
+      [llvm_global_ptr_ty, llvm_anyint_ty],
+      [WriteOnly<ArgIndex<0>>]>;
+}
----------------
durga4github wrote:

While we are here, can we extend this with a bool arg to support the "multimem" variants as well?

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


More information about the llvm-commits mailing list