We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6969901 + 08873be commit ba807a1Copy full SHA for ba807a1
llvm/include/llvm/Support/Atomic.h
@@ -17,6 +17,7 @@
17
#ifndef LLVM_SUPPORT_ATOMIC_H
18
#define LLVM_SUPPORT_ATOMIC_H
19
20
+#include "llvm/Support/Compiler.h"
21
#include "llvm/Support/DataTypes.h"
22
23
// Windows will at times define MemoryFence.
@@ -26,16 +27,15 @@
26
27
28
namespace llvm {
29
namespace sys {
- void MemoryFence();
30
+ LLVM_ABI void MemoryFence();
31
32
#ifdef _MSC_VER
- typedef long cas_flag;
33
+ typedef long cas_flag;
34
#else
- typedef uint32_t cas_flag;
35
+ typedef uint32_t cas_flag;
36
#endif
- cas_flag CompareAndSwap(volatile cas_flag* ptr,
37
- cas_flag new_value,
38
- cas_flag old_value);
+ LLVM_ABI cas_flag CompareAndSwap(volatile cas_flag *ptr, cas_flag new_value,
+ cas_flag old_value);
39
}
40
41
0 commit comments