[all-commits] [llvm/llvm-project] 431e31: [CGAtomic] Lift stronger requirements on cmpxch an...

Bruno Cardoso Lopes via All-commits all-commits at lists.llvm.org
Tue Mar 23 16:45:58 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 431e3138a1f3fd2bb7b25e1f4766d935058136f8
      https://github.com/llvm/llvm-project/commit/431e3138a1f3fd2bb7b25e1f4766d935058136f8
  Author: Bruno Cardoso Lopes <bruno.cardoso at gmail.com>
  Date:   2021-03-23 (Tue, 23 Mar 2021)

  Changed paths:
    M clang/lib/CodeGen/CGAtomic.cpp
    M clang/test/CodeGen/atomic-ops.c
    M clang/test/CodeGenOpenCL/atomic-ops.cl
    M llvm/docs/LangRef.rst

  Log Message:
  -----------
  [CGAtomic] Lift stronger requirements on cmpxch and support acquire failure mode

- Fix `emitAtomicCmpXchgFailureSet` to support release/acquire (succ/fail) memory order.
- Remove stronger checks for cmpxch.

Effectively, this addresses http://wg21.link/p0418

Differential Revision: https://reviews.llvm.org/D98995




More information about the All-commits mailing list