Atomics: promote ARM's IR-based atomics pass to CodeGen.
authorTim Northover <tnorthover@apple.com>
Thu, 17 Apr 2014 18:22:47 +0000 (18:22 +0000)
committerTim Northover <tnorthover@apple.com>
Thu, 17 Apr 2014 18:22:47 +0000 (18:22 +0000)
commit09da6b55409ec4fbf69fedff8f74552bbad69469
treef4dd845a05fc4bf376b95a28fcba0546568f839f
parentdd0f0d6a9dd46d83ecb81dc57adf94f8f7bb67b6
Atomics: promote ARM's IR-based atomics pass to CodeGen.

Still only 32-bit ARM using it at this stage, but the promotion allows
direct testing via opt and is a reasonably self-contained patch on the
way to switching ARM64.

At this point, other targets should be able to make use of it without
too much difficulty if they want. (See ARM64 commit coming soon for an
example).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206485 91177308-0d34-0410-b5e6-96231b3b80d8
16 files changed:
include/llvm/CodeGen/Passes.h
include/llvm/InitializePasses.h
include/llvm/Target/TargetLowering.h
lib/CodeGen/AtomicExpandLoadLinkedPass.cpp [new file with mode: 0644]
lib/CodeGen/CMakeLists.txt
lib/CodeGen/CodeGen.cpp
lib/Target/ARM/ARM.h
lib/Target/ARM/ARMAtomicExpandPass.cpp [deleted file]
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/ARM/ARMISelLowering.h
lib/Target/ARM/ARMTargetMachine.cpp
lib/Target/ARM/CMakeLists.txt
test/Transforms/AtomicExpandLoadLinked/ARM/atomic-expansion-v7.ll [new file with mode: 0644]
test/Transforms/AtomicExpandLoadLinked/ARM/atomic-expansion-v8.ll [new file with mode: 0644]
test/Transforms/AtomicExpandLoadLinked/ARM/lit.local.cfg [new file with mode: 0644]
tools/opt/opt.cpp