aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorAndrew Lenharth <alenhar2@cs.uiuc.edu>2008-03-05 01:15:49 +0000
committerAndrew Lenharth <alenhar2@cs.uiuc.edu>2008-03-05 01:15:49 +0000
commit8158082b53401707d47ecdb844129ebc146962a5 (patch)
tree96e6747ecbcae8168c75ea22b3d6c5b703a89844 /lib/CodeGen
parentc98645c3c1eba211e43a494f0dbd90a0ab9f2c90 (diff)
downloadexternal_llvm-8158082b53401707d47ecdb844129ebc146962a5.zip
external_llvm-8158082b53401707d47ecdb844129ebc146962a5.tar.gz
external_llvm-8158082b53401707d47ecdb844129ebc146962a5.tar.bz2
64bit CAS on 32bit x86.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47929 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 71362c5..c1bf218 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -6095,6 +6095,17 @@ void SelectionDAGLegalize::ExpandOp(SDOperand Op, SDOperand &Lo, SDOperand &Hi){
break;
}
+ case ISD::ATOMIC_LCS: {
+ SDOperand Tmp = TLI.LowerOperation(Op, DAG);
+ assert(Tmp.Val && "Node must be custom expanded!");
+ ExpandOp(Tmp.getValue(0), Lo, Hi);
+ AddLegalizedOperand(SDOperand(Node, 1), // Remember we legalized the chain.
+ LegalizeOp(Tmp.getValue(1)));
+ break;
+ }
+
+
+
// These operators cannot be expanded directly, emit them as calls to
// library functions.
case ISD::FP_TO_SINT: {