[PATCH] [C++11] Replace LLVM atomics with std::atomic.
Benjamin Kramer
benny.kra at gmail.com
Sun Mar 2 07:55:11 PST 2014
Hi chandlerc,
With C++11 we finally have a standardized way to specify atomic operations. Use
them to replace the existing custom implemention. Sadly the translation is not
entirely trivial as std::atomic allows more fine-grained control over the
atomicity. I tried to preserve the old semantics as well as possible.
http://llvm-reviews.chandlerc.com/D2915
Files:
include/llvm/ADT/Statistic.h
include/llvm/PassSupport.h
include/llvm/Support/ManagedStatic.h
lib/IR/Attributes.cpp
lib/IR/DiagnosticInfo.cpp
lib/Support/ManagedStatic.cpp
lib/Support/Statistic.cpp
lib/Support/Threading.cpp
lib/Support/Timer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2915.1.patch
Type: text/x-patch
Size: 10068 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140302/7caf25b5/attachment.bin>
More information about the llvm-commits
mailing list