Home | History | Annotate | Download | only in Analysis

Lines Matching full:apint

35 // Subtract, or Multiply, with both APInt's and SCEV's.
503 APInt Xtop = C1B2_C2B1->getValue()->getValue();
504 APInt Xbot = A1B2_A2B1->getValue()->getValue();
505 APInt Ytop = C1A2_C2A1->getValue()->getValue();
506 APInt Ybot = A2B1_A1B2->getValue()->getValue();
511 APInt Xq = Xtop; // these need to be initialized, even
512 APInt Xr = Xtop; // though they're just going to be overwritten
513 APInt::sdivrem(Xtop, Xbot, Xq, Xr);
514 APInt Yq = Ytop;
515 APInt Yr = Ytop;
516 APInt::sdivrem(Ytop, Ybot, Yq, Yr);
530 APInt UpperBound = CUB->getValue()->getValue();
1067 APInt ConstDelta = cast<SCEVConstant>(Delta)->getValue()->getValue();
1068 APInt ConstCoeff = cast<SCEVConstant>(Coeff)->getValue()->getValue();
1069 APInt Distance = ConstDelta; // these need to be initialized
1070 APInt Remainder = ConstDelta;
1071 APInt::sdivrem(ConstDelta, ConstCoeff, Distance, Remainder);
1261 APInt APDelta = ConstDelta->getValue()->getValue();
1262 APInt APCoeff = ConstCoeff->getValue()->getValue();
1263 APInt Distance = APDelta; // these need to be initialzed
1264 APInt Remainder = APDelta;
1265 APInt::sdivrem(APDelta, APCoeff, Distance, Remainder);
1276 APInt Two = APInt(Distance.getBitWidth(), 2, true);
1299 bool findGCD(unsigned Bits, APInt AM, APInt BM, APInt Delta,
1300 APInt &G, APInt &X, APInt &Y) {
1301 APInt A0(Bits, 1, true), A1(Bits, 0, true);
1302 APInt B0(Bits, 0, true), B1(Bits, 1, true);
1303 APInt G0 = AM.abs();
1304 APInt G1 = BM.abs();
1305 APInt Q = G0; // these need to be initialized
1306 APInt R = G0;
1307 APInt::sdivrem(G0, G1, Q, R);
1309 APInt A2 = A0 - Q*A1; A0 = A1; A1 = A2;
1310 APInt B2 = B0 - Q*B1; B0 = B1; B1 = B2;
1312 APInt::sdivrem(G0, G1, Q, R);
1331 APInt floorOfQuotient(APInt A, APInt B) {
1332 APInt Q = A; // these need to be initialized
1333 APInt R = A;
1334 APInt::sdivrem(A, B, Q, R);
1346 APInt ceilingOfQuotient(APInt A, APInt B) {
1347 APInt Q = A; // these need to be initialized
1348 APInt R = A;
1349 APInt::sdivrem(A, B, Q, R);
1361 APInt maxAPInt(APInt A, APInt B) {
1367 APInt minAPInt(APInt A, APInt B) {
1415 APInt G, X, Y;
1416 APInt AM = ConstSrcCoeff->getValue()->getValue();
1417 APInt BM = ConstDstCoeff->getValue()->getValue();
1429 APInt UM(Bits, 1, true);
1439 APInt TU(APInt::getSignedMaxValue(Bits));
1440 APInt TL(APInt::getSignedMinValue(Bits));
1443 APInt TMUL = BM.sdiv(G);
1489 APInt SaveTU(TU); // save these
1490 APInt SaveTL(TL);
1562 APInt ConstDividend = Dividend->getValue()->getValue();
1563 APInt ConstDivisor = Divisor->getValue()->getValue();
1819 APInt G, X, Y;
1820 APInt AM = ConstSrcCoeff->getValue()->getValue();
1821 APInt BM = ConstDstCoeff->getValue()->getValue();
1832 APInt SrcUM(Bits, 1, true);
1842 APInt DstUM(Bits, 1, true);
1852 APInt TU(APInt::getSignedMaxValue(Bits));
1853 APInt TL(APInt::getSignedMinValue(Bits));
1856 APInt TMUL = BM.sdiv(G);
2243 APInt RunningGCD = APInt::getNullValue(BitWidth);
2260 APInt ConstCoeff = Constant->getValue()->getValue();
2281 APInt ConstCoeff = Constant->getValue()->getValue();
2287 APInt ExtraGCD = APInt::getNullValue(BitWidth);
2305 APInt ConstOpValue = ConstOp->getValue()->getValue();
2315 APInt ConstDelta = cast<SCEVConstant>(Constant)->getValue()->getValue();
2321 APInt Remainder = ConstDelta.srem(RunningGCD);
2363 APInt ConstCoeff = Constant->getValue()->getValue();
2381 APInt ConstCoeff = Constant->getValue()->getValue();
2398 APInt ConstCoeff = Constant->getValue()->getValue();
3063 APInt Beta = Bconst->getValue()->getValue();
3064 APInt
3065 APInt CdivB = Charlie.sdiv(Beta);
3078 APInt Alpha = Aconst->getValue()->getValue();
3079 APInt Charlie = Cconst->getValue()->getValue();
3080 APInt CdivA = Charlie.sdiv(Alpha);
3092 APInt Alpha = Aconst->getValue()->getValue();
3093 APInt Charlie = Cconst->getValue()->getValue();
3094 APInt CdivA = Charlie.sdiv(Alpha);