Lines Matching refs:C2V

893       const APInt &C2V = CI2->getValue();  in ConstantFoldBinaryInstruction()  local
898 return ConstantInt::get(CI1->getContext(), C1V + C2V); in ConstantFoldBinaryInstruction()
900 return ConstantInt::get(CI1->getContext(), C1V - C2V); in ConstantFoldBinaryInstruction()
902 return ConstantInt::get(CI1->getContext(), C1V * C2V); in ConstantFoldBinaryInstruction()
905 return ConstantInt::get(CI1->getContext(), C1V.udiv(C2V)); in ConstantFoldBinaryInstruction()
908 if (C2V.isAllOnes() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction()
910 return ConstantInt::get(CI1->getContext(), C1V.sdiv(C2V)); in ConstantFoldBinaryInstruction()
913 return ConstantInt::get(CI1->getContext(), C1V.urem(C2V)); in ConstantFoldBinaryInstruction()
916 if (C2V.isAllOnes() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction()
918 return ConstantInt::get(CI1->getContext(), C1V.srem(C2V)); in ConstantFoldBinaryInstruction()
920 return ConstantInt::get(CI1->getContext(), C1V & C2V); in ConstantFoldBinaryInstruction()
922 return ConstantInt::get(CI1->getContext(), C1V | C2V); in ConstantFoldBinaryInstruction()
924 return ConstantInt::get(CI1->getContext(), C1V ^ C2V); in ConstantFoldBinaryInstruction()
926 if (C2V.ult(C1V.getBitWidth())) in ConstantFoldBinaryInstruction()
927 return ConstantInt::get(CI1->getContext(), C1V.shl(C2V)); in ConstantFoldBinaryInstruction()
930 if (C2V.ult(C1V.getBitWidth())) in ConstantFoldBinaryInstruction()
931 return ConstantInt::get(CI1->getContext(), C1V.lshr(C2V)); in ConstantFoldBinaryInstruction()
934 if (C2V.ult(C1V.getBitWidth())) in ConstantFoldBinaryInstruction()
935 return ConstantInt::get(CI1->getContext(), C1V.ashr(C2V)); in ConstantFoldBinaryInstruction()
956 const APFloat &C2V = CFP2->getValueAPF(); in ConstantFoldBinaryInstruction() local
962 (void)C3V.add(C2V, APFloat::rmNearestTiesToEven); in ConstantFoldBinaryInstruction()
965 (void)C3V.subtract(C2V, APFloat::rmNearestTiesToEven); in ConstantFoldBinaryInstruction()
968 (void)C3V.multiply(C2V, APFloat::rmNearestTiesToEven); in ConstantFoldBinaryInstruction()
971 (void)C3V.divide(C2V, APFloat::rmNearestTiesToEven); in ConstantFoldBinaryInstruction()
974 (void)C3V.mod(C2V); in ConstantFoldBinaryInstruction()
1278 const APFloat &C2V = cast<ConstantFP>(C2)->getValueAPF(); in ConstantFoldCompareInstruction() local
1279 return ConstantInt::get(ResultTy, FCmpInst::compare(C1V, C2V, Predicate)); in ConstantFoldCompareInstruction()