Lines Matching refs:LT
319 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(Tp); in getShuffleCost() local
329 if (Mask.size() >= 2 && LT.second.isFixedLengthVector()) { in getShuffleCost()
330 MVT EltTp = LT.second.getVectorElementType(); in getShuffleCost()
341 return 2 * LT.first * TLI->getLMULCost(LT.second); in getShuffleCost()
348 return LT.first * getRISCVInstructionCost(RISCV::VNSRL_WI, in getShuffleCost()
349 LT.second, CostKind); in getShuffleCost()
355 if (LT.second.isFixedLengthVector() && LT.first == 1 && in getShuffleCost()
356 (LT.second.getScalarSizeInBits() != 8 || in getShuffleCost()
357 LT.second.getVectorNumElements() <= 256)) { in getShuffleCost()
358 VectorType *IdxTy = getVRGatherIndexType(LT.second, *ST, Tp->getContext()); in getShuffleCost()
361 getRISCVInstructionCost(RISCV::VRGATHER_VV, LT.second, CostKind); in getShuffleCost()
370 if (LT.second.isFixedLengthVector() && LT.first == 1 && in getShuffleCost()
371 (LT.second.getScalarSizeInBits() != 8 || in getShuffleCost()
372 LT.second.getVectorNumElements() <= 256)) { in getShuffleCost()
375 VectorType *IdxTy = getVRGatherIndexType(LT.second, *ST, C); in getShuffleCost()
381 LT.second, CostKind) + in getShuffleCost()
390 if (!Mask.empty() && LT.first.isValid() && LT.first != 1 && in getShuffleCost()
391 LT.second.isFixedLengthVector() && in getShuffleCost()
392 LT.second.getVectorElementType().getSizeInBits() == in getShuffleCost()
394 LT.second.getVectorNumElements() < in getShuffleCost()
398 static_cast<unsigned>(*LT.first.getValue())) { in getShuffleCost()
399 unsigned NumRegs = *LT.first.getValue(); in getShuffleCost()
437 return LT.first * in getShuffleCost()
438 getRISCVInstructionCost(RISCV::VSLIDEDOWN_VI, LT.second, CostKind); in getShuffleCost()
443 return LT.first * in getShuffleCost()
444 getRISCVInstructionCost(RISCV::VSLIDEUP_VI, LT.second, CostKind); in getShuffleCost()
455 return LT.first * in getShuffleCost()
457 LT.second, CostKind)); in getShuffleCost()
462 if (LT.second.getScalarSizeInBits() == 1) { in getShuffleCost()
469 return LT.first * in getShuffleCost()
470 (TLI->getLMULCost(LT.second) + // FIXME: should be 1 for andi in getShuffleCost()
472 LT.second, CostKind)); in getShuffleCost()
483 return LT.first * in getShuffleCost()
484 (TLI->getLMULCost(LT.second) + // FIXME: this should be 1 for andi in getShuffleCost()
488 LT.second, CostKind)); in getShuffleCost()
494 return LT.first * in getShuffleCost()
495 getRISCVInstructionCost(RISCV::VMV_V_X, LT.second, CostKind); in getShuffleCost()
500 return LT.first * in getShuffleCost()
501 getRISCVInstructionCost(RISCV::VRGATHER_VI, LT.second, CostKind); in getShuffleCost()
512 return LT.first * getRISCVInstructionCost(Opcodes, LT.second, CostKind); in getShuffleCost()
530 if (LT.second.isFixedLengthVector()) in getShuffleCost()
532 LenCost = isInt<5>(LT.second.getVectorNumElements() - 1) ? 0 : 1; in getShuffleCost()
535 2 + getRISCVInstructionCost(RISCV::VRGATHER_VV, LT.second, CostKind); in getShuffleCost()
538 return LT.first * (LenCost + GatherCost + ExtendCost); in getShuffleCost()
573 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(FVTy); in getInterleavedMemoryOpCost() local
575 if (LT.second.isFixedLengthVector()) { in getInterleavedMemoryOpCost()
577 LT.second.getVectorNumElements()); in getInterleavedMemoryOpCost()
586 return LT.first + LegalMemCost; in getInterleavedMemoryOpCost()
747 auto LT = getTypeLegalizationCost(RetTy); in getIntrinsicInstrCost() local
748 if (!LT.second.isVector() && TLI->isOperationCustom(ISD::FCEIL, LT.second)) in getIntrinsicInstrCost()
749 return LT.first * 8; in getIntrinsicInstrCost()
756 auto LT = getTypeLegalizationCost(RetTy); in getIntrinsicInstrCost() local
757 if ((ST->hasVInstructions() && LT.second.isVector()) || in getIntrinsicInstrCost()
758 (LT.second.isScalarInteger() && ST->hasStdExtZbb())) in getIntrinsicInstrCost()
759 return LT.first; in getIntrinsicInstrCost()
768 auto LT = getTypeLegalizationCost(RetTy); in getIntrinsicInstrCost() local
769 if (ST->hasVInstructions() && LT.second.isVector()) in getIntrinsicInstrCost()
770 return LT.first; in getIntrinsicInstrCost()
774 auto LT = getTypeLegalizationCost(RetTy); in getIntrinsicInstrCost() local
775 if (ST->hasVInstructions() && ST->hasStdExtZvbb() && LT.second.isVector()) in getIntrinsicInstrCost()
776 return LT.first; in getIntrinsicInstrCost()
780 auto LT = getTypeLegalizationCost(RetTy); in getIntrinsicInstrCost() local
781 if (ST->hasVInstructions() && LT.second.isVector()) { in getIntrinsicInstrCost()
784 return LT.first * 2; in getIntrinsicInstrCost()
791 auto LT = getTypeLegalizationCost(RetTy); in getIntrinsicInstrCost() local
792 return Cost + (LT.first - 1); in getIntrinsicInstrCost()
797 auto LT = getTypeLegalizationCost(RetTy); in getIntrinsicInstrCost() local
798 if (TLI->isOperationCustom(ISD::VP_FRINT, LT.second)) in getIntrinsicInstrCost()
799 return Cost * LT.first; in getIntrinsicInstrCost()
805 auto LT = getTypeLegalizationCost(RetTy); in getIntrinsicInstrCost() local
806 if (TLI->isOperationCustom(ISD::VP_FRINT, LT.second)) in getIntrinsicInstrCost()
807 return Cost * LT.first; in getIntrinsicInstrCost()
818 auto LT = getTypeLegalizationCost(RetTy); in getIntrinsicInstrCost() local
820 if (TLI->isOperationCustom(VPISD, LT.second)) in getIntrinsicInstrCost()
821 return Cost * LT.first; in getIntrinsicInstrCost()
827 if (auto LT = getTypeLegalizationCost(RetTy); in getIntrinsicInstrCost() local
828 LT.second.isVector()) { in getIntrinsicInstrCost()
829 MVT EltTy = LT.second.getVectorElementType(); in getIntrinsicInstrCost()
832 return LT.first * Entry->Cost; in getIntrinsicInstrCost()
937 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(Ty); in getMinMaxReductionCost() local
941 return (LT.first - 1) + 3; in getMinMaxReductionCost()
947 return (LT.first - 1) + BaseCost; in getMinMaxReductionCost()
950 return (LT.first - 1) + BaseCost + Log2_32_Ceil(VL); in getMinMaxReductionCost()
971 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(Ty); in getArithmeticReductionCost() local
974 return (LT.first - 1) + (ISD == ISD::AND ? 3 : 2); in getArithmeticReductionCost()
980 return (LT.first - 1) + BaseCost; in getArithmeticReductionCost()
984 return (LT.first - 1) + BaseCost + VL; in getArithmeticReductionCost()
985 return (LT.first - 1) + BaseCost + Log2_32_Ceil(VL); in getArithmeticReductionCost()
1004 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(ValTy); in getExtendedReductionCost() local
1006 if (ResTy->getScalarSizeInBits() != 2 * LT.second.getScalarSizeInBits()) in getExtendedReductionCost()
1010 return (LT.first - 1) + in getExtendedReductionCost()
1055 if (std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(Src); in getMemoryOpCost() local
1056 LT.second.isVector() && CostKind != TTI::TCK_CodeSize) in getMemoryOpCost()
1057 BaseCost *= TLI->getLMULCost(LT.second); in getMemoryOpCost()
1081 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(ValTy); in getCmpSelInstrCost() local
1087 return LT.first * 3; in getCmpSelInstrCost()
1090 return LT.first * 1; in getCmpSelInstrCost()
1099 return LT.first * 5; in getCmpSelInstrCost()
1105 return LT.first * 3; in getCmpSelInstrCost()
1110 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(ValTy); in getCmpSelInstrCost() local
1114 return LT.first * 1; in getCmpSelInstrCost()
1133 return LT.first * 1; in getCmpSelInstrCost()
1165 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(Val); in getVectorInstrCost() local
1168 if (!LT.second.isVector()) { in getVectorInstrCost()
1190 if (LT.second.isScalableVector() && !LT.first.isValid()) in getVectorInstrCost()
1191 return LT.first; in getVectorInstrCost()
1230 if (LT.second.isFixedLengthVector()) { in getVectorInstrCost()
1231 unsigned Width = LT.second.getVectorNumElements(); in getVectorInstrCost()
1288 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(Ty); in getArithmeticInstrCost() local
1291 if (!LT.second.isVector()) in getArithmeticInstrCost()
1332 return ConstantMatCost + TLI->getLMULCost(LT.second) * LT.first * 1; in getArithmeticInstrCost()