summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-13 02:24:42 +0000
committerChris Lattner <sabre@nondot.org>2006-01-13 02:24:42 +0000
commit6c9c250dcd2eaf9fa01be0886f1921feb28d4d35 (patch)
tree36e2a28fad404ceb649b78f15cfe25fc9a2a2f74 /llvm/lib/CodeGen/SelectionDAG
parent3b2b0aff0cb06eb622182968d33946818c4a1b09 (diff)
downloadbcm5719-llvm-6c9c250dcd2eaf9fa01be0886f1921feb28d4d35.tar.gz
bcm5719-llvm-6c9c250dcd2eaf9fa01be0886f1921feb28d4d35.zip
Add "support" for stacksave/stackrestore to the dag isel
llvm-svn: 25268
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index d423ddd1cab..4c594bf1faf 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -1004,6 +1004,11 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
getValue(I.getOperand(1)).getValueType(),
getValue(I.getOperand(1))));
return 0;
+ case Intrinsic::stacksave:
+ setValue(&I, DAG.getNode(ISD::UNDEF, TLI.getValueType(I.getType())));
+ return 0; // FIXME: discard stacksave/restore
+ case Intrinsic::stackrestore:
+ return 0; // FIXME: discard stacksave/restore
case Intrinsic::prefetch:
// FIXME: Currently discarding prefetches.
return 0;
OpenPOWER on IntegriCloud