Lines Matching refs:Cost

270   InstructionCost Cost = TTIImpl->getInstructionCost(U, Operands, CostKind);  in getInstructionCost()  local
271 assert((CostKind == TTI::TCK_RecipThroughput || Cost >= 0) && in getInstructionCost()
273 return Cost; in getInstructionCost()
549 InstructionCost Cost = TTIImpl->getScalingFactorCost( in getScalingFactorCost() local
551 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getScalingFactorCost()
552 return Cost; in getScalingFactorCost()
679 InstructionCost Cost = TTIImpl->getFPOpCost(Ty); in getFPOpCost() local
680 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getFPOpCost()
681 return Cost; in getFPOpCost()
688 InstructionCost Cost = TTIImpl->getIntImmCodeSizeCost(Opcode, Idx, Imm, Ty); in getIntImmCodeSizeCost() local
689 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getIntImmCodeSizeCost()
690 return Cost; in getIntImmCodeSizeCost()
696 InstructionCost Cost = TTIImpl->getIntImmCost(Imm, Ty, CostKind); in getIntImmCost() local
697 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getIntImmCost()
698 return Cost; in getIntImmCost()
704 InstructionCost Cost = in getIntImmCostInst() local
706 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getIntImmCostInst()
707 return Cost; in getIntImmCostInst()
714 InstructionCost Cost = in getIntImmCostIntrin() local
716 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getIntImmCostIntrin()
717 return Cost; in getIntImmCostIntrin()
916 InstructionCost Cost = in getArithmeticInstrCost() local
920 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getArithmeticInstrCost()
921 return Cost; in getArithmeticInstrCost()
927 InstructionCost Cost = in getAltInstrCost() local
929 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getAltInstrCost()
930 return Cost; in getAltInstrCost()
937 InstructionCost Cost = TTIImpl->getShuffleCost(Kind, Ty, Mask, CostKind, in getShuffleCost() local
939 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getShuffleCost()
940 return Cost; in getShuffleCost()
992 InstructionCost Cost = in getCastInstrCost() local
994 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getCastInstrCost()
995 return Cost; in getCastInstrCost()
1000 InstructionCost Cost = in getExtractWithExtendCost() local
1002 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getExtractWithExtendCost()
1003 return Cost; in getExtractWithExtendCost()
1010 InstructionCost Cost = TTIImpl->getCFInstrCost(Opcode, CostKind, I); in getCFInstrCost() local
1011 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getCFInstrCost()
1012 return Cost; in getCFInstrCost()
1020 InstructionCost Cost = in getCmpSelInstrCost() local
1022 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getCmpSelInstrCost()
1023 return Cost; in getCmpSelInstrCost()
1032 InstructionCost Cost = in getVectorInstrCost() local
1034 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getVectorInstrCost()
1035 return Cost; in getVectorInstrCost()
1045 InstructionCost Cost = TTIImpl->getVectorInstrCost(I, Val, CostKind, Index); in getVectorInstrCost() local
1046 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getVectorInstrCost()
1047 return Cost; in getVectorInstrCost()
1053 InstructionCost Cost = TTIImpl->getReplicationShuffleCost( in getReplicationShuffleCost() local
1055 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getReplicationShuffleCost()
1056 return Cost; in getReplicationShuffleCost()
1065 InstructionCost Cost = TTIImpl->getMemoryOpCost( in getMemoryOpCost() local
1067 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getMemoryOpCost()
1068 return Cost; in getMemoryOpCost()
1074 InstructionCost Cost = TTIImpl->getMaskedMemoryOpCost(Opcode, Src, Alignment, in getMaskedMemoryOpCost() local
1076 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getMaskedMemoryOpCost()
1077 return Cost; in getMaskedMemoryOpCost()
1083 InstructionCost Cost = TTIImpl->getGatherScatterOpCost( in getGatherScatterOpCost() local
1085 assert((!Cost.isValid() || Cost >= 0) && in getGatherScatterOpCost()
1087 return Cost; in getGatherScatterOpCost()
1093 InstructionCost Cost = TTIImpl->getStridedMemoryOpCost( in getStridedMemoryOpCost() local
1095 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getStridedMemoryOpCost()
1096 return Cost; in getStridedMemoryOpCost()
1103 InstructionCost Cost = TTIImpl->getInterleavedMemoryOpCost( in getInterleavedMemoryOpCost() local
1106 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getInterleavedMemoryOpCost()
1107 return Cost; in getInterleavedMemoryOpCost()
1113 InstructionCost Cost = TTIImpl->getIntrinsicInstrCost(ICA, CostKind); in getIntrinsicInstrCost() local
1114 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getIntrinsicInstrCost()
1115 return Cost; in getIntrinsicInstrCost()
1122 InstructionCost Cost = TTIImpl->getCallInstrCost(F, RetTy, Tys, CostKind); in getCallInstrCost() local
1123 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getCallInstrCost()
1124 return Cost; in getCallInstrCost()
1134 InstructionCost Cost = TTIImpl->getAddressComputationCost(Tp, SE, Ptr); in getAddressComputationCost() local
1135 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getAddressComputationCost()
1136 return Cost; in getAddressComputationCost()
1140 InstructionCost Cost = TTIImpl->getMemcpyCost(I); in getMemcpyCost() local
1141 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getMemcpyCost()
1142 return Cost; in getMemcpyCost()
1152 InstructionCost Cost = in getArithmeticReductionCost() local
1154 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getArithmeticReductionCost()
1155 return Cost; in getArithmeticReductionCost()
1161 InstructionCost Cost = in getMinMaxReductionCost() local
1163 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getMinMaxReductionCost()
1164 return Cost; in getMinMaxReductionCost()