Home | History | Annotate | Download | only in SelectionDAG

Lines Matching refs:getValueType

257   EVT VT = CFP->getValueType(0);
301 EVT VT = CP->getValueType(0);
321 EVT VT = Val.getValueType();
375 StackPtr = DAG.getNode(ISD::ADD, dl, StackPtr.getValueType(), StackPtr,
377 Ptr = DAG.getNode(ISD::ADD, dl, Ptr.getValueType(), Ptr, Increment);
413 DAG.getConstant(NumBits, dl, TLI.getShiftAmountTy(Val.getValueType(),
425 Ptr = DAG.getNode(ISD::ADD, dl, Ptr.getValueType(), Ptr,
448 EVT VT = LD->getValueType(0);
498 Ptr = DAG.getNode(ISD::ADD, dl, Ptr.getValueType(), Ptr, Increment);
499 StackPtr = DAG.getNode(ISD::ADD, dl, StackPtr.getValueType(), StackPtr,
558 Ptr = DAG.getNode(ISD::ADD, dl, Ptr.getValueType(), Ptr,
559 DAG.getConstant(IncrementSize, dl, Ptr.getValueType()));
570 Ptr = DAG.getNode(ISD::ADD, dl, Ptr.getValueType(), Ptr,
571 DAG.getConstant(IncrementSize, dl, Ptr.getValueType()));
581 DAG.getConstant(NumBits, dl, TLI.getShiftAmountTy(Hi.getValueType(),
610 EVT VT = Tmp1.getValueType();
612 EVT IdxVT = Tmp3.getValueType();
647 EVT EltVT = Vec.getValueType().getVectorElementType();
648 if (Val.getValueType() == EltVT ||
649 (EltVT.isInteger() && Val.getValueType().bitsGE(EltVT))) {
651 Vec.getValueType(), Val);
653 unsigned NumElts = Vec.getValueType().getVectorNumElements();
661 return DAG.getVectorShuffle(Vec.getValueType(), dl, Vec, ScVec,
684 if (CFP->getValueType(0) == MVT::f32 &&
693 if (CFP->getValueType(0) == MVT::f64) {
714 Ptr = DAG.getNode(ISD::ADD, dl, Ptr.getValueType(), Ptr,
715 DAG.getConstant(4, dl, Ptr.getValueType()));
824 Ptr = DAG.getNode(ISD::ADD, dl, Ptr.getValueType(), Ptr,
826 Ptr.getValueType()));
828 ISD::SRL, dl, Value.getValueType(), Value,
830 TLI.getShiftAmountTy(Value.getValueType(), DL)));
840 ISD::SRL, dl, Value.getValueType(), Value,
842 TLI.getShiftAmountTy(Value.getValueType(), DL)));
849 Ptr = DAG.getNode(ISD::ADD, dl, Ptr.getValueType(), Ptr,
851 Ptr.getValueType()));
862 switch (TLI.getTruncStoreAction(ST->getValue().getValueType(), StVT)) {
973 TLI.getLoadExtAction(ExtType, Node->getValueType(0), MVT::i1) ==
988 DAG.getExtLoad(NewExtType, dl, Node->getValueType(0),
998 Result.getValueType(),
999 Result, DAG.getValueType(SrcVT));
1000 else if (ExtType == ISD::ZEXTLOAD || NVT == Result.getValueType())
1003 Result.getValueType(), Result,
1004 DAG.getValueType(SrcVT));
1026 Lo = DAG.getExtLoad(ISD::ZEXTLOAD, dl, Node->getValueType(0),
1033 Ptr = DAG.getNode(ISD::ADD, dl, Ptr.getValueType(), Ptr,
1035 Ptr.getValueType()));
1036 Hi = DAG.getExtLoad(ExtType, dl, Node->getValueType(0), Chain, Ptr,
1048 ISD::SHL, dl, Hi.getValueType(), Hi,
1050 TLI.getShiftAmountTy(Hi.getValueType(), DL)));
1053 Value = DAG.getNode(ISD::OR, dl, Node->getValueType(0), Lo, Hi);
1058 Hi = DAG.getExtLoad(ExtType, dl, Node->getValueType(0), Chain, Ptr,
1064 Ptr = DAG.getNode(ISD::ADD, dl, Ptr.getValueType(), Ptr,
1066 Ptr.getValueType()));
1068 dl, Node->getValueType(0), Chain, Ptr,
1080 ISD::SHL, dl, Hi.getValueType(), Hi,
1082 TLI.getShiftAmountTy(Hi.getValueType(), DL)));
1085 Value = DAG.getNode(ISD::OR, dl, Node->getValueType(0), Lo, Hi);
1091 switch (TLI.getLoadExtAction(ExtType, Node->getValueType(0),
1120 EVT DestVT = Node->getValueType(0);
1136 Value = DAG.getNode(ExtendOp, dl, Node->getValueType(0), Load);
1171 Node->getValueType(0),
1177 Result.getValueType(),
1178 Result, DAG.getValueType(SrcVT));
1210 assert((TLI.getTypeAction(*DAG.getContext(), Node->getValueType(i)) ==
1212 TLI.isTypeLegal(Node->getValueType(i))) &&
1216 assert((TLI.getTypeAction(*DAG.getContext(), Op.getValueType()) ==
1218 TLI.isTypeLegal(Op.getValueType()) ||
1235 Node->getValueType(0));
1239 Node->getValueType(0));
1248 Node->getOperand(0).getValueType());
1258 Node->getOperand(2).getValueType());
1275 Node->getValueType(0));
1305 Action = TLI.getOperationAction(Node->getOpcode(), Node->getValueType(0));
1315 Action = TLI.getOperationAction(Node->getOpcode(), Node->getValueType(0));
1332 Action = TLI.getOperationAction(Node->getOpcode(), Node->getValueType(0));
1348 Action = TLI.getOperationAction(Node->getOpcode(), Node->getValueType(0));
1364 if (!Node->getOperand(1).getValueType().isVector()) {
1366 DAG.getShiftAmountOperand(Node->getOperand(0).getValueType(),
1379 if (!Node->getOperand(2).getValueType().isVector()) {
1381 DAG.getShiftAmountOperand(Node->getOperand(0).getValueType(),
1499 StackPtr = DAG.CreateStackTemporary(Vec.getValueType());
1506 Vec.getValueType().getVectorElementType().getSizeInBits()/8;
1507 Idx = DAG.getNode(ISD::MUL, dl, Idx.getValueType(), Idx,
1508 DAG.getConstant(EltSize, SDLoc(Vec), Idx.getValueType()));
1511 StackPtr = DAG.getNode(ISD::ADD, dl, Idx.getValueType(), Idx, StackPtr);
1515 if (Op.getValueType().isVector())
1516 NewLoad = DAG.getLoad(Op.getValueType(), dl, Ch, StackPtr,
1520 ISD::EXTLOAD, dl, Op.getValueType(), Ch, StackPtr, MachinePointerInfo(),
1521 Vec.getValueType().getVectorElementType(), false, false, false, 0);
1537 assert(Op.getValueType().isVector() && "Non-vector insert subvector!");
1546 SDValue StackPtr = DAG.CreateStackTemporary(Vec.getValueType());
1559 Vec.getValueType().getVectorElementType().getSizeInBits()/8;
1561 Idx = DAG.getNode(ISD::MUL, dl, Idx.getValueType(), Idx,
1562 DAG.getConstant(EltSize, SDLoc(Vec), Idx.getValueType()));
1565 SDValue SubStackPtr = DAG.getNode(ISD::ADD, dl, Idx.getValueType(), Idx,
1573 return DAG.getLoad(Op.getValueType(), dl, Ch, StackPtr, PtrInfo,
1582 EVT VT = Node->getValueType(0);
1600 SDValue Idx = DAG.getConstant(Offset, dl, FIPtr.getValueType());
1601 Idx = DAG.getNode(ISD::ADD, dl, FIPtr.getValueType(), FIPtr, Idx);
1605 if (EltVT.bitsLT(Node->getOperand(i).getValueType().getScalarType())) {
1648 EVT FloatVT = Value.getValueType();
1681 IntPtr = DAG.getNode(ISD::ADD, DL, StackPtr.getValueType(), StackPtr,
1682 DAG.getConstant(ByteOffset, DL, StackPtr.getValueType()));
1718 EVT IntVT = SignAsInt.IntValue.getValueType();
1724 EVT FloatVT = Mag.getValueType();
1751 EVT FloatVT = Value.getValueType();
1760 EVT IntVT = ValueAsInt.IntValue.getValueType();
1773 EVT VT = Node->getValueType(0);
1927 SrcOp.getValueType().getTypeForEVT(*DAG.getContext()));
1935 unsigned SrcSize = SrcOp.getValueType().getSizeInBits();
1968 SDValue StackPtr = DAG.CreateStackTemporary(Node->getValueType(0));
1976 Node->getValueType(0).getVectorElementType(), false, false, 0);
1978 Node->getValueType(0), dl, Ch, StackPtr,
1988 EVT VT = Node->getValueType(0);
2083 EVT VT = Node->getValueType(0);
2084 EVT OpVT = Node->getOperand(0).getValueType();
2168 if (TLI.isShuffleMaskLegal(ShuffleVec, Node->getValueType(0))) {
2200 EVT ArgVT = Op.getValueType();
2211 Type *RetTy = Node->getValueType(0).getTypeForEVT(*DAG.getContext());
2251 Entry.Ty = Entry.Node.getValueType().getTypeForEVT(*DAG.getContext());
2282 EVT ArgVT = Node->getOperand(i).getValueType();
2293 Type *RetTy = Node->getValueType(0).getTypeForEVT(*DAG.getContext());
2363 EVT RetVT = Node->getValueType(0);
2369 EVT ArgVT = Op.getValueType();
2469 EVT RetVT = Node->getValueType(0);
2525 if (Op0.getValueType() == MVT::i32 && TLI.isTypeLegal(MVT::f64)) {
2533 StackSlot.getValueType());
2536 SDValue Lo = DAG.getNode(ISD::ADD, dl, StackSlot.getValueType(),
2592 if (Op0.getValueType() == MVT::i64 && DestVT == MVT::f64) {
2615 if (Op0.getValueType() == MVT::i64 && DestVT == MVT::f32) {
2622 1, dl, TLI.getShiftAmountTy(Op0.getValueType(), DAG.getDataLayout()));
2657 EVT SHVT = TLI.getShiftAmountTy(Sel2.getValueType(), DAG.getDataLayout());
2676 SDValue SignSet = DAG.getSetCC(dl, getSetCCResultType(Op0.getValueType()),
2678 DAG.getConstant(0, dl, Op0.getValueType()),
2682 SDValue CstOffset = DAG.getSelect(dl, Zero.getValueType(),
2704 CPIdx = DAG.getNode(ISD::ADD, dl, CPIdx.getValueType(), CPIdx, CstOffset);
2735 EVT NewInTy = LegalOp.getValueType();
2813 EVT VT = Op.getValueType();
2838 EVT VT = Op.getValueType();
2895 EVT VT = Op.getValueType();
2942 return DAG.getNode(ISD::CTLZ, dl, Op.getValueType(), Op);
2953 EVT VT = Op.getValueType();
2966 return DAG.getNode(ISD::CTTZ, dl, Op.getValueType(), Op);
2972 EVT VT = Op.getValueType();
3011 Results.push_back(DAG.getConstant(0, dl, Node->getValueType(0)));
3014 Results.push_back(DAG.getConstant(1, dl, Node->getValueType(0)));
3029 DAG.getConstant(0, dl, Node->getValueType(0)));
3040 SDValue Zero = DAG.getConstant(0, dl, Node->getValueType(0));
3041 SDVTList VTs = DAG.getVTList(Node->getValueType(0), MVT::Other);
3069 SDVTList VTs = DAG.getVTList(Node->getValueType(0), MVT::Other);
3078 SDValue Success = DAG.getSetCC(SDLoc(Node), Node->getValueType(1),
3094 EVT VT = Node->getValueType(0);
3105 Tmp1 = EmitStackConvert(Node->getOperand(0), Node->getValueType(0),
3106 Node->getValueType(0), dl);
3111 Node->getOperand(0).getValueType(),
3112 Node->getValueType(0), dl);
3119 EVT VT = Node->getValueType(0);
3126 Tmp1 = DAG.getNode(ISD::SHL, dl, Node->getValueType(0),
3128 Tmp1 = DAG.getNode(ISD::SRA, dl, Node->getValueType(0), Tmp1, ShiftCst);
3141 Node->getValueType(0), dl);
3148 Node->getOperand(0), Node->getValueType(0), dl);
3157 EVT VT = Node->getOperand(0).getValueType();
3158 EVT NVT = Node->getValueType(0);
3186 if (Node->getOperand(0).getValueType().getVectorNumElements() == 1)
3188 Tmp1 = DAG.getNode(ISD::BITCAST, dl, Node->getValueType(0),
3216 EVT VT = Node->getValueType(0);
3286 Tmp1 = DAG.getNode(ISD::BITCAST, dl, Node->getValueType(0), Tmp1);
3291 EVT OpTy = Node->getOperand(0).getValueType();
3297 Node->getOperand(0).getValueType(),
3299 Tmp1 = DAG.getNode(ISD::TRUNCATE, dl, Node->getValueType(0), Tmp1);
3302 Tmp1 = DAG.getNode(ISD::TRUNCATE, dl, Node->getValueType(0),
3313 Node->getValueType(0)));
3316 Results.push_back(DAG.getUNDEF(Node->getValueType(0)));
3331 Results.push_back(DAG.getConstant(0, dl, Node->getValueType(0)));
3339 Tmp1 = DAG.getConstantFP(-0.0, dl, Node->getValueType(0));
3341 Tmp1 = DAG.getNode(ISD::FSUB, dl, Node->getValueType(0), Tmp1,
3370 EVT VT = Node->getValueType(0);
3388 if (Node->getValueType(0) != MVT::f32) {
3395 DAG.getNode(ISD::FP_EXTEND, dl, Node->getValueType(0), Res));
3417 if (!TLI.isFPImmLegal(CFP->getValueAPF(), Node->getValueType(0)))
3427 EVT VT = Node->getValueType(0);
3438 EVT VT = Node->getValueType(0);
3451 EVT VT = Node->getValueType(0);
3474 EVT VT = Node->getValueType(0);
3487 EVT VT = Node->getValueType(0);
3497 EVT VT = Node->getValueType(0);
3546 ISD::ADD : ISD::SUB, dl, LHS.getValueType(),
3549 EVT ResultType = Node->getValueType(1);
3550 EVT OType = getSetCCResultType(Node->getValueType(0));
3552 SDValue Zero = DAG.getConstant(0, dl, LHS.getValueType());
3581 ISD::ADD : ISD::SUB, dl, LHS.getValueType(),
3585 EVT ResultType = Node->getValueType(1);
3586 EVT SetCCType = getSetCCResultType(Node->getValueType(0));
3596 EVT VT = Node->getValueType(0);
3670 TLI.getShiftAmountTy(BottomHalf.getValueType(), DAG.getDataLayout()));
3683 EVT PairTy = Node->getValueType(0);
3703 DAG.getConstant(0, dl, Tmp1.getValueType()),
3719 Index = DAG.getNode(ISD::MUL, dl, Index.getValueType(), Index,
3720 DAG.getConstant(EntrySize, dl, Index.getValueType()));
3721 SDValue Addr = DAG.getNode(ISD::ADD, dl, Index.getValueType(),
3754 DAG.getNode(ISD::AND, dl, Tmp2.getValueType(), Tmp2,
3755 DAG.getConstant(1, dl, Tmp2.getValueType()));
3758 DAG.getConstant(0, dl, Tmp3.getValueType()),
3767 bool Legalized = LegalizeSetCCCondCode(Node->getValueType(0), Tmp1, Tmp2,
3774 Tmp1 = DAG.getNode(ISD::SETCC, dl, Node->getValueType(0),
3780 Tmp1 = DAG.getLogicalNOT(dl, Tmp1, Tmp1->getValueType(0));
3788 EVT VT = Node->getValueType(0);
3790 switch (TLI.getBooleanContents(Tmp1->getValueType(0))) {
3811 EVT VT = Node->getValueType(0);
3818 EVT CmpVT = Tmp1.getValueType();
3835 Tmp1.getValueType().isInteger());
3854 getSetCCResultType(Tmp1.getValueType()), Tmp1, Tmp2, CC, NeedInvert,
3867 Tmp1 = DAG.getNode(ISD::SELECT_CC, dl, Node->getValueType(0),
3870 Tmp2 = DAG.getConstant(0, dl, Tmp1.getValueType());
3872 Tmp1 = DAG.getNode(ISD::SELECT_CC, dl, Node->getValueType(0), Tmp1,
3886 Tmp2.getValueType()), Tmp2, Tmp3, Tmp4, NeedInvert, dl);
3893 Tmp4 = DAG.getNOT(dl, Tmp4, Tmp4->getValueType(0));
3898 Tmp1 = DAG.getNode(ISD::BR_CC, dl, Node->getValueType(0), Tmp1,
3901 Tmp3 = DAG.getConstant(0, dl, Tmp2.getValueType());
3903 Tmp1 = DAG.getNode(ISD::BR_CC, dl, Node->getValueType(0), Tmp1, Tmp4,
3916 EVT VT = Node->getValueType(0);
3933 DAG.getNode(ISD::BUILD_VECTOR, dl, Node->getValueType(0), Scalars);
4145 if (Node->getValueType(0) == MVT::f32) {
4151 RTLIB::getFPROUND(Node->getOperand(0).getValueType(), MVT::f16);
4268 Tmp1 = PromoteLegalFP_TO_INT(Node->getOperand(0), Node->getValueType(0),
4274 Tmp1 = PromoteLegalINT_TO_FP(Node->getOperand(0), Node->getValueType(0),
4331 if (Node->getValueType(0).isVector() ||
4332 getValueType(0).getSizeInBits() == NVT.getSizeInBits()) {
4335 } else if (Node->getValueType(0).isInteger()) {
4349 Tmp1 = DAG.getNode(TruncOp, dl, Node->getValueType(0), Tmp1);
4351 Tmp1 = DAG.getNode(TruncOp, dl, Node->getValueType(0), Tmp1,
4378 Results.push_back(DAG.getNode(ISD::SETCC, dl, Node->getValueType(0),
4391 Results.push_back(DAG.getNode(ISD::BR_CC, dl, Node->getValueType(0),
4511 EVT IdxVT = Idx.getValueType();
4559 EVT IdxVT = Idx.getValueType();