Lines Matching defs:C2V
799 const APInt &C2V = CI2->getValue();
804 return ConstantInt::get(C1->getType(), C1V + C2V);
806 return ConstantInt::get(C1->getType(), C1V - C2V);
808 return ConstantInt::get(C1->getType(), C1V * C2V);
811 return ConstantInt::get(CI1->getType(), C1V.udiv(C2V));
814 if (C2V.isAllOnes() && C1V.isMinSignedValue())
816 return ConstantInt::get(CI1->getType(), C1V.sdiv(C2V));
819 return ConstantInt::get(C1->getType(), C1V.urem(C2V));
822 if (C2V.isAllOnes() && C1V.isMinSignedValue())
824 return ConstantInt::get(C1->getType(), C1V.srem(C2V));
826 return ConstantInt::get(C1->getType(), C1V & C2V);
828 return ConstantInt::get(C1->getType(), C1V | C2V);
830 return ConstantInt::get(C1->getType(), C1V ^ C2V);
832 if (C2V.ult(C1V.getBitWidth()))
833 return ConstantInt::get(C1->getType(), C1V.shl(C2V));
836 if (C2V.ult(C1V.getBitWidth()))
837 return ConstantInt::get(C1->getType(), C1V.lshr(C2V));
840 if (C2V.ult(C1V.getBitWidth()))
841 return ConstantInt::get(C1->getType(), C1V.ashr(C2V));
852 const APFloat &C2V = CFP2->getValueAPF();
858 (void)C3V.add(C2V, APFloat::rmNearestTiesToEven);
861 (void)C3V.subtract(C2V, APFloat::rmNearestTiesToEven);
864 (void)C3V.multiply(C2V, APFloat::rmNearestTiesToEven);
867 (void)C3V.divide(C2V, APFloat::rmNearestTiesToEven);
870 (void)C3V.mod(C2V);
1170 const APFloat &C2V = cast<ConstantFP>(C2)->getValueAPF();
1171 return ConstantInt::get(ResultTy, FCmpInst::compare(C1V, C2V, Predicate));