/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeIntegerTypes.cpp | 257 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(1)); in PromoteIntRes_AtomicCmpSwap() local 262 SVT = NVT; in PromoteIntRes_AtomicCmpSwap() 402 EVT NVT = Op.getValueType(); in PromoteIntRes_BSWAP() local 405 unsigned DiffBits = NVT.getScalarSizeInBits() - OVT.getScalarSizeInBits(); in PromoteIntRes_BSWAP() 406 EVT ShiftVT = getShiftAmountTyForConstant(NVT, TLI, DAG); in PromoteIntRes_BSWAP() 407 return DAG.getNode(ISD::SRL, dl, NVT, DAG.getNode(ISD::BSWAP, dl, NVT, Op), in PromoteIntRes_BSWAP() 414 EVT NVT = Op.getValueType(); in PromoteIntRes_BITREVERSE() local 417 unsigned DiffBits = NVT.getScalarSizeInBits() - OVT.getScalarSizeInBits(); in PromoteIntRes_BITREVERSE() 418 EVT ShiftVT = getShiftAmountTyForConstant(NVT, TLI, DAG); in PromoteIntRes_BITREVERSE() 419 return DAG.getNode(ISD::SRL, dl, NVT, in PromoteIntRes_BITREVERSE() [all …]
|
D | LegalizeFloatTypes.cpp | 145 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_Unary() local 154 std::pair<SDValue, SDValue> Tmp = TLI.makeLibCall(DAG, LC, NVT, Op, in SoftenFloatRes_Unary() 164 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_Binary() local 175 std::pair<SDValue, SDValue> Tmp = TLI.makeLibCall(DAG, LC, NVT, Ops, in SoftenFloatRes_Binary() 234 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FABS() local 235 unsigned Size = NVT.getSizeInBits(); in SoftenFloatRes_FABS() 240 SDValue Mask = DAG.getConstant(API, SDLoc(N), NVT); in SoftenFloatRes_FABS() 242 return DAG.getNode(ISD::AND, SDLoc(N), NVT, Op, Mask); in SoftenFloatRes_FABS() 412 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FMA() local 430 NVT, Ops, CallOptions, SDLoc(N), Chain); in SoftenFloatRes_FMA() [all …]
|
D | LegalizeTypesGeneric.cpp | 104 EVT NVT = EVT::getVectorVT(*DAG.getContext(), ElemVT, NumElems); in ExpandRes_BITCAST() local 107 while (!isTypeLegal(NVT)) { in ExpandRes_BITCAST() 114 NVT = EVT::getVectorVT(*DAG.getContext(), ElemVT, NumElems); in ExpandRes_BITCAST() 117 if (isTypeLegal(NVT)) { in ExpandRes_BITCAST() 118 SDValue CastInOp = DAG.getNode(ISD::BITCAST, dl, NVT, InOp); in ExpandRes_BITCAST() 251 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), ValueVT); in ExpandRes_NormalLoad() local 257 assert(NVT.isByteSized() && "Expanded type not byte sized!"); in ExpandRes_NormalLoad() 259 Lo = DAG.getLoad(NVT, dl, Chain, Ptr, LD->getPointerInfo(), Alignment, in ExpandRes_NormalLoad() 263 unsigned IncrementSize = NVT.getSizeInBits() / 8; in ExpandRes_NormalLoad() 265 Hi = DAG.getLoad(NVT, dl, Chain, Ptr, in ExpandRes_NormalLoad() [all …]
|
D | LegalizeDAG.cpp | 132 SDValue ShuffleWithNarrowerEltType(EVT NVT, EVT VT, const SDLoc &dl, 260 EVT NVT, EVT VT, const SDLoc &dl, SDValue N1, SDValue N2, in ShuffleWithNarrowerEltType() argument 263 unsigned NumDestElts = NVT.getVectorNumElements(); in ShuffleWithNarrowerEltType() 269 return DAG.getVectorShuffle(NVT, dl, N1, N2, Mask); in ShuffleWithNarrowerEltType() 282 assert(TLI.isShuffleMaskLegal(NewMask, NVT) && "Shuffle not legal?"); in ShuffleWithNarrowerEltType() 283 return DAG.getVectorShuffle(NVT, dl, N1, N2, NewMask); in ShuffleWithNarrowerEltType() 527 MVT NVT = TLI.getTypeToPromoteTo(ISD::STORE, VT); in LegalizeStoreOps() local 528 assert(NVT.getSizeInBits() == VT.getSizeInBits() && in LegalizeStoreOps() 530 Value = DAG.getNode(ISD::BITCAST, dl, NVT, Value); in LegalizeStoreOps() 551 EVT NVT = EVT::getIntegerVT(*DAG.getContext(), in LegalizeStoreOps() local [all …]
|
D | LegalizeVectorOps.cpp | 588 MVT NVT = TLI.getTypeToPromoteTo(Node->getOpcode(), VT); in Promote() local 598 NVT.isVector() && NVT.getVectorElementType().isFloatingPoint()) in Promote() 599 Operands[j] = DAG.getNode(ISD::FP_EXTEND, dl, NVT, Node->getOperand(j)); in Promote() 601 Operands[j] = DAG.getNode(ISD::BITCAST, dl, NVT, Node->getOperand(j)); in Promote() 607 DAG.getNode(Node->getOpcode(), dl, NVT, Operands, Node->getFlags()); in Promote() 609 if ((VT.isFloatingPoint() && NVT.isFloatingPoint()) || in Promote() 611 NVT.isVector() && NVT.getVectorElementType().isFloatingPoint())) in Promote() 625 MVT NVT = TLI.getTypeToPromoteTo(Node->getOpcode(), VT); in PromoteINT_TO_FP() local 626 assert(NVT.getVectorNumElements() == VT.getVectorNumElements() && in PromoteINT_TO_FP() 638 Operands[j] = DAG.getNode(Opc, dl, NVT, Node->getOperand(j)); in PromoteINT_TO_FP() [all …]
|
D | LegalizeTypes.cpp | 953 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), Pair.getValueType()); in GetPairElements() local 954 Lo = DAG.getNode(ISD::EXTRACT_ELEMENT, dl, NVT, Pair, in GetPairElements() 956 Hi = DAG.getNode(ISD::EXTRACT_ELEMENT, dl, NVT, Pair, in GetPairElements() 967 EVT NVT = EVT::getIntegerVT(*DAG.getContext(), in JoinIntegers() local 970 EVT ShiftAmtVT = TLI.getShiftAmountTy(NVT, DAG.getDataLayout(), false); in JoinIntegers() 971 Lo = DAG.getNode(ISD::ZERO_EXTEND, dlLo, NVT, Lo); in JoinIntegers() 972 Hi = DAG.getNode(ISD::ANY_EXTEND, dlHi, NVT, Hi); in JoinIntegers() 973 Hi = DAG.getNode(ISD::SHL, dlHi, NVT, Hi, in JoinIntegers() 975 return DAG.getNode(ISD::OR, dlHi, NVT, Lo, Hi); in JoinIntegers()
|
D | LegalizeVectorTypes.cpp | 517 EVT NVT = N->getValueType(0).getVectorElementType(); in ScalarizeVecRes_SETCC() local 541 return DAG.getNode(ExtendCode, DL, NVT, Res); in ScalarizeVecRes_SETCC() 725 EVT NVT = VT.getVectorElementType(); in ScalarizeVecOp_VSETCC() local 736 Res = DAG.getNode(ExtendCode, DL, NVT, Res); in ScalarizeVecOp_VSETCC() 1879 EVT NVT = OVT.getHalfNumVectorElementsVT(*DAG.getContext()); in SplitVecRes_VAARG() local 1886 NVT.getTypeForEVT(*DAG.getContext())); in SplitVecRes_VAARG() 1888 Lo = DAG.getVAArg(NVT, dl, Chain, Ptr, SV, Alignment); in SplitVecRes_VAARG() 1889 Hi = DAG.getVAArg(NVT, dl, Lo.getValue(1), Ptr, SV, Alignment); in SplitVecRes_VAARG() 5181 SDValue DAGTypeLegalizer::ModifyToType(SDValue InOp, EVT NVT, in ModifyToType() argument 5186 assert(InVT.getVectorElementType() == NVT.getVectorElementType() && in ModifyToType() [all …]
|
D | DAGCombiner.cpp | 10785 EVT NVT = EVT::getVectorVT(*DAG.getContext(), TrTy, SizeRatio * NumElem); in visitTRUNCATE() local 10786 assert(NVT.getSizeInBits() == VecTy.getSizeInBits() && "Invalid Size"); in visitTRUNCATE() 10789 if (isa<ConstantSDNode>(EltNo) && isTypeLegal(NVT)) { in visitTRUNCATE() 10796 DAG.getBitcast(NVT, N0.getOperand(0)), in visitTRUNCATE() 18165 EVT NVT = EVT::getVectorVT(*DAG.getContext(), SclTy, VNTNumElms); in visitCONCAT_VECTORS() local 18166 if (!TLI.isTypeLegal(NVT) || !TLI.isTypeLegal(Scalar.getValueType())) in visitCONCAT_VECTORS() 18169 SDValue Res = DAG.getNode(ISD::SCALAR_TO_VECTOR, SDLoc(N), NVT, Scalar); in visitCONCAT_VECTORS() 18486 EVT NVT = N->getValueType(0); in visitEXTRACT_SUBVECTOR() local 18491 return DAG.getUNDEF(NVT); in visitEXTRACT_SUBVECTOR() 18493 if (TLI.isOperationLegalOrCustomOrPromote(ISD::LOAD, NVT)) in visitEXTRACT_SUBVECTOR() [all …]
|
D | LegalizeTypes.h | 888 SDValue ModifyToType(SDValue InOp, EVT NVT, bool FillWithZeroes = false);
|
D | SelectionDAG.cpp | 5985 EVT NVT = TLI.getTypeToTransformTo(C, VT); in getMemcpyLoadsAndStores() local 5986 assert(NVT.bitsGE(VT)); in getMemcpyLoadsAndStores() 5994 Value = DAG.getExtLoad(ISD::EXTLOAD, dl, NVT, Chain, in getMemcpyLoadsAndStores()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86ISelDAGToDAG.cpp | 3260 MVT NVT = Node->getSimpleValueType(0); in matchBitExtract() local 3263 if (NVT != MVT::i32 && NVT != MVT::i64) in matchBitExtract() 3307 auto isAllOnes = [this, peekThroughOneUseTruncation, NVT](SDValue V) { in matchBitExtract() 3311 NVT.getSizeInBits())); in matchBitExtract() 3436 if (NVT != MVT::i32) { in matchBitExtract() 3438 NBits = CurDAG->getNode(ISD::ANY_EXTEND, DL, NVT, NBits); in matchBitExtract() 3442 SDValue Extract = CurDAG->getNode(X86ISD::BZHI, DL, NVT, X, NBits); in matchBitExtract() 3503 if (XVT != NVT) { in matchBitExtract() 3505 Extract = CurDAG->getNode(ISD::TRUNCATE, DL, NVT, Extract); in matchBitExtract() 3516 MVT NVT = Node->getSimpleValueType(0); in matchBEXTRFromAndImm() local [all …]
|
D | X86ISelLowering.cpp | 7998 EVT NVT = EVT::getVectorVT(*DAG.getContext(), PVT, NumElems); in LowerAsSplatVectorLoad() local 7999 SDValue V1 = DAG.getLoad(NVT, dl, Chain, Ptr, in LowerAsSplatVectorLoad() 8004 return DAG.getVectorShuffle(NVT, dl, V1, DAG.getUNDEF(NVT), Mask); in LowerAsSplatVectorLoad() 28194 static SDValue ExtendToType(SDValue InOp, MVT NVT, SelectionDAG &DAG, in ExtendToType() argument 28198 if (InVT == NVT) in ExtendToType() 28202 return DAG.getUNDEF(NVT); in ExtendToType() 28204 assert(InVT.getVectorElementType() == NVT.getVectorElementType() && in ExtendToType() 28208 unsigned WidenNumElts = NVT.getVectorNumElements(); in ExtendToType() 28235 return DAG.getBuildVector(NVT, dl, Ops); in ExtendToType() 28237 SDValue FillVal = FillWithZeroes ? DAG.getConstant(0, dl, NVT) : in ExtendToType() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | TargetLoweringBase.cpp | 809 MVT NVT = TransformToType[SVT.SimpleTy]; in getTypeConversion() local 813 (NVT.isVector() || in getTypeConversion() 814 ValueTypeActions.getTypeAction(NVT) != TypePromoteInteger)) && in getTypeConversion() 823 return LegalizeKind(LA, NVT); in getTypeConversion() 832 EVT NVT = VT.getRoundIntegerType(Context); in getTypeConversion() local 833 assert(NVT != VT && "Unable to round integer VT"); in getTypeConversion() 834 LegalizeKind NextStep = getTypeConversion(Context, NVT); in getTypeConversion() 839 return LegalizeKind(TypePromoteInteger, NVT); in getTypeConversion() 862 EVT NVT = EVT::getVectorVT(Context, EltVT, NumElts); in getTypeConversion() local 863 return LegalizeKind(TypeWidenVector, NVT); in getTypeConversion() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/ |
D | LegalizerHelper.cpp | 3098 LLT NVT = HalfTy; in narrowScalarShiftByConstant() local 3105 Lo = Hi = MIRBuilder.buildConstant(NVT, 0); in narrowScalarShiftByConstant() 3107 Lo = MIRBuilder.buildConstant(NVT, 0); in narrowScalarShiftByConstant() 3108 Hi = MIRBuilder.buildShl(NVT, InL, in narrowScalarShiftByConstant() 3111 Lo = MIRBuilder.buildConstant(NVT, 0); in narrowScalarShiftByConstant() 3114 Lo = MIRBuilder.buildShl(NVT, InL, MIRBuilder.buildConstant(AmtTy, Amt)); in narrowScalarShiftByConstant() 3116 MIRBuilder.buildShl(NVT, InH, MIRBuilder.buildConstant(AmtTy, Amt)); in narrowScalarShiftByConstant() 3118 NVT, InL, MIRBuilder.buildConstant(AmtTy, -Amt + NVTBits)); in narrowScalarShiftByConstant() 3119 Hi = MIRBuilder.buildOr(NVT, OrLHS, OrRHS); in narrowScalarShiftByConstant() 3123 Lo = Hi = MIRBuilder.buildConstant(NVT, 0); in narrowScalarShiftByConstant() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/ |
D | TargetLowering.h | 1212 MVT NVT = VT; in getTypeToPromoteTo() local 1214 NVT = (MVT::SimpleValueType)(NVT.SimpleTy+1); in getTypeToPromoteTo() 1215 assert(NVT.isInteger() == VT.isInteger() && NVT != MVT::isVoid && in getTypeToPromoteTo() 1217 } while (!isTypeLegal(NVT) || in getTypeToPromoteTo() 1218 getOperationAction(Op, NVT) == Promote); in getTypeToPromoteTo() 1219 return NVT; in getTypeToPromoteTo()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | SIISelLowering.cpp | 9066 MVT NVT = MVT::i32; in performIntMed3ImmCombine() local 9069 SDValue Tmp1 = DAG.getNode(ExtOp, SL, NVT, Op0->getOperand(0)); in performIntMed3ImmCombine() 9070 SDValue Tmp2 = DAG.getNode(ExtOp, SL, NVT, Op0->getOperand(1)); in performIntMed3ImmCombine() 9071 SDValue Tmp3 = DAG.getNode(ExtOp, SL, NVT, Op1); in performIntMed3ImmCombine() 9073 SDValue Med3 = DAG.getNode(Med3Opc, SL, NVT, Tmp1, Tmp2, Tmp3); in performIntMed3ImmCombine()
|