[llvm-branch-commits] [libclc] libclc: Move sub_group_barrier to clc (PR #185208)
Wenju He via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat Mar 7 16:04:23 PST 2026
================
@@ -0,0 +1,14 @@
+//===----------------------------------------------------------------------===//
+//
+// 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/synchronization/clc_sub_group_barrier.h"
+
+_CLC_DEF _CLC_OVERLOAD void
+__clc_sub_group_barrier(__CLC_MemorySemantics memory_semantics) {
+ __clc_sub_group_barrier(memory_semantics, __MEMORY_SCOPE_WRKGRP);
----------------
wenju-he wrote:
should __MEMORY_SCOPE_WRKGRP be changed to __MEMORY_SCOPE_WVFRNT?
According the spec: `For the sub_group_barrier variant that does not take a memory scope, the scope is memory_scope_sub_group.`
https://github.com/llvm/llvm-project/pull/185208
More information about the llvm-branch-commits
mailing list