reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/ADT/APSInt.h
  275     return APSInt(static_cast<const APInt&>(*this) + RHS, IsUnsigned);
lib/Analysis/BasicAliasAnalysis.cpp
 1288   APInt ObjectBaseOffset = DecompObject.StructOffset +
 1324   APInt GEP1BaseOffset = DecompGEP1.StructOffset + DecompGEP1.OtherOffset;
 1325   APInt GEP2BaseOffset = DecompGEP2.StructOffset + DecompGEP2.OtherOffset;
lib/Analysis/ConstantFolding.cpp
  910     Constant *C = ConstantInt::get(Ptr->getContext(), Offset + BasePtr);
lib/Analysis/LazyValueInfo.cpp
  961         return ConstantInt::get(A->getType(), A->getValue() + B->getValue());
lib/Analysis/MemoryBuiltins.cpp
  753   return std::make_pair(PtrData.first, PtrData.second + Offset);
lib/Analysis/ScalarEvolution.cpp
 2432       Ops[0] = getConstant(LHSC->getAPInt() + RHSC->getAPInt());
10519     return (std::move(MinValue) + MaxStrideMinusOne).sgt(MinRHS);
10527   return (std::move(MinValue) + MaxStrideMinusOne).ugt(MinRHS);
10841     APInt ExitVal = (End + A).udiv(A);
lib/Analysis/ValueTracking.cpp
 5433           Upper = APInt::getSignedMaxValue(Width) + *C + 1;
 5436           Lower = APInt::getSignedMinValue(Width) + *C;
 5590         Upper = APInt::getSignedMaxValue(Width) + *C + 1;
 5593         Lower = APInt::getSignedMinValue(Width) + *C;
lib/CodeGen/GlobalISel/Utils.cpp
  351       return C1 + C2;
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  906   const APInt CombinedValueIntVal = C1APIntVal + C2APIntVal;
 6094       Width = PosC->getAPIntValue() + NegC->getAPIntValue();
 6218     return (LHS->getAPIntValue() + RHS->getAPIntValue()) == EltSizeInBits;
 7097     if ((*ShiftAmtVal + C1Val).uge(V.getScalarValueSizeInBits()))
 7117   SDValue ShiftSumC = DAG.getConstant(*C0Val + C1Val, DL, ShiftAmtVT);
 7350       return (c1 + c2).uge(OpSizeInBits);
 7360       return (c1 + c2).ult(OpSizeInBits);
 7389              (c1 + c2).uge(OpSizeInBits);
 7402              (c1 + c2).ult(OpSizeInBits);
 7588       APInt Sum = c1 + c2;
 7759       return (c1 + c2).uge(OpSizeInBits);
 7769       return (c1 + c2).ult(OpSizeInBits);
13704     if (X1 * Y0 * Y1 < 0) CNV = CNV + Offset1;
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 4697   case ISD::ADD:  return std::make_pair(C1 + C2, true);
lib/ExecutionEngine/ExecutionEngine.cpp
  799           case Instruction::Add: GV.IntVal = LHS.IntVal + RHS.IntVal; break;
lib/ExecutionEngine/Interpreter/Execution.cpp
  786     case Instruction::Add:   INTEGER_VECTOR_OPERATION(+) break;
  823     case Instruction::Add:   R.IntVal = Src1.IntVal + Src2.IntVal; break;
 2073   case Instruction::Add:  Dest.IntVal = Op0.IntVal + Op1.IntVal; break;
lib/IR/ConstantFold.cpp
 1227         return ConstantInt::get(CI1->getContext(), C1V + C2V);
lib/IR/ConstantRange.cpp
  262         SMax.isStrictlyPositive() ? SignedMinVal + SMax : SignedMinVal,
  263         SMin.isNegative() ? SignedMinVal + SMin : SignedMinVal);
  841   APInt NewLower = getLower() + Other.getLower();
  842   APInt NewUpper = getUpper() + Other.getUpper() - 1;
 1443       Min.sgt(SignedMax + OtherMax))
 1446       Max.slt(SignedMin + OtherMin))
 1450       Max.sgt(SignedMax + OtherMin))
 1453       Min.slt(SignedMin + OtherMax))
lib/Support/APInt.cpp
 1124     x_new = (this->udiv(x_old) + x_old).udiv(two);
 1264       q1 = q1 + q1 + 1;  // update q1
 1265       r1 = r1 + r1 - nc; // update r1
 1268       q1 = q1+q1; // update q1
 1269       r1 = r1+r1; // update r1
 1273       q2 = q2+q2 + 1;     // update q2
 1274       r2 = r2+r2 + 1 - d; // update r2
 1278       q2 = q2+q2;     // update q2
 1279       r2 = r2+r2 + 1; // update r2
 1932   APInt Res = *this+RHS;
 1939   APInt Res = *this+RHS;
 2917     return V.isNegative() ? V+T : V+(A-T);
 2992     APInt::sdivrem(-B + SQ, TwoA, X, Rem);
 3013   APInt VX = (A*X + B)*X + C;
 3013   APInt VX = (A*X + B)*X + C;
 3014   APInt VY = VX + TwoA*X + A + B;
 3014   APInt VY = VX + TwoA*X + A + B;
lib/Support/KnownBits.cpp
   25   APInt PossibleSumOne = LHS.One + RHS.One + CarryOne;
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
 2236         APInt RRangeHigh = RRangeLow + LHSC->getValue();
 2238         APInt LRangeHigh = LRangeLow + LHSC->getValue();
 2340       if (RHSC->getValue() + AddC->getValue() == LHSC->getValue())
 3104         Constant *NewC = ConstantInt::get(I.getType(), *C + *RHSC);
 3109         Constant *NewC = ConstantInt::get(I.getType(), *C + *RHSC);
lib/Transforms/Scalar/GuardWidening.cpp
  668       APInt NewOffset = Check.getOffsetValue() + OpRHS->getValue();
  676         APInt NewOffset = Check.getOffsetValue() + OpRHS->getValue();
tools/lldb/source/Utility/Scalar.cpp
 1811       m_integer = a->m_integer + b->m_integer;
 2122       result.m_integer = a->m_integer + b->m_integer;
tools/polly/lib/Analysis/ScopInfo.cpp
  761   auto Max = UB.sdiv(APInt(BW, ElementSize)) + One;
unittests/ADT/APIntTest.cpp
  246   EXPECT_EQ(two, one + one);
  247   EXPECT_EQ(zero, neg_one + one);
  248   EXPECT_EQ(neg_two, neg_one + neg_one);
  616     APInt AddLL = One + One;
  623     APInt AddRL = getRValue("1", RawDataL) + One;
  653     APInt AddLL = AllOnes + Two;
  660     APInt AddRL = getRValue("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF", RawDataL) + Two;
  914   auto p = a * b + c;
 1006   auto p = a * b + c;
unittests/Support/KnownBitsTest.cpp
   62               APInt Add = N1 + N2;