Lines Matching refs:VT
393 MVT VT = Op.getSimpleValueType(); in Promote() local
396 MVT NVT = TLI.getTypeToPromoteTo(Op.getOpcode(), VT); in Promote()
415 if ((VT.isFloatingPoint() && NVT.isFloatingPoint()) || in Promote()
416 (VT.isVector() && VT.getVectorElementType().isFloatingPoint() && in Promote()
418 return DAG.getNode(ISD::FP_ROUND, dl, VT, Op, DAG.getIntPtrConstant(0, dl)); in Promote()
420 return DAG.getNode(ISD::BITCAST, dl, VT, Op); in Promote()
426 EVT VT = Op.getOperand(0).getValueType(); in PromoteINT_TO_FP() local
438 EVT NVT = VT.widenIntegerVectorElementType(*DAG.getContext()); in PromoteINT_TO_FP()
462 EVT VT = Op.getValueType(); in PromoteFP_TO_INT() local
467 NewVT = VT.widenIntegerVectorElementType(*DAG.getContext()); in PromoteFP_TO_INT()
481 return DAG.getNode(ISD::TRUNCATE, SDLoc(Op), VT, promoted); in PromoteFP_TO_INT()
720 EVT VT = Op.getValueType(); in ExpandSELECT() local
727 assert(VT.isVector() && !Mask.getValueType().isVector() in ExpandSELECT()
730 unsigned NumElem = VT.getVectorNumElements(); in ExpandSELECT()
737 if (TLI.getOperationAction(ISD::AND, VT) == TargetLowering::Expand || in ExpandSELECT()
738 TLI.getOperationAction(ISD::XOR, VT) == TargetLowering::Expand || in ExpandSELECT()
739 TLI.getOperationAction(ISD::OR, VT) == TargetLowering::Expand || in ExpandSELECT()
740 TLI.getOperationAction(ISD::BUILD_VECTOR, VT) == TargetLowering::Expand) in ExpandSELECT()
744 EVT MaskTy = VT.changeVectorElementTypeToInteger(); in ExpandSELECT()
775 EVT VT = Op.getValueType(); in ExpandSEXTINREG() local
778 if (TLI.getOperationAction(ISD::SRA, VT) == TargetLowering::Expand || in ExpandSEXTINREG()
779 TLI.getOperationAction(ISD::SHL, VT) == TargetLowering::Expand) in ExpandSEXTINREG()
785 unsigned BW = VT.getScalarType().getSizeInBits(); in ExpandSEXTINREG()
787 SDValue ShiftSz = DAG.getConstant(BW - OrigBW, DL, VT); in ExpandSEXTINREG()
790 Op = DAG.getNode(ISD::SHL, DL, VT, Op, ShiftSz); in ExpandSEXTINREG()
791 return DAG.getNode(ISD::SRA, DL, VT, Op, ShiftSz); in ExpandSEXTINREG()
798 EVT VT = Op.getValueType(); in ExpandANY_EXTEND_VECTOR_INREG() local
799 int NumElements = VT.getVectorNumElements(); in ExpandANY_EXTEND_VECTOR_INREG()
815 ISD::BITCAST, DL, VT, in ExpandANY_EXTEND_VECTOR_INREG()
821 EVT VT = Op.getValueType(); in ExpandSIGN_EXTEND_VECTOR_INREG() local
827 Op = DAG.getAnyExtendVectorInReg(Src, DL, VT); in ExpandSIGN_EXTEND_VECTOR_INREG()
832 unsigned EltWidth = VT.getVectorElementType().getSizeInBits(); in ExpandSIGN_EXTEND_VECTOR_INREG()
834 SDValue ShiftAmount = DAG.getConstant(EltWidth - SrcEltWidth, DL, VT); in ExpandSIGN_EXTEND_VECTOR_INREG()
835 return DAG.getNode(ISD::SRA, DL, VT, in ExpandSIGN_EXTEND_VECTOR_INREG()
836 DAG.getNode(ISD::SHL, DL, VT, Op, ShiftAmount), in ExpandSIGN_EXTEND_VECTOR_INREG()
845 EVT VT = Op.getValueType(); in ExpandZERO_EXTEND_VECTOR_INREG() local
846 int NumElements = VT.getVectorNumElements(); in ExpandZERO_EXTEND_VECTOR_INREG()
869 return DAG.getNode(ISD::BITCAST, DL, VT, in ExpandZERO_EXTEND_VECTOR_INREG()
874 EVT VT = Op.getValueType(); in ExpandBSWAP() local
878 int ScalarSizeInBytes = VT.getScalarSizeInBits() / 8; in ExpandBSWAP()
879 for (int I = 0, E = VT.getVectorNumElements(); I != E; ++I) in ExpandBSWAP()
893 return DAG.getNode(ISD::BITCAST, DL, VT, Op); in ExpandBSWAP()
905 EVT VT = Mask.getValueType(); in ExpandVSELECT() local
914 if (TLI.getOperationAction(ISD::AND, VT) == TargetLowering::Expand || in ExpandVSELECT()
915 TLI.getOperationAction(ISD::XOR, VT) == TargetLowering::Expand || in ExpandVSELECT()
916 TLI.getOperationAction(ISD::OR, VT) == TargetLowering::Expand || in ExpandVSELECT()
924 if (VT.getSizeInBits() != Op1.getValueType().getSizeInBits()) in ExpandVSELECT()
930 Op1 = DAG.getNode(ISD::BITCAST, DL, VT, Op1); in ExpandVSELECT()
931 Op2 = DAG.getNode(ISD::BITCAST, DL, VT, Op2); in ExpandVSELECT()
934 APInt::getAllOnesValue(VT.getScalarType().getSizeInBits()), DL, VT); in ExpandVSELECT()
935 SDValue NotMask = DAG.getNode(ISD::XOR, DL, VT, Mask, AllOnes); in ExpandVSELECT()
937 Op1 = DAG.getNode(ISD::AND, DL, VT, Op1, Mask); in ExpandVSELECT()
938 Op2 = DAG.getNode(ISD::AND, DL, VT, Op2, NotMask); in ExpandVSELECT()
939 SDValue Val = DAG.getNode(ISD::OR, DL, VT, Op1, Op2); in ExpandVSELECT()
944 EVT VT = Op.getOperand(0).getValueType(); in ExpandUINT_TO_FLOAT() local
948 if (TLI.getOperationAction(ISD::SINT_TO_FP, VT) == TargetLowering::Expand || in ExpandUINT_TO_FLOAT()
949 TLI.getOperationAction(ISD::SRL, VT) == TargetLowering::Expand) in ExpandUINT_TO_FLOAT()
952 EVT SVT = VT.getScalarType(); in ExpandUINT_TO_FLOAT()
957 SDValue HalfWord = DAG.getConstant(BW/2, DL, VT); in ExpandUINT_TO_FLOAT()
963 SDValue HalfWordMask = DAG.getConstant(HWMask, DL, VT); in ExpandUINT_TO_FLOAT()
969 SDValue HI = DAG.getNode(ISD::SRL, DL, VT, Op.getOperand(0), HalfWord); in ExpandUINT_TO_FLOAT()
970 SDValue LO = DAG.getNode(ISD::AND, DL, VT, Op.getOperand(0), HalfWordMask); in ExpandUINT_TO_FLOAT()
994 EVT VT = Op.getValueType(); in UnrollVSETCC() local
995 unsigned NumElems = VT.getVectorNumElements(); in UnrollVSETCC()
996 EVT EltVT = VT.getVectorElementType(); in UnrollVSETCC()
1017 return DAG.getNode(ISD::BUILD_VECTOR, dl, VT, Ops); in UnrollVSETCC()