[libclc] [libclc] Move mem_fence and barrier to clc library (PR #151446)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 5 04:07:55 PDT 2025
================
@@ -0,0 +1,37 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include <clc/mem_fence/clc_mem_fence.h>
+
+void __clc_amdgcn_s_waitcnt(unsigned flags);
----------------
arsenm wrote:
We should get rid of this; it can be properly implemented with ``__builtin_amdgcn_fence``
https://github.com/llvm/llvm-project/pull/151446
More information about the cfe-commits
mailing list