================ @@ -0,0 +1,21 @@ +//===----------------------------------------------------------------------===// +// +// 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_SEMANTIC_H__ +#define __CLC_MEM_FENCE_CLC_MEM_SEMANTIC_H__ + +// The memory or address space to which the memory ordering is applied. +typedef enum MemorySemantic { + MEMORY_PRIVATE = 1 << 0, + MEMORY_GLOBAL = 1 << 1, + MEMORY_CONSTANT = 1 << 2, + MEMORY_LOCAL = 1 << 3, + MEMORY_GENERIC = 1 << 4, +} MemorySemantic; ---------------- arsenm wrote:
Is this MemorySemantic name copied from somewhere else? I don't think the name is quite right. It's a mask of fenced address spaces? https://github.com/llvm/llvm-project/pull/152275 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits