Lines Matching refs:CostKind
295 TTI::TargetCostKind CostKind) { in getIntImmCost() argument
388 TTI::TargetCostKind CostKind, in getIntImmCostInst() argument
409 return std::min(getIntImmCost(Imm, Ty, CostKind), in getIntImmCostInst()
410 getIntImmCost(~Imm, Ty, CostKind)); in getIntImmCostInst()
415 return std::min(getIntImmCost(Imm, Ty, CostKind), in getIntImmCostInst()
416 getIntImmCost(-Imm, Ty, CostKind)); in getIntImmCostInst()
450 return std::min(getIntImmCost(Imm, Ty, CostKind), in getIntImmCostInst()
451 getIntImmCost(Imm + 1, Ty, CostKind)); in getIntImmCostInst()
454 return getIntImmCost(Imm, Ty, CostKind); in getIntImmCostInst()
458 TTI::TargetCostKind CostKind, in getCFInstrCost() argument
460 if (CostKind == TTI::TCK_RecipThroughput && in getCFInstrCost()
468 return BaseT::getCFInstrCost(Opcode, CostKind, I); in getCFInstrCost()
474 TTI::TargetCostKind CostKind, in getCastInstrCost() argument
480 auto AdjustCost = [&CostKind](InstructionCost Cost) -> InstructionCost { in getCastInstrCost()
481 if (CostKind != TTI::TCK_RecipThroughput) in getCastInstrCost()
497 BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I)); in getCastInstrCost()
510 ST->getMVEVectorCostFactor(CostKind); in getCastInstrCost()
554 return Entry->Cost * ST->getMVEVectorCostFactor(CostKind); in getCastInstrCost()
566 return Entry->Cost * ST->getMVEVectorCostFactor(CostKind); in getCastInstrCost()
583 return Entry->Cost * ST->getMVEVectorCostFactor(CostKind); in getCastInstrCost()
594 return Entry->Cost * ST->getMVEVectorCostFactor(CostKind); in getCastInstrCost()
818 return Entry->Cost * ST->getMVEVectorCostFactor(CostKind); in getCastInstrCost()
826 getCallInstrCost(nullptr, Dst, {Src}, CostKind); in getCastInstrCost()
869 ? ST->getMVEVectorCostFactor(CostKind) in getCastInstrCost()
872 BaseCost * BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I)); in getCastInstrCost()
914 TTI::TargetCostKind CostKind, in getCmpSelInstrCost() argument
919 if (CostKind == TTI::TCK_CodeSize && ISD == ISD::SELECT && in getCmpSelInstrCost()
984 return getIntrinsicInstrCost(CostAttrs, CostKind); in getCmpSelInstrCost()
1027 VecCondTy->getScalarType(), VecPred, CostKind, in getCmpSelInstrCost()
1033 int BaseCost = ST->getMVEVectorCostFactor(CostKind); in getCmpSelInstrCost()
1051 BaseCost = ST->getMVEVectorCostFactor(CostKind); in getCmpSelInstrCost()
1054 BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, I); in getCmpSelInstrCost()
1310 unsigned Opcode, Type *Ty, TTI::TargetCostKind CostKind, in getArithmeticInstrCost() argument
1316 if (ST->isThumb() && CostKind == TTI::TCK_CodeSize && Ty->isIntegerTy(1)) { in getArithmeticInstrCost()
1381 Opcode, Ty, CostKind, Op1Info, Op2Info, Opd1PropInfo, Opd2PropInfo); in getArithmeticInstrCost()
1428 BaseCost = ST->getMVEVectorCostFactor(CostKind); in getArithmeticInstrCost()
1441 getArithmeticInstrCost(Opcode, Ty->getScalarType(), CostKind); in getArithmeticInstrCost()
1454 TTI::TargetCostKind CostKind, in getMemoryOpCost() argument
1457 if (CostKind != TTI::TCK_RecipThroughput) in getMemoryOpCost()
1463 CostKind); in getMemoryOpCost()
1487 return ST->getMVEVectorCostFactor(CostKind); in getMemoryOpCost()
1491 ? ST->getMVEVectorCostFactor(CostKind) in getMemoryOpCost()
1494 CostKind, I); in getMemoryOpCost()
1500 TTI::TargetCostKind CostKind) { in getMaskedMemoryOpCost() argument
1503 return ST->getMVEVectorCostFactor(CostKind); in getMaskedMemoryOpCost()
1505 return ST->getMVEVectorCostFactor(CostKind); in getMaskedMemoryOpCost()
1509 CostKind); in getMaskedMemoryOpCost()
1517 Align Alignment, unsigned AddressSpace, TTI::TargetCostKind CostKind, in getInterleavedMemoryOpCost() argument
1535 ST->hasMVEIntegerOps() ? ST->getMVEVectorCostFactor(CostKind) : 1; in getInterleavedMemoryOpCost()
1552 Alignment, AddressSpace, CostKind, in getInterleavedMemoryOpCost()
1558 Align Alignment, TTI::TargetCostKind CostKind, const Instruction *I) { in getGatherScatterOpCost() argument
1562 Alignment, CostKind, I); in getGatherScatterOpCost()
1579 NumElems * LT.first * ST->getMVEVectorCostFactor(CostKind); in getGatherScatterOpCost()
1658 TTI::TargetCostKind CostKind) { in getArithmeticReductionCost() argument
1660 return BaseT::getArithmeticReductionCost(Opcode, ValTy, FMF, CostKind); in getArithmeticReductionCost()
1665 return BaseT::getArithmeticReductionCost(Opcode, ValTy, FMF, CostKind); in getArithmeticReductionCost()
1675 return Entry->Cost * ST->getMVEVectorCostFactor(CostKind) * LT.first; in getArithmeticReductionCost()
1677 return BaseT::getArithmeticReductionCost(Opcode, ValTy, FMF, CostKind); in getArithmeticReductionCost()
1683 TTI::TargetCostKind CostKind) { in getExtendedAddReductionCost() argument
1704 return ST->getMVEVectorCostFactor(CostKind) * LT.first; in getExtendedAddReductionCost()
1708 CostKind); in getExtendedAddReductionCost()
1713 TTI::TargetCostKind CostKind) { in getIntrinsicInstrCost() argument
1741 return LT.first * ST->getMVEVectorCostFactor(CostKind) * Instrs; in getIntrinsicInstrCost()
1757 return LT.first * ST->getMVEVectorCostFactor(CostKind); in getIntrinsicInstrCost()
1767 return LT.first * ST->getMVEVectorCostFactor(CostKind); in getIntrinsicInstrCost()
1787 return LT.first * ST->getMVEVectorCostFactor(CostKind); in getIntrinsicInstrCost()
1799 LT.second.isVector() ? ST->getMVEVectorCostFactor(CostKind) : 1; in getIntrinsicInstrCost()
1803 Cost += getIntrinsicInstrCost(Attrs1, CostKind); in getIntrinsicInstrCost()
1807 Cost += getIntrinsicInstrCost(Attrs2, CostKind); in getIntrinsicInstrCost()
1814 return BaseT::getIntrinsicInstrCost(ICA, CostKind); in getIntrinsicInstrCost()