SDAG: Merge the meat of two ExpandAtomic implementations.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 5 Mar 2015 20:04:29 +0000 (20:04 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 5 Mar 2015 20:04:29 +0000 (20:04 +0000)
commitf74b5c6198a59e74dd88900503c771c142d1c6cf
treeeba48acc52868280e0895fa6d1bc0fad5617fa18
parent77f46f4f9f141d0826a4e878aed2ceba2555f597
SDAG: Merge the meat of two ExpandAtomic implementations.

The copies already diverged, don't let them become any worse. Reduce
redundancy in code with a little macro metaprogramming.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231401 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/RuntimeLibcalls.h
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
lib/CodeGen/TargetLoweringBase.cpp