Lines Matching refs:Cost

269   InstructionCost Cost = TTIImpl->getInstructionCost(U, Operands, CostKind);  in getInstructionCost()  local
270 assert((CostKind == TTI::TCK_RecipThroughput || Cost >= 0) && in getInstructionCost()
272 return Cost; in getInstructionCost()
523 InstructionCost Cost = TTIImpl->getScalingFactorCost( in getScalingFactorCost() local
525 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getScalingFactorCost()
526 return Cost; in getScalingFactorCost()
653 InstructionCost Cost = TTIImpl->getFPOpCost(Ty); in getFPOpCost() local
654 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getFPOpCost()
655 return Cost; in getFPOpCost()
662 InstructionCost Cost = TTIImpl->getIntImmCodeSizeCost(Opcode, Idx, Imm, Ty); in getIntImmCodeSizeCost() local
663 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getIntImmCodeSizeCost()
664 return Cost; in getIntImmCodeSizeCost()
670 InstructionCost Cost = TTIImpl->getIntImmCost(Imm, Ty, CostKind); in getIntImmCost() local
671 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getIntImmCost()
672 return Cost; in getIntImmCost()
678 InstructionCost Cost = in getIntImmCostInst() local
680 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getIntImmCostInst()
681 return Cost; in getIntImmCostInst()
688 InstructionCost Cost = in getIntImmCostIntrin() local
690 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getIntImmCostIntrin()
691 return Cost; in getIntImmCostIntrin()
871 InstructionCost Cost = in getArithmeticInstrCost() local
875 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getArithmeticInstrCost()
876 return Cost; in getArithmeticInstrCost()
882 InstructionCost Cost = in getAltInstrCost() local
884 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getAltInstrCost()
885 return Cost; in getAltInstrCost()
892 InstructionCost Cost = in getShuffleCost() local
894 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getShuffleCost()
895 return Cost; in getShuffleCost()
947 InstructionCost Cost = in getCastInstrCost() local
949 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getCastInstrCost()
950 return Cost; in getCastInstrCost()
955 InstructionCost Cost = in getExtractWithExtendCost() local
957 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getExtractWithExtendCost()
958 return Cost; in getExtractWithExtendCost()
965 InstructionCost Cost = TTIImpl->getCFInstrCost(Opcode, CostKind, I); in getCFInstrCost() local
966 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getCFInstrCost()
967 return Cost; in getCFInstrCost()
975 InstructionCost Cost = in getCmpSelInstrCost() local
977 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getCmpSelInstrCost()
978 return Cost; in getCmpSelInstrCost()
987 InstructionCost Cost = in getVectorInstrCost() local
989 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getVectorInstrCost()
990 return Cost; in getVectorInstrCost()
1000 InstructionCost Cost = TTIImpl->getVectorInstrCost(I, Val, CostKind, Index); in getVectorInstrCost() local
1001 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getVectorInstrCost()
1002 return Cost; in getVectorInstrCost()
1008 InstructionCost Cost = TTIImpl->getReplicationShuffleCost( in getReplicationShuffleCost() local
1010 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getReplicationShuffleCost()
1011 return Cost; in getReplicationShuffleCost()
1020 InstructionCost Cost = TTIImpl->getMemoryOpCost( in getMemoryOpCost() local
1022 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getMemoryOpCost()
1023 return Cost; in getMemoryOpCost()
1029 InstructionCost Cost = TTIImpl->getMaskedMemoryOpCost(Opcode, Src, Alignment, in getMaskedMemoryOpCost() local
1031 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getMaskedMemoryOpCost()
1032 return Cost; in getMaskedMemoryOpCost()
1038 InstructionCost Cost = TTIImpl->getGatherScatterOpCost( in getGatherScatterOpCost() local
1040 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getGatherScatterOpCost()
1041 return Cost; in getGatherScatterOpCost()
1048 InstructionCost Cost = TTIImpl->getInterleavedMemoryOpCost( in getInterleavedMemoryOpCost() local
1051 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getInterleavedMemoryOpCost()
1052 return Cost; in getInterleavedMemoryOpCost()
1058 InstructionCost Cost = TTIImpl->getIntrinsicInstrCost(ICA, CostKind); in getIntrinsicInstrCost() local
1059 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getIntrinsicInstrCost()
1060 return Cost; in getIntrinsicInstrCost()
1067 InstructionCost Cost = TTIImpl->getCallInstrCost(F, RetTy, Tys, CostKind); in getCallInstrCost() local
1068 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getCallInstrCost()
1069 return Cost; in getCallInstrCost()
1079 InstructionCost Cost = TTIImpl->getAddressComputationCost(Tp, SE, Ptr); in getAddressComputationCost() local
1080 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getAddressComputationCost()
1081 return Cost; in getAddressComputationCost()
1085 InstructionCost Cost = TTIImpl->getMemcpyCost(I); in getMemcpyCost() local
1086 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getMemcpyCost()
1087 return Cost; in getMemcpyCost()
1097 InstructionCost Cost = in getArithmeticReductionCost() local
1099 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getArithmeticReductionCost()
1100 return Cost; in getArithmeticReductionCost()
1106 InstructionCost Cost = in getMinMaxReductionCost() local
1108 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getMinMaxReductionCost()
1109 return Cost; in getMinMaxReductionCost()