llvm-project/llvm/include
Chandler Carruth 7ae684a8b4 Switch statistics to use relaxed updates to a std::atomic.
This removes usage of the hacky, incorrect, and TSan-unfriendly
home-grown atomics. It should actually be more efficient in some cases.

Based on our existing usage of <atomic>, all of this is portably
available AFAICT. One small challenge is initializing the stastic, but
I've tried a comparable sample out on MSVC (the most likely to complain
here) and it seems to work. Will have to watch the build bots of course.

llvm-svn: 271504
2016-06-02 08:44:05 +00:00
..
llvm Switch statistics to use relaxed updates to a std::atomic. 2016-06-02 08:44:05 +00:00
llvm-c Extract renaming from D19181 2016-05-23 16:38:25 +00:00