summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-04 23:48:25 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-04 23:48:25 +0000
commitcce90f55ed5bc6414850e9085ab47382892577b9 (patch)
treea26b06293f5540d0d471174b989858fbcd47a1be /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parent9797fee9a17c5dee3bede95bd16427301764ab4c (diff)
downloadbcm5719-llvm-cce90f55ed5bc6414850e9085ab47382892577b9.tar.gz
bcm5719-llvm-cce90f55ed5bc6414850e9085ab47382892577b9.zip
Implement the llvm.bit.part_select.iN.iN.iN overloaded intrinsic.
llvm-svn: 35678
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-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 8e0660478e0..1bd2aae715e 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -2438,6 +2438,11 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
DAG.setRoot(Tmp.getValue(1));
return 0;
}
+ case Intrinsic::bit_part_select: {
+ MVT::ValueType Ty = getValue(I.getOperand(1)).getValueType();
+ setValue(&I, DAG.getTargetConstant(0, Ty));
+ return 0;
+ }
case Intrinsic::bswap:
setValue(&I, DAG.getNode(ISD::BSWAP,
getValue(I.getOperand(1)).getValueType(),
OpenPOWER on IntegriCloud