[libc-commits] [libc] [libc][CPP] correct cmpxchg failure ordering inference (PR #133127)

Schrodinger ZHU Yifan via libc-commits libc-commits at lists.llvm.org
Wed Mar 26 10:28:14 PDT 2025


================
@@ -252,6 +260,14 @@ template <typename T> struct AtomicRef {
     return static_cast<int>(mem_scope);
   }
 
+  LIBC_INLINE static constexpr int infer_failure_order(MemoryOrder mem_ord) {
----------------
SchrodingerZhu wrote:

Because we have both `Atomic` and `AtomicRef`?

https://github.com/llvm/llvm-project/pull/133127


More information about the libc-commits mailing list