Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libc / include / llvm-libc-types / once_flag.h
blob77bab28338a02c3b8230390f931881fc92a8a34b
1 //===-- Definition of once_flag type --------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef __LLVM_LIBC_TYPES_ONCE_FLAG_H__
10 #define __LLVM_LIBC_TYPES_ONCE_FLAG_H__
12 #include <llvm-libc-types/__futex_word.h>
14 #ifdef __linux__
15 typedef __futex_word once_flag;
16 #else
17 #error "Once flag type not defined for the target platform."
18 #endif
20 #endif // __LLVM_LIBC_TYPES_ONCE_FLAG_H__