Lines Matching refs:CostKind
178 unsigned Opcode, Type *Ty, TTI::TargetCostKind CostKind, in getArithmeticInstrCost() argument
184 if (CostKind != TTI::TCK_RecipThroughput) in getArithmeticInstrCost()
185 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, in getArithmeticInstrCost()
196 CostKind) + in getArithmeticInstrCost()
199 CostKind) + in getArithmeticInstrCost()
200 getArithmeticInstrCost(Opcode, WideVecTy, CostKind, Op1Info, Op2Info, in getArithmeticInstrCost()
245 return getArithmeticInstrCost(Instruction::Shl, Ty, CostKind, Op1Info, in getArithmeticInstrCost()
258 2 * getArithmeticInstrCost(Instruction::AShr, Ty, CostKind, Op1Info, in getArithmeticInstrCost()
261 Cost += getArithmeticInstrCost(Instruction::LShr, Ty, CostKind, Op1Info, in getArithmeticInstrCost()
264 Cost += getArithmeticInstrCost(Instruction::Add, Ty, CostKind, Op1Info, in getArithmeticInstrCost()
270 Cost += getArithmeticInstrCost(Instruction::Mul, Ty, CostKind, Op1Info, in getArithmeticInstrCost()
272 Cost += getArithmeticInstrCost(Instruction::Sub, Ty, CostKind, Op1Info, in getArithmeticInstrCost()
285 return getArithmeticInstrCost(Instruction::LShr, Ty, CostKind, Op1Info, in getArithmeticInstrCost()
289 return getArithmeticInstrCost(Instruction::And, Ty, CostKind, Op1Info, in getArithmeticInstrCost()
713 return getArithmeticInstrCost(Instruction::Mul, Ty, CostKind, in getArithmeticInstrCost()
726 return getArithmeticInstrCost(Instruction::Mul, Ty, CostKind, in getArithmeticInstrCost()
1076 Opcode, Ty->getScalarType(), CostKind, Op1Info, Op2Info, in getArithmeticInstrCost()
1082 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, Op2Info); in getArithmeticInstrCost()
1658 TTI::TargetCostKind CostKind, in getCastInstrCost() argument
1664 auto AdjustCost = [&CostKind](InstructionCost Cost) -> InstructionCost { in getCastInstrCost()
1665 if (CostKind != TTI::TCK_RecipThroughput) in getCastInstrCost()
2602 ExtCost = getCastInstrCost(ExtOpc, ExtSrc, Src, CCH, CostKind); in getCastInstrCost()
2605 TTI::CastContextHint::None, CostKind); in getCastInstrCost()
2613 return getCastInstrCost(Instruction::FPToSI, TruncDst, Src, CCH, CostKind) + in getCastInstrCost()
2615 TTI::CastContextHint::None, CostKind); in getCastInstrCost()
2619 BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I)); in getCastInstrCost()
2625 TTI::TargetCostKind CostKind, in getCmpSelInstrCost() argument
2628 if (CostKind != TTI::TCK_RecipThroughput) in getCmpSelInstrCost()
2629 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, in getCmpSelInstrCost()
2848 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, I); in getCmpSelInstrCost()
2855 TTI::TargetCostKind CostKind) { in getTypeBasedIntrinsicInstrCost() argument
3537 return BaseT::getIntrinsicInstrCost(ICA, CostKind); in getTypeBasedIntrinsicInstrCost()
3542 TTI::TargetCostKind CostKind) { in getIntrinsicInstrCost() argument
3544 return getTypeBasedIntrinsicInstrCost(ICA, CostKind); in getIntrinsicInstrCost()
3657 return BaseT::getIntrinsicInstrCost(ICA, CostKind); in getIntrinsicInstrCost()
3935 TTI::TargetCostKind CostKind) { in getReplicationShuffleCost() argument
3942 DemandedDstElts, CostKind); in getReplicationShuffleCost()
4006 TargetTransformInfo::CastContextHint::None, CostKind); in getReplicationShuffleCost()
4010 TargetTransformInfo::CastContextHint::None, CostKind); in getReplicationShuffleCost()
4013 DemandedDstElts, CostKind); in getReplicationShuffleCost()
4044 TTI::TargetCostKind CostKind, in getMemoryOpCost() argument
4047 if (CostKind != TTI::TCK_RecipThroughput) { in getMemoryOpCost()
4064 CostKind); in getMemoryOpCost()
4100 CostKind); in getMemoryOpCost()
4111 CostKind); in getMemoryOpCost()
4198 TTI::TargetCostKind CostKind) { in getMaskedMemoryOpCost() argument
4205 return getMemoryOpCost(Opcode, SrcTy, Alignment, AddressSpace, CostKind); in getMaskedMemoryOpCost()
4218 CmpInst::BAD_ICMP_PREDICATE, CostKind); in getMaskedMemoryOpCost()
4219 InstructionCost BranchCost = getCFInstrCost(Instruction::Br, CostKind); in getMaskedMemoryOpCost()
4225 Alignment, AddressSpace, CostKind); in getMaskedMemoryOpCost()
4285 TTI::TargetCostKind CostKind) { in getArithmeticReductionCost() argument
4287 return BaseT::getArithmeticReductionCost(Opcode, ValTy, FMF, CostKind); in getArithmeticReductionCost()
4358 CostKind) + in getArithmeticReductionCost()
4359 getArithmeticReductionCost(Opcode, WideVecTy, FMF, CostKind); in getArithmeticReductionCost()
4368 ArithmeticCost = getArithmeticInstrCost(Opcode, SingleOpTy, CostKind); in getArithmeticReductionCost()
4438 ArithmeticCost = getArithmeticInstrCost(Opcode, SingleOpTy, CostKind); in getArithmeticReductionCost()
4455 return BaseT::getArithmeticReductionCost(Opcode, ValVTy, FMF, CostKind); in getArithmeticReductionCost()
4464 return BaseT::getArithmeticReductionCost(Opcode, ValVTy, FMF, CostKind); in getArithmeticReductionCost()
4474 ReductionCost = getArithmeticInstrCost(Opcode, Ty, CostKind); in getArithmeticReductionCost()
4518 Instruction::LShr, ShiftTy, CostKind, in getArithmeticReductionCost()
4525 ReductionCost += getArithmeticInstrCost(Opcode, Ty, CostKind); in getArithmeticReductionCost()
4650 TTI::TargetCostKind CostKind = TTI::TCK_RecipThroughput; in getMinMaxCost() local
4654 CostKind) + in getMinMaxCost()
4656 CmpInst::BAD_ICMP_PREDICATE, CostKind); in getMinMaxCost()
4663 TTI::TargetCostKind CostKind) { in getMinMaxReductionCost() argument
4779 return BaseT::getMinMaxReductionCost(ValTy, CondTy, IsUnsigned, CostKind); in getMinMaxReductionCost()
4847 TTI::TargetCostKind CostKind) { in getIntImmCost() argument
4883 TTI::TargetCostKind CostKind, in getIntImmCostInst() argument
4971 InstructionCost Cost = X86TTIImpl::getIntImmCost(Imm, Ty, CostKind); in getIntImmCostInst()
4977 return X86TTIImpl::getIntImmCost(Imm, Ty, CostKind); in getIntImmCostInst()
4982 TTI::TargetCostKind CostKind) { in getIntImmCostIntrin() argument
5013 return X86TTIImpl::getIntImmCost(Imm, Ty, CostKind); in getIntImmCostIntrin()
5017 TTI::TargetCostKind CostKind, in getCFInstrCost() argument
5019 if (CostKind != TTI::TCK_RecipThroughput) in getCFInstrCost()
5130 TTI::TargetCostKind CostKind = TTI::TCK_RecipThroughput; in getGSScalarCost() local
5140 CmpInst::BAD_ICMP_PREDICATE, CostKind); in getGSScalarCost()
5141 InstructionCost BranchCost = getCFInstrCost(Instruction::Br, CostKind); in getGSScalarCost()
5152 AddressSpace, CostKind); in getGSScalarCost()
5167 Align Alignment, TTI::TargetCostKind CostKind, in getGatherScatterOpCost() argument
5169 if (CostKind != TTI::TCK_RecipThroughput) { in getGatherScatterOpCost()
5180 Alignment, CostKind, I); in getGatherScatterOpCost()
5529 TTI::TargetCostKind CostKind, bool UseMaskForCond, bool UseMaskForGaps) { in getInterleavedMemoryOpCostAVX512() argument
5548 AddressSpace, CostKind); in getInterleavedMemoryOpCostAVX512()
5551 AddressSpace, CostKind); in getInterleavedMemoryOpCostAVX512()
5571 CostKind); in getInterleavedMemoryOpCostAVX512()
5580 MaskCost += getArithmeticInstrCost(BinaryOperator::And, MaskVT, CostKind); in getInterleavedMemoryOpCostAVX512()
5682 Align Alignment, unsigned AddressSpace, TTI::TargetCostKind CostKind, in getInterleavedMemoryOpCost() argument
5698 AddressSpace, CostKind, UseMaskForCond, UseMaskForGaps); in getInterleavedMemoryOpCost()
5702 Alignment, AddressSpace, CostKind, in getInterleavedMemoryOpCost()
5721 Alignment, AddressSpace, CostKind); in getInterleavedMemoryOpCost()
5733 Opcode, VecTy, MaybeAlign(Alignment), AddressSpace, CostKind); in getInterleavedMemoryOpCost()
5739 Alignment, AddressSpace, CostKind); in getInterleavedMemoryOpCost()
5989 Alignment, AddressSpace, CostKind, in getInterleavedMemoryOpCost()