Lines Matching full:cost
51 int Cost = TTIImpl->getOperationCost(Opcode, Ty, OpTy);
52 assert(Cost >= 0 && "TTI should not produce negative costs!");
53 return Cost;
57 int Cost = TTIImpl->getCallCost(FTy, NumArgs);
58 assert(Cost >= 0 && "TTI should not produce negative costs!");
59 return Cost;
64 int Cost = TTIImpl->getCallCost(F, Arguments);
65 assert(Cost >= 0 && "TTI should not produce negative costs!");
66 return Cost;
71 int Cost = TTIImpl->getIntrinsicCost(IID, RetTy, Arguments);
72 assert(Cost >= 0 && "TTI should not produce negative costs!");
73 return Cost;
77 int Cost = TTIImpl->getUserCost(U);
78 assert(Cost >= 0 && "TTI should not produce negative costs!");
79 return Cost;
137 int Cost = TTIImpl->getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg,
139 assert(Cost >= 0 && "TTI should not produce negative costs!");
140 return Cost;
185 int Cost = TTIImpl->getFPOpCost(Ty);
186 assert(Cost >= 0 && "TTI should not produce negative costs!");
187 return Cost;
191 int Cost = TTIImpl->getIntImmCost(Imm, Ty);
192 assert(Cost >= 0 && "TTI should not produce negative costs!");
193 return Cost;
198 int Cost = TTIImpl->getIntImmCost(Opcode, Idx, Imm, Ty);
199 assert(Cost >= 0 && "TTI should not produce negative costs!");
200 return Cost;
205 int Cost = TTIImpl->getIntImmCost(IID, Idx, Imm, Ty);
206 assert(Cost >= 0 && "TTI should not produce negative costs!");
207 return Cost;
226 int Cost = TTIImpl->getArithmeticInstrCost(Opcode, Ty, Opd1Info, Opd2Info,
228 assert(Cost >= 0 && "TTI should not produce negative costs!");
229 return Cost;
234 int Cost = TTIImpl->getShuffleCost(Kind, Ty, Index, SubTp);
235 assert(Cost >= 0 && "TTI should not produce negative costs!");
236 return Cost;
241 int Cost = TTIImpl->getCastInstrCost(Opcode, Dst, Src);
242 assert(Cost >= 0 && "TTI should not produce negative costs!");
243 return Cost;
247 int Cost = TTIImpl->getCFInstrCost(Opcode);
248 assert(Cost >= 0 && "TTI should not produce negative costs!");
249 return Cost;
254 int Cost = TTIImpl->getCmpSelInstrCost(Opcode, ValTy, CondTy);
255 assert(Cost >= 0 && "TTI should not produce negative costs!");
256 return Cost;
261 int Cost = TTIImpl->getVectorInstrCost(Opcode, Val, Index);
262 assert(Cost >= 0 && "TTI should not produce negative costs!");
263 return Cost;
269 int Cost = TTIImpl->getMemoryOpCost(Opcode, Src, Alignment, AddressSpace);
270 assert(Cost >= 0 && "TTI should not produce negative costs!");
271 return Cost;
277 int Cost =
279 assert(Cost >= 0 && "TTI should not produce negative costs!");
280 return Cost;
286 int Cost = TTIImpl->getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices,
288 assert(Cost >= 0 && "TTI should not produce negative costs!");
289 return Cost;
294 int Cost = TTIImpl->getIntrinsicInstrCost(ID, RetTy, Tys);
295 assert(Cost >= 0 && "TTI should not produce negative costs!");
296 return Cost;
301 int Cost = TTIImpl->getCallInstrCost(F, RetTy, Tys);
302 assert(Cost >= 0 && "TTI should not produce negative costs!");
303 return Cost;
312 int Cost = TTIImpl->getAddressComputationCost(Tp, IsComplex);
313 assert(Cost >= 0 && "TTI should not produce negative costs!");
314 return Cost;
319 int Cost = TTIImpl->getReductionCost(Opcode, Ty, IsPairwiseForm);
320 assert(Cost >= 0 && "TTI should not produce negative costs!");
321 return Cost;