aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineSink.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2024-11-20 00:35:14 +0100
committerGitHub <noreply@github.com>2024-11-20 00:35:14 +0100
commit3a63407686313f46f9abc664fd10b01f4359ee27 (patch)
treef4dcf6c2789ef40055e1fe6be124ad743de072cc /llvm/lib/CodeGen/MachineSink.cpp
parent944478dd62a78f6bb43d4da210643affcc4584b6 (diff)
downloadllvm-3a63407686313f46f9abc664fd10b01f4359ee27.zip
llvm-3a63407686313f46f9abc664fd10b01f4359ee27.tar.gz
llvm-3a63407686313f46f9abc664fd10b01f4359ee27.tar.bz2
[libc++] Make __atomic_base into an implementation detail of std::atomic (#115764)
The __atomic_base base class is only useful to conditionalize the operations we provide inside std::atomic. It shouldn't be used directly from other places in the library which can use std::atomic directly instead. Since we've granularized our includes, using std::atomic directly should not make much of a difference compile-time wise. This patch starts using std::atomic directly from other classes like std::barrier and std::latch. Changing this shouldn't be an ABI break since both classes have the same size and layout. The benefits of this patch are isolating other parts of the code base from implementation details of std::atomic and simplifying the mental model for std::atomic's layers of implementation by making it clear that __atomic_base is only an implementation detail of std::atomic.
Diffstat (limited to 'llvm/lib/CodeGen/MachineSink.cpp')
0 files changed, 0 insertions, 0 deletions