[flang-commits] [flang] [flang][cuda] Add interface and lowering for fence_proxy_async (PR #163014)
Valentin Clement バレンタイン クレメン via flang-commits
flang-commits at lists.llvm.org
Sat Oct 11 12:27:05 PDT 2025
================
@@ -420,11 +420,19 @@ end subroutine
! CHECK: %[[SHARED_PTR:.*]] = llvm.addrspacecast %[[LLVM_PTR]] : !llvm.ptr to !llvm.ptr<3>
! CHECK: nvvm.mbarrier.arrive.expect_tx %[[SHARED_PTR]], %{{.*}} : !llvm.ptr<3>, i32
+
+attributes(global) subroutine test_fence()
+ call fence_proxy_async()
+end subroutine
+
+! CHECK-LABEL: func.func @_QPtest_fence()
+! CHECK: nvvm.fence.proxy {kind = #nvvm.proxy_kind<async.shared>, space = #nvvm.shared_space<cta>}
+
attributes(global) subroutine test_tma()
call tma_bulk_commit_group()
call tma_bulk_wait_group()
end subroutine
! CHECK-LABEL: func.func @_QPtest_tma()
! CHECK: nvvm.cp.async.bulk.commit.group
-! CHECK: nvvm.cp.async.bulk.wait_group 0
+! CHECK: nvvm.cp.async.bulk.wait_group 0
----------------
clementval wrote:
```suggestion
! CHECK: nvvm.cp.async.bulk.wait_group 0
```
https://github.com/llvm/llvm-project/pull/163014
More information about the flang-commits
mailing list