Lines Matching defs:C2V
810 const APInt &C2V = CI2->getValue();
815 return ConstantInt::get(CI1->getContext(), C1V + C2V);
817 return ConstantInt::get(CI1->getContext(), C1V - C2V);
819 return ConstantInt::get(CI1->getContext(), C1V * C2V);
822 return ConstantInt::get(CI1->getContext(), C1V.udiv(C2V));
825 if (C2V.isAllOnes() && C1V.isMinSignedValue())
827 return ConstantInt::get(CI1->getContext(), C1V.sdiv(C2V));
830 return ConstantInt::get(CI1->getContext(), C1V.urem(C2V));
833 if (C2V.isAllOnes() && C1V.isMinSignedValue())
835 return ConstantInt::get(CI1->getContext(), C1V.srem(C2V));
837 return ConstantInt::get(CI1->getContext(), C1V & C2V);
839 return ConstantInt::get(CI1->getContext(), C1V | C2V);
841 return ConstantInt::get(CI1->getContext(), C1V ^ C2V);
843 if (C2V.ult(C1V.getBitWidth()))
844 return ConstantInt::get(CI1->getContext(), C1V.shl(C2V));
847 if (C2V.ult(C1V.getBitWidth()))
848 return ConstantInt::get(CI1->getContext(), C1V.lshr(C2V));
851 if (C2V.ult(C1V.getBitWidth()))
852 return ConstantInt::get(CI1->getContext(), C1V.ashr(C2V));
873 const APFloat &C2V = CFP2->getValueAPF();
879 (void)C3V.add(C2V, APFloat::rmNearestTiesToEven);
882 (void)C3V.subtract(C2V, APFloat::rmNearestTiesToEven);
885 (void)C3V.multiply(C2V, APFloat::rmNearestTiesToEven);
888 (void)C3V.divide(C2V, APFloat::rmNearestTiesToEven);
891 (void)C3V.mod(C2V);
1194 const APFloat &C2V = cast<ConstantFP>(C2)->getValueAPF();
1195 return ConstantInt::get(ResultTy, FCmpInst::compare(C1V, C2V, Predicate));