efriedma added a comment.

ldr+op+swp still isn't atomic.  For each point in the code, please try the 
exercise of "what if my code is interrupted here"?

The only way to use swp to implement general atomic operations is to use a 
separate spinlock.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116088/new/

https://reviews.llvm.org/D116088

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to