Lines Matching refs:C1V
1129 const APInt &C1V = CI1->getValue(); in ConstantFoldBinaryInstruction() local
1135 return ConstantInt::get(CI1->getContext(), C1V + C2V); in ConstantFoldBinaryInstruction()
1137 return ConstantInt::get(CI1->getContext(), C1V - C2V); in ConstantFoldBinaryInstruction()
1139 return ConstantInt::get(CI1->getContext(), C1V * C2V); in ConstantFoldBinaryInstruction()
1142 return ConstantInt::get(CI1->getContext(), C1V.udiv(C2V)); in ConstantFoldBinaryInstruction()
1145 if (C2V.isAllOnes() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction()
1147 return ConstantInt::get(CI1->getContext(), C1V.sdiv(C2V)); in ConstantFoldBinaryInstruction()
1150 return ConstantInt::get(CI1->getContext(), C1V.urem(C2V)); in ConstantFoldBinaryInstruction()
1153 if (C2V.isAllOnes() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction()
1155 return ConstantInt::get(CI1->getContext(), C1V.srem(C2V)); in ConstantFoldBinaryInstruction()
1157 return ConstantInt::get(CI1->getContext(), C1V & C2V); in ConstantFoldBinaryInstruction()
1159 return ConstantInt::get(CI1->getContext(), C1V | C2V); in ConstantFoldBinaryInstruction()
1161 return ConstantInt::get(CI1->getContext(), C1V ^ C2V); in ConstantFoldBinaryInstruction()
1163 if (C2V.ult(C1V.getBitWidth())) in ConstantFoldBinaryInstruction()
1164 return ConstantInt::get(CI1->getContext(), C1V.shl(C2V)); in ConstantFoldBinaryInstruction()
1167 if (C2V.ult(C1V.getBitWidth())) in ConstantFoldBinaryInstruction()
1168 return ConstantInt::get(CI1->getContext(), C1V.lshr(C2V)); in ConstantFoldBinaryInstruction()
1171 if (C2V.ult(C1V.getBitWidth())) in ConstantFoldBinaryInstruction()
1172 return ConstantInt::get(CI1->getContext(), C1V.ashr(C2V)); in ConstantFoldBinaryInstruction()
1192 const APFloat &C1V = CFP1->getValueAPF(); in ConstantFoldBinaryInstruction() local
1194 APFloat C3V = C1V; // copy for modification in ConstantFoldBinaryInstruction()
1674 const APFloat &C1V = cast<ConstantFP>(C1)->getValueAPF(); in ConstantFoldCompareInstruction() local
1676 return ConstantInt::get(ResultTy, FCmpInst::compare(C1V, C2V, Predicate)); in ConstantFoldCompareInstruction()