Home | History | Annotate | Download | only in Analysis

Lines Matching refs:APInt

35 // Subtract, or Multiply, with both APInt's and SCEV's.
504 APInt Xtop = C1B2_C2B1->getValue()->getValue();
505 APInt Xbot = A1B2_A2B1->getValue()->getValue();
506 APInt Ytop = C1A2_C2A1->getValue()->getValue();
507 APInt Ybot = A2B1_A1B2->getValue()->getValue();
512 APInt Xq = Xtop; // these need to be initialized, even
513 APInt Xr = Xtop; // though they're just going to be overwritten
514 APInt::sdivrem(Xtop, Xbot, Xq, Xr);
515 APInt Yq = Ytop;
516 APInt Yr = Ytop;
517 APInt::sdivrem(Ytop, Ybot, Yq, Yr);
531 APInt UpperBound = CUB->getValue()->getValue();
1049 APInt ConstDelta = cast<SCEVConstant>(Delta)->getValue()->getValue();
1050 APInt ConstCoeff = cast<SCEVConstant>(Coeff)->getValue()->getValue();
1051 APInt Distance = ConstDelta; // these need to be initialized
1052 APInt Remainder = ConstDelta;
1053 APInt::sdivrem(ConstDelta, ConstCoeff, Distance, Remainder);
1243 APInt APDelta = ConstDelta->getValue()->getValue();
1244 APInt APCoeff = ConstCoeff->getValue()->getValue();
1245 APInt Distance = APDelta; // these need to be initialzed
1246 APInt Remainder = APDelta;
1247 APInt::sdivrem(APDelta, APCoeff, Distance, Remainder);
1258 APInt Two = APInt(Distance.getBitWidth(), 2, true);
1281 bool findGCD(unsigned Bits, APInt AM, APInt BM, APInt Delta,
1282 APInt &G, APInt &X, APInt &Y) {
1283 APInt A0(Bits, 1, true), A1(Bits, 0, true);
1284 APInt B0(Bits, 0, true), B1(Bits, 1, true);
1285 APInt G0 = AM.abs();
1286 APInt G1 = BM.abs();
1287 APInt Q = G0; // these need to be initialized
1288 APInt R = G0;
1289 APInt::sdivrem(G0, G1, Q, R);
1291 APInt A2 = A0 - Q*A1; A0 = A1; A1 = A2;
1292 APInt B2 = B0 - Q*B1; B0 = B1; B1 = B2;
1294 APInt::sdivrem(G0, G1, Q, R);
1313 APInt floorOfQuotient(APInt A, APInt B) {
1314 APInt Q = A; // these need to be initialized
1315 APInt R = A;
1316 APInt::sdivrem(A, B, Q, R);
1328 APInt ceilingOfQuotient(APInt A, APInt B) {
1329 APInt Q = A; // these need to be initialized
1330 APInt R = A;
1331 APInt::sdivrem(A, B, Q, R);
1343 APInt maxAPInt(APInt A, APInt B) {
1349 APInt minAPInt(APInt A, APInt B) {
1397 APInt G, X, Y;
1398 APInt AM = ConstSrcCoeff->getValue()->getValue();
1399 APInt BM = ConstDstCoeff->getValue()->getValue();
1411 APInt UM(Bits, 1, true);
1421 APInt TU(APInt::getSignedMaxValue(Bits));
1422 APInt TL(APInt::getSignedMinValue(Bits));
1425 APInt TMUL = BM.sdiv(G);
1471 APInt SaveTU(TU); // save these
1472 APInt SaveTL(TL);
1544 APInt ConstDividend = Dividend->getValue()->getValue();
1545 APInt ConstDivisor = Divisor->getValue()->getValue();
1801 APInt G, X, Y;
1802 APInt AM = ConstSrcCoeff->getValue()->getValue();
1803 APInt BM = ConstDstCoeff->getValue()->getValue();
1814 APInt SrcUM(Bits, 1, true);
1824 APInt DstUM(Bits, 1, true);
1834 APInt TU(APInt::getSignedMaxValue(Bits));
1835 APInt TL(APInt::getSignedMinValue(Bits));
1838 APInt TMUL = BM.sdiv(G);
2225 APInt RunningGCD = APInt::getNullValue(BitWidth);
2242 APInt ConstCoeff = Constant->getValue()->getValue();
2263 APInt ConstCoeff = Constant->getValue()->getValue();
2269 APInt ExtraGCD = APInt::getNullValue(BitWidth);
2287 APInt ConstOpValue = ConstOp->getValue()->getValue();
2297 APInt ConstDelta = cast<SCEVConstant>(Constant)->getValue()->getValue();
2303 APInt Remainder = ConstDelta.srem(RunningGCD);
2345 APInt ConstCoeff = Constant->getValue()->getValue();
2363 APInt ConstCoeff = Constant->getValue()->getValue();
2380 APInt ConstCoeff = Constant->getValue()->getValue();
3049 APInt Beta = Bconst->getValue()->getValue();
3050 APInt Charlie = Cconst->getValue()->getValue();
3051 APInt CdivB = Charlie.sdiv(Beta);
3064 APInt Alpha = Aconst->getValue()->getValue();
3065 APInt Charlie = Cconst->getValue()->getValue();
3066 APInt CdivA = Charlie.sdiv(Alpha);
3078 APInt Alpha = Aconst->getValue()->getValue();
3079 APInt Charlie = Cconst->getValue()->getValue();
3080 APInt CdivA = Charlie.sdiv(Alpha);