Lines Matching refs:CostKind
39 TTI::TargetCostKind CostKind) { in getRISCVInstructionCost() argument
44 if (CostKind == TTI::TCK_CodeSize) in getRISCVInstructionCost()
47 if ((CostKind != TTI::TCK_RecipThroughput) && (CostKind != TTI::TCK_Latency)) in getRISCVInstructionCost()
102 TTI::TargetCostKind CostKind) { in getIntImmCost() argument
144 TTI::TargetCostKind CostKind, in getIntImmCostInst() argument
221 return getIntImmCost(Imm, Ty, CostKind); in getIntImmCostInst()
231 TTI::TargetCostKind CostKind) { in getIntImmCostIntrin() argument
294 RISCVTTIImpl::getConstantPoolLoadCost(Type *Ty, TTI::TargetCostKind CostKind) { in getConstantPoolLoadCost() argument
299 /*AddressSpace=*/0, CostKind); in getConstantPoolLoadCost()
314 TTI::TargetCostKind CostKind, in getShuffleCost() argument
349 LT.second, CostKind); in getShuffleCost()
359 InstructionCost IndexCost = getConstantPoolLoadCost(IdxTy, CostKind); in getShuffleCost()
361 getRISCVInstructionCost(RISCV::VRGATHER_VV, LT.second, CostKind); in getShuffleCost()
377 InstructionCost IndexCost = getConstantPoolLoadCost(IdxTy, CostKind); in getShuffleCost()
378 InstructionCost MaskCost = getConstantPoolLoadCost(MaskTy, CostKind); in getShuffleCost()
381 LT.second, CostKind) + in getShuffleCost()
417 SubVecTy, SubMask, CostKind, 0, nullptr); in getShuffleCost()
438 getRISCVInstructionCost(RISCV::VSLIDEDOWN_VI, LT.second, CostKind); in getShuffleCost()
444 getRISCVInstructionCost(RISCV::VSLIDEUP_VI, LT.second, CostKind); in getShuffleCost()
457 LT.second, CostKind)); in getShuffleCost()
472 LT.second, CostKind)); in getShuffleCost()
488 LT.second, CostKind)); in getShuffleCost()
495 getRISCVInstructionCost(RISCV::VMV_V_X, LT.second, CostKind); in getShuffleCost()
501 getRISCVInstructionCost(RISCV::VRGATHER_VI, LT.second, CostKind); in getShuffleCost()
512 return LT.first * getRISCVInstructionCost(Opcodes, LT.second, CostKind); in getShuffleCost()
535 2 + getRISCVInstructionCost(RISCV::VRGATHER_VV, LT.second, CostKind); in getShuffleCost()
541 return BaseT::getShuffleCost(Kind, Tp, Mask, CostKind, Index, SubTp); in getShuffleCost()
547 TTI::TargetCostKind CostKind) { in getMaskedMemoryOpCost() argument
549 CostKind != TTI::TCK_RecipThroughput) in getMaskedMemoryOpCost()
551 CostKind); in getMaskedMemoryOpCost()
553 return getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, CostKind); in getMaskedMemoryOpCost()
558 Align Alignment, unsigned AddressSpace, TTI::TargetCostKind CostKind, in getInterleavedMemoryOpCost() argument
564 getMemoryOpCost(Opcode, VecTy, Alignment, AddressSpace, CostKind); in getInterleavedMemoryOpCost()
585 Opcode, LegalFVTy, Alignment, AddressSpace, CostKind); in getInterleavedMemoryOpCost()
604 CostKind, 0, nullptr, {}); in getInterleavedMemoryOpCost()
622 Alignment, AddressSpace, CostKind, in getInterleavedMemoryOpCost()
631 CostKind, 0, nullptr, {}); in getInterleavedMemoryOpCost()
637 Align Alignment, TTI::TargetCostKind CostKind, const Instruction *I) { in getGatherScatterOpCost() argument
638 if (CostKind != TTI::TCK_RecipThroughput) in getGatherScatterOpCost()
640 Alignment, CostKind, I); in getGatherScatterOpCost()
647 Alignment, CostKind, I); in getGatherScatterOpCost()
654 getMemoryOpCost(Opcode, VTy.getElementType(), Alignment, 0, CostKind, in getGatherScatterOpCost()
735 TTI::TargetCostKind CostKind) { in getIntrinsicInstrCost() argument
836 return BaseT::getIntrinsicInstrCost(ICA, CostKind); in getIntrinsicInstrCost()
842 TTI::TargetCostKind CostKind, in getCastInstrCost() argument
847 return BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I); in getCastInstrCost()
852 return BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I); in getCastInstrCost()
913 return BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I); in getCastInstrCost()
929 TTI::TargetCostKind CostKind) { in getMinMaxReductionCost() argument
931 return BaseT::getMinMaxReductionCost(IID, Ty, FMF, CostKind); in getMinMaxReductionCost()
935 return BaseT::getMinMaxReductionCost(IID, Ty, FMF, CostKind); in getMinMaxReductionCost()
946 if (CostKind == TTI::TCK_CodeSize) in getMinMaxReductionCost()
956 TTI::TargetCostKind CostKind) { in getArithmeticReductionCost() argument
958 return BaseT::getArithmeticReductionCost(Opcode, Ty, FMF, CostKind); in getArithmeticReductionCost()
962 return BaseT::getArithmeticReductionCost(Opcode, Ty, FMF, CostKind); in getArithmeticReductionCost()
969 return BaseT::getArithmeticReductionCost(Opcode, Ty, FMF, CostKind); in getArithmeticReductionCost()
979 if (CostKind == TTI::TCK_CodeSize) in getArithmeticReductionCost()
990 FastMathFlags FMF, TTI::TargetCostKind CostKind) { in getExtendedReductionCost() argument
993 FMF, CostKind); in getExtendedReductionCost()
998 FMF, CostKind); in getExtendedReductionCost()
1002 FMF, CostKind); in getExtendedReductionCost()
1008 FMF, CostKind); in getExtendedReductionCost()
1011 getArithmeticReductionCost(Opcode, ValTy, FMF, CostKind); in getExtendedReductionCost()
1016 TTI::TargetCostKind CostKind) { in getStoreImmCost() argument
1030 return getConstantPoolLoadCost(Ty, CostKind); in getStoreImmCost()
1037 TTI::TargetCostKind CostKind, in getMemoryOpCost() argument
1044 CostKind, OpInfo, I); in getMemoryOpCost()
1048 Cost += getStoreImmCost(Src, OpInfo, CostKind); in getMemoryOpCost()
1051 CostKind, OpInfo, I); in getMemoryOpCost()
1056 LT.second.isVector() && CostKind != TTI::TCK_CodeSize) in getMemoryOpCost()
1065 TTI::TargetCostKind CostKind, in getCmpSelInstrCost() argument
1067 if (CostKind != TTI::TCK_RecipThroughput) in getCmpSelInstrCost()
1068 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, in getCmpSelInstrCost()
1072 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, in getCmpSelInstrCost()
1077 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, in getCmpSelInstrCost()
1123 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, in getCmpSelInstrCost()
1142 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, I); in getCmpSelInstrCost()
1146 TTI::TargetCostKind CostKind, in getCFInstrCost() argument
1148 if (CostKind != TTI::TCK_RecipThroughput) in getCFInstrCost()
1155 TTI::TargetCostKind CostKind, in getVectorInstrCost() argument
1162 return BaseT::getVectorInstrCost(Opcode, Val, CostKind, Index, Op0, Op1); in getVectorInstrCost()
1181 getMemoryOpCost(Instruction::Load, ElemTy, Align, 0, CostKind); in getVectorInstrCost()
1183 getMemoryOpCost(Instruction::Store, ElemTy, Align, 0, CostKind); in getVectorInstrCost()
1194 return BaseT::getVectorInstrCost(Opcode, Val, CostKind, Index, Op0, Op1); in getVectorInstrCost()
1204 TTI::CastContextHint::None, CostKind); in getVectorInstrCost()
1206 = getVectorInstrCost(Opcode, WideTy, CostKind, Index, nullptr, nullptr); in getVectorInstrCost()
1211 TTI::CastContextHint::None, CostKind); in getVectorInstrCost()
1213 = getVectorInstrCost(Opcode, WideTy, CostKind, Index, nullptr, nullptr); in getVectorInstrCost()
1216 TTI::CastContextHint::None, CostKind); in getVectorInstrCost()
1269 unsigned Opcode, Type *Ty, TTI::TargetCostKind CostKind, in getArithmeticInstrCost() argument
1274 if (CostKind != TTI::TCK_RecipThroughput) in getArithmeticInstrCost()
1275 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, Op2Info, in getArithmeticInstrCost()
1279 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, Op2Info, in getArithmeticInstrCost()
1284 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, Op2Info, in getArithmeticInstrCost()
1292 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, Op2Info, in getArithmeticInstrCost()
1306 return getConstantPoolLoadCost(Ty, CostKind); in getArithmeticInstrCost()
1336 BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, Op2Info, in getArithmeticInstrCost()
1345 TTI::TargetCostKind CostKind) { in getPointersChainCost() argument
1377 Cost += getArithmeticInstrCost(Instruction::Add, GEP->getType(), CostKind, in getPointersChainCost()
1384 Indices, AccessTy, CostKind); in getPointersChainCost()