[PATCH] D61052: [compiler-rt][builtins] Implement some fetch-and-x operations for Cortex-M
Ayke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 9 04:02:58 PDT 2019
aykevl abandoned this revision.
aykevl added a comment.
Ok, based on the above comments I believe that this is a bug in LLVM and not a missing feature in compiler-rt. LLVM should generate `__atomic_*` calls instead of `__sync_` calls and it shouldn't generate those for Cortex-M3 and up when doing 32-bit atomics because it should be able to emit such instructions inline.
Unfortunately, I know very little about the backend to fix this myself.
Repository:
rCRT Compiler Runtime
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61052/new/
https://reviews.llvm.org/D61052
More information about the llvm-commits
mailing list