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