[clang] [llvm] [RISCV] Add riscv_atomic.h and Zawrs/Zalrsc builtins (PR #94578)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 9 13:48:30 PDT 2024
efriedma-quic wrote:
lr/sc builtins are extremely fragile: there's no reasonable way for the compiler to guarantee that the sc is placed in such a way that it will eventually succeed. (The equivalent intrinsics do exist on ARM, but ARM has significantly stronger guarantees here. Even then, it's not completely reliable.)
https://github.com/llvm/llvm-project/pull/94578
More information about the llvm-commits
mailing list