Lines Matching refs:atomic
1 # atomic builtins are required for threading support.
5 # Sometimes linking against libatomic is required for atomic ops, if
12 #include <atomic>
13 std::atomic<int> x;
25 #include <atomic>
27 std::atomic<uint64_t> x (0);
44 check_library_exists(atomic __atomic_fetch_add_4 "" HAVE_LIBATOMIC)
46 list(APPEND CMAKE_REQUIRED_LIBRARIES "atomic")
49 message(FATAL_ERROR "Host compiler must support std::atomic!")
57 # Check for 64 bit atomic operations.
66 check_library_exists(atomic __atomic_load_8 "" HAVE_CXX_LIBATOMICS64)
68 list(APPEND CMAKE_REQUIRED_LIBRARIES "atomic")
71 message(FATAL_ERROR "Host compiler must support std::atomic!")
78 ## TODO: This define is only used for the legacy atomic operations in
80 ## assumes C++11 <atomic> works.
105 message(STATUS "Warning: LLVM will be built thread-unsafe because atomic builtins are missing")