[libclc] [libclc] Move mem_fence and barrier to clc library (PR #151446)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 1 01:18:29 PDT 2025
================
@@ -0,0 +1,36 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef __CLC_MEM_FENCE_CLC_MEM_SCOPE_SEMANTICS_H__
+#define __CLC_MEM_FENCE_CLC_MEM_SCOPE_SEMANTICS_H__
+
+// Scope values are defined in SPIR-V spec.
+typedef enum Scope {
----------------
arsenm wrote:
Should stick to OpenCL spec and terminology; I thought clang already had predefined enums for both of these
https://github.com/llvm/llvm-project/pull/151446
More information about the cfe-commits
mailing list