Some of the cmake checks are obsolete and make bootstrapping an LLVM build painful: we only need to check for libatomic which we can do in pure C, no need for C++ <atomic>. That leads us to Atomic.h which we can get rid of.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 35856 Build 35855: arc lint + arc unit
Event Timeline
Comment Actions
This looks like a good simplification, but I think call_once could be simplified more.
llvm/cmake/modules/CheckAtomic.cmake | ||
---|---|---|
46 | Indentation? | |
75 | Does anything else set LLVM_HAS_ATOMICS? | |
llvm/include/llvm/Support/Threading.h | ||
111 | Not sure we still need the tsan hooks when using std::atomic. | |
118 | Do we actually need thread fences here? |
Indentation?