Files
TheRock/compiler/amd-llvm/libcxx/include/__cxx03/stdatomic.h
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

137 lines
6.0 KiB
C++

// -*- C++ -*-
//===----------------------------------------------------------------------===//
//
// 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 _LIBCPP___CXX03_STDATOMIC_H
#define _LIBCPP___CXX03_STDATOMIC_H
/*
stdatomic.h synopsis
template<class T>
using std-atomic = std::atomic<T>; // exposition only
#define _Atomic(T) std-atomic<T>
#define ATOMIC_BOOL_LOCK_FREE see below
#define ATOMIC_CHAR_LOCK_FREE see below
#define ATOMIC_CHAR16_T_LOCK_FREE see below
#define ATOMIC_CHAR32_T_LOCK_FREE see below
#define ATOMIC_WCHAR_T_LOCK_FREE see below
#define ATOMIC_SHORT_LOCK_FREE see below
#define ATOMIC_INT_LOCK_FREE see below
#define ATOMIC_LONG_LOCK_FREE see below
#define ATOMIC_LLONG_LOCK_FREE see below
#define ATOMIC_POINTER_LOCK_FREE see below
using std::memory_order // see below
using std::memory_order_relaxed // see below
using std::memory_order_consume // see below
using std::memory_order_acquire // see below
using std::memory_order_release // see below
using std::memory_order_acq_rel // see below
using std::memory_order_seq_cst // see below
using std::atomic_flag // see below
using std::atomic_bool // see below
using std::atomic_char // see below
using std::atomic_schar // see below
using std::atomic_uchar // see below
using std::atomic_short // see below
using std::atomic_ushort // see below
using std::atomic_int // see below
using std::atomic_uint // see below
using std::atomic_long // see below
using std::atomic_ulong // see below
using std::atomic_llong // see below
using std::atomic_ullong // see below
using std::atomic_char8_t // see below
using std::atomic_char16_t // see below
using std::atomic_char32_t // see below
using std::atomic_wchar_t // see below
using std::atomic_int8_t // see below
using std::atomic_uint8_t // see below
using std::atomic_int16_t // see below
using std::atomic_uint16_t // see below
using std::atomic_int32_t // see below
using std::atomic_uint32_t // see below
using std::atomic_int64_t // see below
using std::atomic_uint64_t // see below
using std::atomic_int_least8_t // see below
using std::atomic_uint_least8_t // see below
using std::atomic_int_least16_t // see below
using std::atomic_uint_least16_t // see below
using std::atomic_int_least32_t // see below
using std::atomic_uint_least32_t // see below
using std::atomic_int_least64_t // see below
using std::atomic_uint_least64_t // see below
using std::atomic_int_fast8_t // see below
using std::atomic_uint_fast8_t // see below
using std::atomic_int_fast16_t // see below
using std::atomic_uint_fast16_t // see below
using std::atomic_int_fast32_t // see below
using std::atomic_uint_fast32_t // see below
using std::atomic_int_fast64_t // see below
using std::atomic_uint_fast64_t // see below
using std::atomic_intptr_t // see below
using std::atomic_uintptr_t // see below
using std::atomic_size_t // see below
using std::atomic_ptrdiff_t // see below
using std::atomic_intmax_t // see below
using std::atomic_uintmax_t // see below
using std::atomic_is_lock_free // see below
using std::atomic_load // see below
using std::atomic_load_explicit // see below
using std::atomic_store // see below
using std::atomic_store_explicit // see below
using std::atomic_exchange // see below
using std::atomic_exchange_explicit // see below
using std::atomic_compare_exchange_strong // see below
using std::atomic_compare_exchange_strong_explicit // see below
using std::atomic_compare_exchange_weak // see below
using std::atomic_compare_exchange_weak_explicit // see below
using std::atomic_fetch_add // see below
using std::atomic_fetch_add_explicit // see below
using std::atomic_fetch_sub // see below
using std::atomic_fetch_sub_explicit // see below
using std::atomic_fetch_or // see below
using std::atomic_fetch_or_explicit // see below
using std::atomic_fetch_and // see below
using std::atomic_fetch_and_explicit // see below
using std::atomic_flag_test_and_set // see below
using std::atomic_flag_test_and_set_explicit // see below
using std::atomic_flag_clear // see below
using std::atomic_flag_clear_explicit // see below
using std::atomic_thread_fence // see below
using std::atomic_signal_fence // see below
*/
#include <__cxx03/__config>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
# pragma GCC system_header
#endif
#if defined(_LIBCPP_COMPILER_CLANG_BASED)
// Before C++23, we include the next <stdatomic.h> on the path to avoid hijacking
// the header. We do this because Clang has historically shipped a <stdatomic.h>
// header that would be available in all Standard modes, and we don't want to
// break that use case.
# if __has_include_next(<stdatomic.h>)
# include_next <stdatomic.h>
# endif
#endif // defined(_LIBCPP_COMPILER_CLANG_BASED)
#endif // _LIBCPP___CXX03_STDATOMIC_H