Home | History | Annotate | Download | only in SelectionDAG

Lines Matching refs:getValueType

42   if (CustomLowerNode(N, N->getValueType(ResNo), true))
171 Op.getValueType(), Op, N->getOperand(1));
178 Op.getValueType(), Op, N->getOperand(1));
182 EVT ResVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
211 EVT SVT = getSetCCResultType(N->getOperand(2).getValueType());
212 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(1));
219 SDVTList VTs = DAG.getVTList(N->getValueType(0), SVT, MVT::Other);
233 DAG.getVTList(Op2.getValueType(), N->getValueType(1), MVT::Other);
246 EVT InVT = InOp.getValueType();
248 EVT OutVT = N->getValueType(0);
309 EVT OVT = N->getValueType(0);
310 EVT NVT = Op.getValueType();
322 EVT OVT = N->getValueType(0);
323 EVT NVT = Op.getValueType();
338 N->getValueType(0)), JoinIntegers(N->getOperand(0),
343 EVT VT = N->getValueType(0);
362 EVT OutVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
372 EVT OVT = N->getValueType(0);
373 EVT NVT = Op.getValueType();
385 return DAG.getNode(ISD::CTPOP, SDLoc(N), Op.getValueType(), Op);
390 EVT OVT = N->getValueType(0);
391 EVT NVT = Op.getValueType();
406 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
412 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
432 DAG.getValueType(N->getValueType(0).getScalarType()));
436 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
443 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
446 if (getTypeAction(N->getOperand(0).getValueType())
449 assert(Res.getValueType().bitsLE(NVT) && "Extension doesn't make sense!");
453 if (NVT == Res.getValueType()) {
457 DAG.getValueType(N->getOperand(0).getValueType()));
460 N->getOperand(0).getValueType().getScalarType());
472 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
486 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
500 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
502 assert(NVT == ExtSrc0.getValueType() &&
520 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(1));
521 EVT ValueVTs[] = { N->getValueType(0), NVT };
541 EVT OVT = N->getOperand(0).getValueType();
542 EVT NVT = LHS.getValueType();
552 DAG.getValueType(OVT));
554 Ofl = DAG.getSetCC(dl, N->getValueType(1), Ofl, Res, ISD::SETNE);
566 LHS.getValueType(), N->getOperand(0), LHS, RHS);
571 EVT OpTy = N->getOperand(1).getValueType();
578 LHS.getValueType(), Mask, LHS, RHS);
585 LHS.getValueType(), N->getOperand(0),
590 EVT SVT = getSetCCResultType(N->getOperand(0).getValueType());
592 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
600 assert(SVT.isVector() == N->getOperand(0).getValueType().isVector() &&
605 if (LHS.getValueType() != RHS.getValueType()) {
606 if (getTypeAction(LHS.getValueType()) == TargetLowering::TypePromoteInteger &&
607 !LHS.getValueType().isVector())
609 if (getTypeAction(RHS.getValueType()) == TargetLowering::TypePromoteInteger &&
610 !RHS.getValueType().isVector())
626 if (getTypeAction(LHS.getValueType()) == TargetLowering::TypePromoteInteger)
628 if (getTypeAction(RHS.getValueType()) == TargetLowering::TypePromoteInteger)
630 return DAG.getNode(ISD::SHL, SDLoc(N), LHS.getValueType(), LHS, RHS);
636 Op.getValueType(), Op, N->getOperand(1));
646 LHS.getValueType(), LHS, RHS);
654 LHS.getValueType(), LHS, RHS);
662 LHS.getValueType(), LHS, RHS);
669 if (getTypeAction(LHS.getValueType()) == TargetLowering::TypePromoteInteger)
671 if (getTypeAction(RHS.getValueType()) == TargetLowering::TypePromoteInteger)
673 return DAG.getNode(ISD::SRA, SDLoc(N), LHS.getValueType(), LHS, RHS);
680 if (getTypeAction(LHS.getValueType()) == TargetLowering::TypePromoteInteger)
682 if (getTypeAction(RHS.getValueType()) == TargetLowering::TypePromoteInteger)
684 return DAG.getNode(ISD::SRL, SDLoc(N), LHS.getValueType(), LHS, RHS);
688 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
693 switch (getTypeAction(InOp.getValueType())) {
703 EVT InVT = InOp.getValueType();
734 EVT OVT = N->getOperand(0).getValueType();
735 EVT NVT = LHS.getValueType();
746 Ofl = DAG.getSetCC(dl, N->getValueType(1), Ofl, Res, ISD::SETNE);
761 EVT SmallVT = LHS.getValueType();
774 SDVTList VTs = DAG.getVTList(LHS.getValueType(), N->getValueType(1));
783 SDValue Hi = DAG.getNode(ISD::SRL, DL, Mul.getValueType(), Mul,
786 Overflow = DAG.getSetCC(DL, N->getValueType(1), Hi,
787 DAG.getConstant(0, DL, Hi.getValueType()),
791 SDValue SExt = DAG.getNode(ISD::SIGN_EXTEND_INREG, DL, Mul.getValueType(),
792 Mul, DAG.getValueType(SmallVT));
793 Overflow = DAG.getSetCC(DL, N->getValueType(1), SExt, Mul, ISD::SETNE);
798 Overflow = DAG.getNode(ISD::OR, DL, N->getValueType(1), Overflow,
808 N->getValueType(0)));
814 EVT VT = N->getValueType(0);
833 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
863 if (CustomLowerNode(N, N->getOperand(OpNo).getValueType(), false))
928 assert(Res.getValueType() == N->getValueType(0) && N->getNumValues() == 1 &&
954 cast<VTSDNode>(OpL->getOperand(1))->getVT() == NewLHS.getValueType() &&
956 cast<VTSDNode>(OpR->getOperand(1))->getVT() == NewRHS.getValueType()) {
987 return DAG.getNode(ISD::ANY_EXTEND, SDLoc(N), N->getValueType(0), Op);
1000 return CreateStackStoreLoad(N->getOperand(0), N->getValueType(0));
1030 EVT OVT = N->getOperand(0).getValueType();
1033 assert(Lo.getValueType() == N->getValueType(0) && "Operand over promoted?");
1036 Hi = DAG.getNode(ISD::SHL, dl, N->getValueType(0), Hi,
1039 return DAG.getNode(ISD::OR, dl, N->getValueType(0), Lo, Hi);
1046 EVT VecVT = N->getValueType(0);
1054 assert(N->getOperand(0).getValueType().getSizeInBits() >=
1055 N->getValueType(0).getVectorElementType().getSizeInBits() &&
1072 return DAG.getConvertRndSat(N->getValueType(0), SDLoc(N), InOp,
1084 assert(N->getOperand(1).getValueType().getSizeInBits() >=
1085 N->getValueType(0).getVectorElementType().getSizeInBits() &&
1112 EVT OpTy = N->getOperand(1).getValueType();
1153 Op = DAG.getNode(ISD::ANY_EXTEND, dl, N->getValueType(0), Op);
1154 return DAG.getNode(ISD::SIGN_EXTEND_INREG, dl, Op.getValueType(),
1155 Op, DAG.getValueType(N->getOperand(0).getValueType()));
1179 EVT DataVT = DataOp.getValueType();
1207 Mask = PromoteTargetBoolean(Mask, DataOp.getValueType());
1219 EVT DataVT = N->getValueType(0);
1232 EVT DataVT = N->getValueType(0);
1244 EVT DataVT = N->getValue().getValueType();
1253 return DAG.getNode(ISD::TRUNCATE, SDLoc(N), N->getValueType(0), Op);
1264 Op = DAG.getNode(ISD::ANY_EXTEND, dl, N->getValueType(0), Op);
1266 N->getOperand(0).getValueType().getScalarType());
1284 if (CustomLowerNode(N, N->getValueType(ResNo), true))
1351 SDVTList VTs = DAG.getVTList(N->getValueType(0), MVT::Other);
1361 SDValue Success = DAG.getSetCC(SDLoc(N), N->getValueType(1), Tmp,
1427 EVT NVT = InL.getValueType();
1428 unsigned VTBits = N->getValueType(0).getSizeInBits();
1430 EVT ShTy = N->getOperand(1).getValueType();
1513 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
1514 EVT ShTy = Amt.getValueType();
1601 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
1602 EVT ShTy = Amt.getValueType();
1683 EVT NVT = LHSL.getValueType();
1760 DAG.getSetCC(dl, getSetCCResultType(LoOps[0].getValueType()),
1776 SDVTList VTList = DAG.getVTList(LHSL.getValueType(), MVT::Glue);
1802 SDVTList VTList = DAG.getVTList(LHSL.getValueType(), MVT::Glue);
1817 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
1820 if (Op.getValueType().bitsLE(NVT)) {
1827 assert(getTypeAction(Op.getValueType()) ==
1831 assert(Res.getValueType() == N->getValueType(0) &&
1842 EVT NVT = Lo.getValueType();
1849 DAG.getValueType(EVT::getIntegerVT(*DAG.getContext(),
1852 Lo = DAG.getNode(ISD::AssertSext, dl, NVT, Lo, DAG.getValueType(EVT));
1864 EVT NVT = Lo.getValueType();
1871 DAG.getValueType(EVT::getIntegerVT(*DAG.getContext(),
1874 Lo = DAG.getNode(ISD::AssertZext, dl, NVT, Lo, DAG.getValueType(EVT));
1884 Lo = DAG.getNode(ISD::BITREVERSE, dl, Lo.getValueType(), Lo);
1885 Hi = DAG.getNode(ISD::BITREVERSE, dl, Hi.getValueType(), Hi);
1892 Lo = DAG.getNode(ISD::BSWAP, dl, Lo.getValueType(), Lo);
1893 Hi = DAG.getNode(ISD::BSWAP, dl, Hi.getValueType(), Hi);
1898 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
1915 EVT NVT = Lo.getValueType();
1935 EVT NVT = Lo.getValueType();
1946 EVT NVT = Lo.getValueType();
1964 EVT VT = N->getValueType(0);
1967 if (getTypeAction(Op.getValueType()) == TargetLowering::TypePromoteFloat)
1970 RTLIB::Libcall LC = RTLIB::getFPTOSINT(Op.getValueType(), VT);
1979 EVT VT = N->getValueType(0);
1982 if (getTypeAction(Op.getValueType
1985 RTLIB::Libcall LC = RTLIB::getFPTOUINT(Op.getValueType(), VT);
2000 EVT VT = N->getValueType(0);
2027 unsigned LoSize = Lo.getValueType().getSizeInBits();
2051 Ptr = DAG.getNode(ISD::ADD, dl, Ptr.getValueType(), Ptr,
2052 DAG.getConstant(IncrementSize, dl, Ptr.getValueType()));
2078 Ptr = DAG.getNode(ISD::ADD, dl, Ptr.getValueType(), Ptr,
2079 DAG.getConstant(IncrementSize, dl, Ptr.getValueType()));
2118 Lo = DAG.getNode(N->getOpcode(), dl, LL.getValueType(), LL, RL);
2119 Hi = DAG.getNode(N->getOpcode(), dl, LL.getValueType(), LH, RH);
2124 EVT VT = N->getValueType(0);
2155 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
2172 ISD::ADD : ISD::SUB, dl, LHS.getValueType(),
2187 EVT OType = Node->getValueType(1);
2188 SDValue Zero = DAG.getConstant(0, dl, LHS.getValueType());
2207 EVT VT = N->getValueType(0);
2233 EVT VT = N->getValueType(0);
2266 EVT VT = LHSL.getValueType();
2276 if (ShiftOp.getValueType() != ShiftTy)
2333 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
2336 if (Op.getValueType().bitsLE(NVT)) {
2347 assert(getTypeAction(Op.getValueType()) ==
2351 assert(Res.getValueType() == N->getValueType(0) &&
2356 Op.getValueType().getSizeInBits() - NVT.getSizeInBits();
2357 Hi = DAG.getNode(ISD::SIGN_EXTEND_INREG, dl, Hi.getValueType(), Hi,
2358 DAG.getValueType(EVT::getIntegerVT(*DAG.getContext(),
2369 if (EVT.bitsLE(Lo.getValueType())) {
2371 Lo = DAG.getNode(ISD::SIGN_EXTEND_INREG, dl, Lo.getValueType(), Lo,
2376 Hi = DAG.getNode(ISD::SRA, dl, Hi.getValueType(), Lo,
2377 DAG.getConstant(Hi.getValueType().getSizeInBits() - 1, dl,
2383 EVT.getSizeInBits() - Lo.getValueType().getSizeInBits();
2384 Hi = DAG.getNode(ISD::SIGN_EXTEND_INREG, dl, Hi.getValueType(), Hi,
2385 DAG.getValueType(EVT::getIntegerVT(*DAG.getContext(),
2392 EVT VT = N->getValueType(0);
2418 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
2421 Hi = DAG.getNode(ISD::SRL, dl, N->getOperand(0).getValueType(),
2437 ISD::ADD : ISD::SUB, dl, LHS.getValueType(),
2443 SDValue Ofl = DAG.getSetCC(dl, N->getValueType(1), Sum, LHS,
2453 EVT VT = N->getValueType(0);
2460 SDValue MUL = DAG.getNode(ISD::MUL, dl, LHS.getValueType(), LHS, RHS);
2470 SDValue Overflow = DAG.getSetCC(dl, N->getValueType(1), DIV, LHS,
2472 Overflow = DAG.getSelect(dl, N->getValueType(1), isZero,
2473 DAG.getConstant(0, dl, N->getValueType(1)),
2502 EVT ArgVT = Op.getValueType();
2530 SDValue Ofl = DAG.getSetCC(dl, N->getValueType(1), Temp2,
2539 EVT VT = N->getValueType(0);
2565 EVT VT = N->getValueType(0);
2591 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
2594 if (Op.getValueType().bitsLE(NVT)) {
2601 assert(getTypeAction(Op.getValueType()) ==
2605 assert(Res.getValueType() == N->getValueType(0) &&
2610 Op.getValueType().getSizeInBits() - NVT.getSizeInBits();
2647 if (CustomLowerNode(N, N->getOperand(OpNo).getValueType(), false))
2691 assert(Res.getValueType() == N->getValueType(0) && N->getNumValues() == 1 &&
2714 LHSLo.getValueType(), LHSLo, LHSHi);
2721 NewLHS = DAG.getNode(ISD::XOR, dl, LHSLo.getValueType(), LHSLo, RHSLo);
2722 NewRHS = DAG.getNode(ISD::XOR, dl, LHSLo.getValueType(), LHSHi, RHSHi);
2723 NewLHS = DAG.getNode(ISD::OR, dl, NewLHS.getValueType(), NewLHS, NewRHS);
2724 NewRHS = DAG.getConstant(0, dl, NewLHS.getValueType());
2761 if (TLI.isTypeLegal(LHSLo.getValueType()) &&
2762 TLI.isTypeLegal(RHSLo.getValueType()))
2763 Tmp1 = TLI.SimplifySetCC(getSetCCResultType(LHSLo.getValueType()),
2766 Tmp1 = DAG.getSetCC(dl, getSetCCResultType(LHSLo.getValueType()),
2768 if (TLI.isTypeLegal(LHSHi.getValueType()) &&
2769 TLI.isTypeLegal(RHSHi.getValueType()))
2770 Tmp2 = TLI.SimplifySetCC(getSetCCResultType(LHSHi.getValueType()),
2774 getSetCCResultType(LHSHi.getValueType()),
2805 TLI.getTypeToExpandTo(*DAG.getContext(), LHSLo.getValueType())) ==
2825 SDVTList VTList = DAG.getVTList(LHSLo.getValueType(), MVT::Glue);
2828 DAG.getNode(ISD::SETCCE, dl, getSetCCResultType(LHSLo.getValueType()),
2835 NewLHS = TLI.SimplifySetCC(getSetCCResultType(LHSHi.getValueType()),
2839 NewLHS = DAG.getSetCC(dl, getSetCCResultType(LHSHi.getValueType()),
2841 NewLHS = DAG.getSelect(dl, Tmp1.getValueType(),
2854 NewRHS = DAG.getConstant(0, SDLoc(N), NewLHS.getValueType());
2872 NewRHS = DAG.getConstant(0, SDLoc(N), NewLHS.getValueType());
2889 assert(NewLHS.getValueType() == N->getValueType(0) &&
2911 SDVTList VTList = DAG.getVTList(LHSLo.getValueType(), MVT::Glue);
2913 return DAG.getNode(ISD::SETCCE, dl, N->getValueType(0), LHSHi, RHSHi,
2937 EVT DstVT = N->getValueType(0);
2938 RTLIB::Libcall LC = RTLIB::getSINTTOFP(Op.getValueType(), DstVT);
2951 EVT VT = N->getOperand(1).getValueType();
2984 Ptr = DAG.getNode(ISD::ADD, dl, Ptr.getValueType(), Ptr,
2985 DAG.getConstant(IncrementSize, dl, Ptr.getValueType()));
3021 Ptr = DAG.getNode(ISD::ADD, dl, Ptr.getValueType(), Ptr,
3022 DAG.getConstant(IncrementSize, dl, Ptr.getValueType()));
3036 return DAG.getNode(ISD::TRUNCATE, SDLoc(N), N->getValueType(0), InL);
3041 EVT SrcVT = Op.getValueType();
3042 EVT DstVT = N->getValueType(0);
3077 getSetCCResultType(Hi.getValueType()),
3079 DAG.getConstant(0, dl, Hi.getValueType()),
3092 SDValue Offset = DAG.getSelect(dl, Zero.getValueType(), SignSet,
3095 FudgePtr = DAG.getNode(ISD::ADD, dl, FudgePtr.getValueType(),
3130 EVT InVT = InOp0.getValueType();
3132 EVT OutVT = N->getValueType(0);
3146 SDValue Index = DAG.getNode(ISD::ADD, dl, BaseIdx.getValueType(),
3147 BaseIdx, DAG.getConstant(i, dl, BaseIdx.getValueType()));
3162 EVT VT = N->getValueType(0);
3169 EVT OutVT = V0.getValueType();
3176 EVT OutVT = N->getValueType(0);
3192 if (N->getOperand(i).getValueType().bitsLT(NOutVTElem))
3206 assert(!N->getOperand(0).getValueType().isVector() &&
3209 EVT OutVT = N->getValueType(0);
3222 EVT OutVT = N->getValueType(0);
3229 unsigned NumElem = N->getOperand(0).getValueType().getVectorNumElements();
3251 EVT OutVT = N->getValueType(0);
3272 V0->getValueType(0).getScalarType(), V0, V1);
3277 return DAG.getAnyExtOrTrunc(Ext, dl, N->getValueType(0));
3283 MVT InVT = V0.getValueType().getSimpleVT();
3285 N->getValueType(0).getVectorNumElements());
3287 return DAG.getNode(ISD::TRUNCATE, dl, N->getValueType(0), Ext);
3294 EVT RetSclrTy = N->getValueType(0).getVectorElementType();
3302 EVT SclrTy = Incoming->getValueType(0).getVectorElementType();
3303 unsigned NumElem = Incoming->getValueType(0).getVectorNumElements();
3315 return DAG.getNode(ISD::BUILD_VECTOR, dl, N->getValueType(0), NewOps);