Home
last modified time | relevance | path

Searched refs:InOp (Results 1 – 13 of 13) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DLegalizeVectorTypes.cpp224 SDValue InOp = N->getOperand(0); in ScalarizeVecRes_SCALAR_TO_VECTOR() local
225 if (InOp.getValueType() != EltVT) in ScalarizeVecRes_SCALAR_TO_VECTOR()
226 return DAG.getNode(ISD::TRUNCATE, N->getDebugLoc(), EltVT, InOp); in ScalarizeVecRes_SCALAR_TO_VECTOR()
227 return InOp; in ScalarizeVecRes_SCALAR_TO_VECTOR()
522 SDValue InOp = N->getOperand(0); in SplitVecRes_BITCAST() local
523 EVT InVT = InOp.getValueType(); in SplitVecRes_BITCAST()
539 GetExpandedOp(InOp, Lo, Hi); in SplitVecRes_BITCAST()
550 GetSplitVector(InOp, Lo, Hi); in SplitVecRes_BITCAST()
562 SplitInteger(BitConvertToInteger(InOp), LoIntVT, HiIntVT, Lo, Hi); in SplitVecRes_BITCAST()
790 SDValue InOp = GetPromotedInteger(N->getOperand(0)); in SplitVecRes_UnaryOp() local
[all …]
DLegalizeTypesGeneric.cpp43 SDValue InOp = N->getOperand(0); in ExpandRes_BITCAST() local
44 EVT InVT = InOp.getValueType(); in ExpandRes_BITCAST()
56 SplitInteger(GetSoftenedFloat(InOp), Lo, Hi); in ExpandRes_BITCAST()
63 GetExpandedOp(InOp, Lo, Hi); in ExpandRes_BITCAST()
68 GetSplitVector(InOp, Lo, Hi); in ExpandRes_BITCAST()
76 SplitInteger(BitConvertToInteger(GetScalarizedVector(InOp)), Lo, Hi); in ExpandRes_BITCAST()
82 InOp = GetWidenedVector(InOp); in ExpandRes_BITCAST()
85 Lo = DAG.getNode(ISD::EXTRACT_SUBVECTOR, dl, InNVT, InOp, in ExpandRes_BITCAST()
87 Hi = DAG.getNode(ISD::EXTRACT_SUBVECTOR, dl, InNVT, InOp, in ExpandRes_BITCAST()
103 SDValue CastInOp = DAG.getNode(ISD::BITCAST, dl, NVT, InOp); in ExpandRes_BITCAST()
[all …]
DLegalizeIntegerTypes.cpp206 SDValue InOp = N->getOperand(0); in PromoteIntRes_BITCAST() local
207 EVT InVT = InOp.getValueType(); in PromoteIntRes_BITCAST()
222 return DAG.getNode(ISD::BITCAST, dl, NOutVT, GetPromotedInteger(InOp)); in PromoteIntRes_BITCAST()
226 return DAG.getNode(ISD::ANY_EXTEND, dl, NOutVT, GetSoftenedFloat(InOp)); in PromoteIntRes_BITCAST()
234 BitConvertToInteger(GetScalarizedVector(InOp))); in PromoteIntRes_BITCAST()
247 InOp = DAG.getNode(ISD::ANY_EXTEND, dl, in PromoteIntRes_BITCAST()
251 return DAG.getNode(ISD::BITCAST, dl, NOutVT, InOp); in PromoteIntRes_BITCAST()
256 return DAG.getNode(ISD::BITCAST, dl, OutVT, GetWidenedVector(InOp)); in PromoteIntRes_BITCAST()
260 CreateStackStoreLoad(InOp, OutVT)); in PromoteIntRes_BITCAST()
567 SDValue InOp = N->getOperand(0); in PromoteIntRes_TRUNCATE() local
[all …]
DTargetLowering.cpp1439 SDValue InOp = Op.getOperand(0); in SimplifyDemandedBits() local
1448 if (InOp.getOpcode() == ISD::SRL && in SimplifyDemandedBits()
1449 isa<ConstantSDNode>(InOp.getOperand(1))) { in SimplifyDemandedBits()
1451 unsigned C1= cast<ConstantSDNode>(InOp.getOperand(1))->getZExtValue(); in SimplifyDemandedBits()
1463 InOp.getOperand(0), NewSA)); in SimplifyDemandedBits()
1467 if (SimplifyDemandedBits(InOp, NewMask.lshr(ShAmt), in SimplifyDemandedBits()
1473 if (InOp.getNode()->getOpcode() == ISD::ANY_EXTEND) { in SimplifyDemandedBits()
1474 SDValue InnerOp = InOp.getNode()->getOperand(0); in SimplifyDemandedBits()
1504 SDValue InOp = Op.getOperand(0); in SimplifyDemandedBits() local
1513 if (InOp.getOpcode() == ISD::SHL && in SimplifyDemandedBits()
[all …]
DLegalizeTypes.h673 SDValue ModifyToType(SDValue InOp, EVT WidenVT);
DDAGCombiner.cpp6831 SDValue InOp = InVec.getOperand(0); in visitEXTRACT_VECTOR_ELT() local
6833 if (InOp.getValueType() != NVT) { in visitEXTRACT_VECTOR_ELT()
6834 assert(InOp.getValueType().isInteger() && NVT.isInteger()); in visitEXTRACT_VECTOR_ELT()
6835 return DAG.getSExtOrTrunc(InOp, InVec.getDebugLoc(), NVT); in visitEXTRACT_VECTOR_ELT()
6837 return InOp; in visitEXTRACT_VECTOR_ELT()
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeVectorTypes.cpp174 SDValue InOp = N->getOperand(0); in ScalarizeVecRes_BUILD_VECTOR() local
178 return DAG.getNode(ISD::TRUNCATE, SDLoc(N), EltVT, InOp); in ScalarizeVecRes_BUILD_VECTOR()
179 return InOp; in ScalarizeVecRes_BUILD_VECTOR()
280 SDValue InOp = N->getOperand(0); in ScalarizeVecRes_SCALAR_TO_VECTOR() local
281 if (InOp.getValueType() != EltVT) in ScalarizeVecRes_SCALAR_TO_VECTOR()
282 return DAG.getNode(ISD::TRUNCATE, SDLoc(N), EltVT, InOp); in ScalarizeVecRes_SCALAR_TO_VECTOR()
283 return InOp; in ScalarizeVecRes_SCALAR_TO_VECTOR()
746 SDValue InOp = N->getOperand(0); in SplitVecRes_BITCAST() local
747 EVT InVT = InOp.getValueType(); in SplitVecRes_BITCAST()
764 GetExpandedOp(InOp, Lo, Hi); in SplitVecRes_BITCAST()
[all …]
DLegalizeTypesGeneric.cpp44 SDValue InOp = N->getOperand(0); in ExpandRes_BITCAST() local
45 EVT InVT = InOp.getValueType(); in ExpandRes_BITCAST()
59 auto SoftenedOp = GetSoftenedFloat(InOp); in ExpandRes_BITCAST()
60 if (SoftenedOp == InOp) in ExpandRes_BITCAST()
71 GetExpandedOp(InOp, Lo, Hi); in ExpandRes_BITCAST()
80 GetSplitVector(InOp, Lo, Hi); in ExpandRes_BITCAST()
88 SplitInteger(BitConvertToInteger(GetScalarizedVector(InOp)), Lo, Hi); in ExpandRes_BITCAST()
94 InOp = GetWidenedVector(InOp); in ExpandRes_BITCAST()
97 std::tie(Lo, Hi) = DAG.SplitVector(InOp, dl, LoVT, HiVT); in ExpandRes_BITCAST()
125 SDValue CastInOp = DAG.getNode(ISD::BITCAST, dl, NVT, InOp); in ExpandRes_BITCAST()
[all …]
DTargetLowering.cpp662 SDValue InOp = Op.getOperand(0); in SimplifyDemandedBits() local
671 if (InOp.getOpcode() == ISD::SRL && in SimplifyDemandedBits()
672 isa<ConstantSDNode>(InOp.getOperand(1))) { in SimplifyDemandedBits()
674 unsigned C1= cast<ConstantSDNode>(InOp.getOperand(1))->getZExtValue(); in SimplifyDemandedBits()
686 InOp.getOperand(0), NewSA)); in SimplifyDemandedBits()
690 if (SimplifyDemandedBits(InOp, NewMask.lshr(ShAmt), in SimplifyDemandedBits()
696 if (InOp.getNode()->getOpcode() == ISD::ANY_EXTEND) { in SimplifyDemandedBits()
697 SDValue InnerOp = InOp.getNode()->getOperand(0); in SimplifyDemandedBits()
718 if (InOp.hasOneUse() && in SimplifyDemandedBits()
751 SDValue InOp = Op.getOperand(0); in SimplifyDemandedBits() local
[all …]
DLegalizeIntegerTypes.cpp250 SDValue InOp = N->getOperand(0); in PromoteIntRes_BITCAST() local
251 EVT InVT = InOp.getValueType(); in PromoteIntRes_BITCAST()
263 return DAG.getNode(ISD::BITCAST, dl, NOutVT, GetPromotedInteger(InOp)); in PromoteIntRes_BITCAST()
267 return DAG.getNode(ISD::ANY_EXTEND, dl, NOutVT, GetSoftenedFloat(InOp)); in PromoteIntRes_BITCAST()
270 SDValue PromotedOp = GetPromotedFloat(InOp); in PromoteIntRes_BITCAST()
281 BitConvertToInteger(GetScalarizedVector(InOp))); in PromoteIntRes_BITCAST()
294 InOp = DAG.getNode(ISD::ANY_EXTEND, dl, in PromoteIntRes_BITCAST()
298 return DAG.getNode(ISD::BITCAST, dl, NOutVT, InOp); in PromoteIntRes_BITCAST()
305 return DAG.getNode(ISD::BITCAST, dl, NOutVT, GetWidenedVector(InOp)); in PromoteIntRes_BITCAST()
309 CreateStackStoreLoad(InOp, OutVT)); in PromoteIntRes_BITCAST()
[all …]
DLegalizeTypes.h787 SDValue ModifyToType(SDValue InOp, EVT NVT, bool FillWithZeroes = false);
DDAGCombiner.cpp12344 SDValue InOp = InVec.getOperand(0); in visitEXTRACT_VECTOR_ELT() local
12345 if (InOp.getValueType() != NVT) { in visitEXTRACT_VECTOR_ELT()
12346 assert(InOp.getValueType().isInteger() && NVT.isInteger()); in visitEXTRACT_VECTOR_ELT()
12347 return DAG.getSExtOrTrunc(InOp, SDLoc(InVec), NVT); in visitEXTRACT_VECTOR_ELT()
12349 return InOp; in visitEXTRACT_VECTOR_ELT()
12416 SDValue InOp = SVInVec.getOperand(OrigElt); in visitEXTRACT_VECTOR_ELT() local
12417 if (InOp.getValueType() != NVT) { in visitEXTRACT_VECTOR_ELT()
12418 assert(InOp.getValueType().isInteger() && NVT.isInteger()); in visitEXTRACT_VECTOR_ELT()
12419 InOp = DAG.getSExtOrTrunc(InOp, SDLoc(SVInVec), NVT); in visitEXTRACT_VECTOR_ELT()
12422 return InOp; in visitEXTRACT_VECTOR_ELT()
/external/llvm/lib/Target/X86/
DX86ISelLowering.cpp21345 static SDValue ExtendToType(SDValue InOp, MVT NVT, SelectionDAG &DAG, in ExtendToType() argument
21348 MVT InVT = InOp.getSimpleValueType(); in ExtendToType()
21350 return InOp; in ExtendToType()
21352 if (InOp.isUndef()) in ExtendToType()
21365 SDLoc dl(InOp); in ExtendToType()
21366 if (InOp.getOpcode() == ISD::CONCAT_VECTORS && in ExtendToType()
21367 InOp.getNumOperands() == 2) { in ExtendToType()
21368 SDValue N1 = InOp.getOperand(1); in ExtendToType()
21371 InOp = InOp.getOperand(0); in ExtendToType()
21372 InVT = InOp.getSimpleValueType(); in ExtendToType()
[all …]