Lines Matching refs:Cost
52 int Cost = TTIImpl->getOperationCost(Opcode, Ty, OpTy); in getOperationCost() local
53 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getOperationCost()
54 return Cost; in getOperationCost()
58 int Cost = TTIImpl->getCallCost(FTy, NumArgs); in getCallCost() local
59 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getCallCost()
60 return Cost; in getCallCost()
65 int Cost = TTIImpl->getCallCost(F, Arguments); in getCallCost() local
66 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getCallCost()
67 return Cost; in getCallCost()
81 int Cost = TTIImpl->getIntrinsicCost(IID, RetTy, Arguments); in getIntrinsicCost() local
82 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getIntrinsicCost()
83 return Cost; in getIntrinsicCost()
87 int Cost = TTIImpl->getUserCost(U); in getUserCost() local
88 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getUserCost()
89 return Cost; in getUserCost()
147 int Cost = TTIImpl->getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg, in getScalingFactorCost() local
149 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getScalingFactorCost()
150 return Cost; in getScalingFactorCost()
207 int Cost = TTIImpl->getFPOpCost(Ty); in getFPOpCost() local
208 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getFPOpCost()
209 return Cost; in getFPOpCost()
215 int Cost = TTIImpl->getIntImmCodeSizeCost(Opcode, Idx, Imm, Ty); in getIntImmCodeSizeCost() local
216 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getIntImmCodeSizeCost()
217 return Cost; in getIntImmCodeSizeCost()
221 int Cost = TTIImpl->getIntImmCost(Imm, Ty); in getIntImmCost() local
222 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getIntImmCost()
223 return Cost; in getIntImmCost()
228 int Cost = TTIImpl->getIntImmCost(Opcode, Idx, Imm, Ty); in getIntImmCost() local
229 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getIntImmCost()
230 return Cost; in getIntImmCost()
235 int Cost = TTIImpl->getIntImmCost(IID, Idx, Imm, Ty); in getIntImmCost() local
236 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getIntImmCost()
237 return Cost; in getIntImmCost()
276 int Cost = TTIImpl->getArithmeticInstrCost(Opcode, Ty, Opd1Info, Opd2Info, in getArithmeticInstrCost() local
278 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getArithmeticInstrCost()
279 return Cost; in getArithmeticInstrCost()
284 int Cost = TTIImpl->getShuffleCost(Kind, Ty, Index, SubTp); in getShuffleCost() local
285 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getShuffleCost()
286 return Cost; in getShuffleCost()
291 int Cost = TTIImpl->getCastInstrCost(Opcode, Dst, Src); in getCastInstrCost() local
292 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getCastInstrCost()
293 return Cost; in getCastInstrCost()
299 int Cost = TTIImpl->getExtractWithExtendCost(Opcode, Dst, VecTy, Index); in getExtractWithExtendCost() local
300 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getExtractWithExtendCost()
301 return Cost; in getExtractWithExtendCost()
305 int Cost = TTIImpl->getCFInstrCost(Opcode); in getCFInstrCost() local
306 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getCFInstrCost()
307 return Cost; in getCFInstrCost()
312 int Cost = TTIImpl->getCmpSelInstrCost(Opcode, ValTy, CondTy); in getCmpSelInstrCost() local
313 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getCmpSelInstrCost()
314 return Cost; in getCmpSelInstrCost()
319 int Cost = TTIImpl->getVectorInstrCost(Opcode, Val, Index); in getVectorInstrCost() local
320 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getVectorInstrCost()
321 return Cost; in getVectorInstrCost()
327 int Cost = TTIImpl->getMemoryOpCost(Opcode, Src, Alignment, AddressSpace); in getMemoryOpCost() local
328 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getMemoryOpCost()
329 return Cost; in getMemoryOpCost()
335 int Cost = in getMaskedMemoryOpCost() local
337 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getMaskedMemoryOpCost()
338 return Cost; in getMaskedMemoryOpCost()
344 int Cost = TTIImpl->getGatherScatterOpCost(Opcode, DataTy, Ptr, VariableMask, in getGatherScatterOpCost() local
346 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getGatherScatterOpCost()
347 return Cost; in getGatherScatterOpCost()
353 int Cost = TTIImpl->getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices, in getInterleavedMemoryOpCost() local
355 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getInterleavedMemoryOpCost()
356 return Cost; in getInterleavedMemoryOpCost()
362 int Cost = TTIImpl->getIntrinsicInstrCost(ID, RetTy, Tys, FMF); in getIntrinsicInstrCost() local
363 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getIntrinsicInstrCost()
364 return Cost; in getIntrinsicInstrCost()
370 int Cost = TTIImpl->getIntrinsicInstrCost(ID, RetTy, Args, FMF); in getIntrinsicInstrCost() local
371 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getIntrinsicInstrCost()
372 return Cost; in getIntrinsicInstrCost()
377 int Cost = TTIImpl->getCallInstrCost(F, RetTy, Tys); in getCallInstrCost() local
378 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getCallInstrCost()
379 return Cost; in getCallInstrCost()
388 int Cost = TTIImpl->getAddressComputationCost(Tp, IsComplex); in getAddressComputationCost() local
389 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getAddressComputationCost()
390 return Cost; in getAddressComputationCost()
395 int Cost = TTIImpl->getReductionCost(Opcode, Ty, IsPairwiseForm); in getReductionCost() local
396 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getReductionCost()
397 return Cost; in getReductionCost()