Lines Matching refs:LT
312 auto LT = TLI->getTypeLegalizationCost(DL, RetTy); in getIntrinsicInstrCost() local
314 if (LT.second == MVT::v2i64) in getIntrinsicInstrCost()
315 return LT.first * 2; in getIntrinsicInstrCost()
316 if (any_of(ValidMinMaxTys, [<](MVT M) { return M == LT.second; })) in getIntrinsicInstrCost()
317 return LT.first; in getIntrinsicInstrCost()
327 auto LT = TLI->getTypeLegalizationCost(DL, RetTy); in getIntrinsicInstrCost() local
331 LT.second.getScalarSizeInBits() == RetTy->getScalarSizeInBits() ? 1 : 4; in getIntrinsicInstrCost()
332 if (any_of(ValidSatTys, [<](MVT M) { return M == LT.second; })) in getIntrinsicInstrCost()
333 return LT.first * Instrs; in getIntrinsicInstrCost()
340 auto LT = TLI->getTypeLegalizationCost(DL, RetTy); in getIntrinsicInstrCost() local
341 if (any_of(ValidAbsTys, [<](MVT M) { return M == LT.second; })) in getIntrinsicInstrCost()
342 return LT.first; in getIntrinsicInstrCost()
347 auto LT = TLI->getTypeLegalizationCost(DL, RetTy); in getIntrinsicInstrCost() local
350 if (LT.first > 1) { in getIntrinsicInstrCost()
351 Type *LegalVTy = EVT(LT.second).getTypeForEVT(RetTy->getContext()); in getIntrinsicInstrCost()
354 Cost += AddCost * (LT.first - 1); in getIntrinsicInstrCost()
397 auto LT = TLI->getTypeLegalizationCost(DL, RetTy); in getIntrinsicInstrCost() local
398 MVT MTy = LT.second; in getIntrinsicInstrCost()
406 return LT.first * Entry->Cost + ExtraCost; in getIntrinsicInstrCost()
454 auto LT = TLI->getTypeLegalizationCost(DL, ICA.getArgTypes()[0]); in getIntrinsicInstrCost() local
458 if ((LT.second == MVT::f32 || LT.second == MVT::f64 || in getIntrinsicInstrCost()
459 LT.second == MVT::v2f32 || LT.second == MVT::v4f32 || in getIntrinsicInstrCost()
460 LT.second == MVT::v2f64) && in getIntrinsicInstrCost()
461 (LT.second.getScalarSizeInBits() == MTy.getScalarSizeInBits() || in getIntrinsicInstrCost()
462 (LT.second == MVT::f64 && MTy == MVT::i32) || in getIntrinsicInstrCost()
463 (LT.second == MVT::f32 && MTy == MVT::i64))) in getIntrinsicInstrCost()
464 return LT.first; in getIntrinsicInstrCost()
467 ((LT.second == MVT::f16 && MTy == MVT::i32) || in getIntrinsicInstrCost()
468 ((LT.second == MVT::v4f16 || LT.second == MVT::v8f16) && in getIntrinsicInstrCost()
469 (LT.second.getScalarSizeInBits() == MTy.getScalarSizeInBits())))) in getIntrinsicInstrCost()
470 return LT.first; in getIntrinsicInstrCost()
473 if ((LT.second.getScalarType() == MVT::f32 || in getIntrinsicInstrCost()
474 LT.second.getScalarType() == MVT::f64 || in getIntrinsicInstrCost()
475 (ST->hasFullFP16() && LT.second.getScalarType() == MVT::f16)) && in getIntrinsicInstrCost()
476 LT.second.getScalarSizeInBits() >= MTy.getScalarSizeInBits()) { in getIntrinsicInstrCost()
478 Type::getIntNTy(RetTy->getContext(), LT.second.getScalarSizeInBits()); in getIntrinsicInstrCost()
479 if (LT.second.isVector()) in getIntrinsicInstrCost()
480 LegalTy = VectorType::get(LegalTy, LT.second.getVectorElementCount()); in getIntrinsicInstrCost()
488 return LT.first * Cost; in getIntrinsicInstrCost()
1954 std::pair<InstructionCost, MVT> LT = TLI->getTypeLegalizationCost(DL, Val); in getVectorInstrCost() local
1957 if (!LT.second.isVector()) in getVectorInstrCost()
1962 if (LT.second.isFixedLengthVector()) { in getVectorInstrCost()
1963 unsigned Width = LT.second.getVectorNumElements(); in getVectorInstrCost()
1989 std::pair<InstructionCost, MVT> LT = TLI->getTypeLegalizationCost(DL, Ty); in getArithmeticInstrCost() local
2066 if (LT.second != MVT::v2i64 || isWideningInstruction(Ty, Opcode, Args)) in getArithmeticInstrCost()
2067 return LT.first; in getArithmeticInstrCost()
2068 return LT.first * 14; in getArithmeticInstrCost()
2078 return LT.first; in getArithmeticInstrCost()
2088 return 2 * LT.first; in getArithmeticInstrCost()
2150 auto LT = TLI->getTypeLegalizationCost(DL, ValTy); in getCmpSelInstrCost() local
2151 if (any_of(ValidMinMaxTys, [<](MVT M) { return M == LT.second; }) || in getCmpSelInstrCost()
2153 any_of(ValidFP16MinMaxTys, [<](MVT M) { return M == LT.second; }))) in getCmpSelInstrCost()
2154 return LT.first; in getCmpSelInstrCost()
2210 auto LT = TLI->getTypeLegalizationCost(DL, Src); in getMaskedMemoryOpCost() local
2211 if (!LT.first.isValid()) in getMaskedMemoryOpCost()
2221 return LT.first * 2; in getMaskedMemoryOpCost()
2235 auto LT = TLI->getTypeLegalizationCost(DL, DataTy); in getGatherScatterOpCost() local
2236 if (!LT.first.isValid()) in getGatherScatterOpCost()
2247 ElementCount LegalVF = LT.second.getVectorElementCount(); in getGatherScatterOpCost()
2254 return LT.first * MemOpCost * getMaxNumElements(LegalVF); in getGatherScatterOpCost()
2272 auto LT = TLI->getTypeLegalizationCost(DL, Ty); in getMemoryOpCost() local
2273 if (!LT.first.isValid()) in getMemoryOpCost()
2286 return LT.first; in getMemoryOpCost()
2292 LT.second.is128BitVector() && (!Alignment || *Alignment < Align(16))) { in getMemoryOpCost()
2300 return LT.first * 2 * AmortizationCost; in getMemoryOpCost()
2305 Ty->getScalarSizeInBits() != LT.second.getScalarSizeInBits()) { in getMemoryOpCost()
2313 return LT.first; in getMemoryOpCost()
2617 std::pair<InstructionCost, MVT> LT = TLI->getTypeLegalizationCost(DL, Ty); in getMinMaxReductionCost() local
2619 if (LT.second.getScalarType() == MVT::f16 && !ST->hasFullFP16()) in getMinMaxReductionCost()
2626 if (LT.first > 1) { in getMinMaxReductionCost()
2627 Type *LegalVTy = EVT(LT.second).getTypeForEVT(Ty->getContext()); in getMinMaxReductionCost()
2633 LegalizationCost = getIntrinsicInstrCost(Attrs, CostKind) * (LT.first - 1); in getMinMaxReductionCost()
2641 std::pair<InstructionCost, MVT> LT = TLI->getTypeLegalizationCost(DL, ValTy); in getArithmeticReductionCostSVE() local
2643 if (LT.first > 1) { in getArithmeticReductionCostSVE()
2644 Type *LegalVTy = EVT(LT.second).getTypeForEVT(ValTy->getContext()); in getArithmeticReductionCostSVE()
2646 LegalizationCost *= LT.first - 1; in getArithmeticReductionCostSVE()
2690 std::pair<InstructionCost, MVT> LT = TLI->getTypeLegalizationCost(DL, ValTy); in getArithmeticReductionCost() local
2691 MVT MTy = LT.second; in getArithmeticReductionCost()
2736 return (LT.first - 1) + Entry->Cost; in getArithmeticReductionCost()
2749 if (LT.first != 1) { in getArithmeticReductionCost()
2755 ExtraCost *= LT.first - 1; in getArithmeticReductionCost()
2781 std::pair<InstructionCost, MVT> LT = TLI->getTypeLegalizationCost(DL, Tp); in getSpliceCost() local
2782 Type *LegalVTy = EVT(LT.second).getTypeForEVT(Tp->getContext()); in getSpliceCost()
2784 EVT PromotedVT = LT.second.getScalarType() == MVT::i1 in getSpliceCost()
2785 ? TLI->getPromotedVTForPredicate(EVT(LT.second)) in getSpliceCost()
2786 : LT.second; in getSpliceCost()
2799 if (LT.second.getScalarType() == MVT::i1) { in getSpliceCost()
2810 return LegalizationCost * LT.first; in getSpliceCost()
2818 std::pair<InstructionCost, MVT> LT = TLI->getTypeLegalizationCost(DL, Tp); in getShuffleCost() local
2821 if (!Mask.empty() && isa<FixedVectorType>(Tp) && LT.second.isVector() && in getShuffleCost()
2822 Tp->getScalarSizeInBits() == LT.second.getScalarSizeInBits() && in getShuffleCost()
2824 LT.second.getVectorNumElements() && in getShuffleCost()
2828 unsigned LTNumElts = LT.second.getVectorNumElements(); in getShuffleCost()
2831 VectorType::get(Tp->getScalarType(), LT.second.getVectorElementCount()); in getShuffleCost()
2890 if (IsLoad && LT.second.isVector() && in getShuffleCost()
2892 LT.second.getVectorElementCount())) in getShuffleCost()
3004 if (const auto *Entry = CostTableLookup(ShuffleTbl, Kind, LT.second)) in getShuffleCost()
3005 return LT.first * Entry->Cost; in getShuffleCost()
3013 if (Kind == TTI::SK_InsertSubvector && LT.second.isFixedLengthVector() && in getShuffleCost()
3014 LT.second.getSizeInBits() <= 128 && SubTp) { in getShuffleCost()
3018 int NumElts = LT.second.getVectorNumElements(); in getShuffleCost()