]> granicus.if.org Git - clang/commit
ARM: use LLVM's atomicrmw instructions when ldrex/strex are available.
authorTim Northover <tnorthover@apple.com>
Wed, 9 Jul 2014 09:24:43 +0000 (09:24 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 9 Jul 2014 09:24:43 +0000 (09:24 +0000)
commite25cedce46ef7521f6dd62c437d5798631aed617
treee6861ce668e640229c40a508fed11118825b10b2
parentbdfb53808762019d0f56302ec24a033d4982f7ce
ARM: use LLVM's atomicrmw instructions when ldrex/strex are available.

Having some kind of weird kernel-assisted ABI for these when the
native instructions are available appears to be (and should be) the
exception; OSs have been gradually opting in for years and the code
was getting silly.

So let LLVM decide whether it's possible/profitable to inline them by
default.

Patch by Phoebe Buckheister.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212598 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
test/CodeGen/arm-atomics-m.c [new file with mode: 0644]
test/CodeGen/arm-atomics-m0.c [new file with mode: 0644]
test/CodeGen/arm-atomics.c [new file with mode: 0644]