|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/ADT/APSInt.h 279 return APSInt(static_cast<const APInt&>(*this) - RHS, IsUnsigned);
include/llvm/CodeGen/BasicTTIImpl.h 374 (MaxCaseVal - MinCaseVal)
include/llvm/CodeGen/TargetLowering.h 1026 uint64_t Range = (High - Low).getLimitedValue(UINT64_MAX - 1) + 1;
lib/Analysis/BasicAliasAnalysis.cpp 1511 (Modulo - ModOffset).uge(V1Size.getValue()))
2022 APInt MinDiff = V0Offset - V1Offset, Wrapped = -MinDiff;
lib/Analysis/DependenceAnalysis.cpp 1551 TU = minAPInt(TU, floorOfQuotient(UM - X, TMUL));
1559 TL = maxAPInt(TL, ceilingOfQuotient(UM - X, TMUL));
1570 TU = minAPInt(TU, floorOfQuotient(UM - Y, TMUL));
1578 TL = maxAPInt(TL, ceilingOfQuotient(UM - Y, TMUL));
1595 TMUL = AM - BM;
1597 TL = maxAPInt(TL, ceilingOfQuotient(X - Y + 1, TMUL));
1601 TU = minAPInt(TU, floorOfQuotient(X - Y + 1, TMUL));
1614 TL = maxAPInt(TL, ceilingOfQuotient(X - Y, TMUL));
1618 TU = minAPInt(TU, floorOfQuotient(X - Y, TMUL));
1621 TMUL = BM - AM;
1623 TL = maxAPInt(TL, ceilingOfQuotient(Y - X, TMUL));
1627 TU = minAPInt(TU, floorOfQuotient(Y - X, TMUL));
1640 TL = maxAPInt(TL, ceilingOfQuotient(Y - X + 1, TMUL));
1644 TU = minAPInt(TU, floorOfQuotient(Y - X + 1, TMUL));
1959 TU = minAPInt(TU, floorOfQuotient(SrcUM - X, TMUL));
1967 TL = maxAPInt(TL, ceilingOfQuotient(SrcUM - X, TMUL));
1978 TU = minAPInt(TU, floorOfQuotient(DstUM - Y, TMUL));
1986 TL = maxAPInt(TL, ceilingOfQuotient(DstUM - Y, TMUL));
lib/Analysis/InstructionSimplify.cpp 1630 const APInt Delta = *C1 - *C0;
1703 const APInt Delta = *C1 - *C0;
lib/Analysis/MemoryBuiltins.cpp 484 return Data.first - Data.second;
lib/Analysis/ScalarEvolution.cpp 1832 getAddRecExpr(getConstant(C - D), Step, L, AR->getNoWrapFlags());
2164 getAddRecExpr(getConstant(C - D), Step, L, AR->getNoWrapFlags());
3240 LHS = getAddRecExpr(getConstant(StartInt - StartRem), Step,
8482 APInt B = 2 * M - A;
9901 return M - L;
9922 return C2->getAPInt() - C1->getAPInt();
9995 FoundRHSLimit = APInt::getSignedMinValue(getTypeSizeInBits(RHS->getType())) - *RDiff;
10495 return (std::move(MaxValue) - MaxStrideMinusOne).slt(MaxRHS);
10503 return (std::move(MaxValue) - MaxStrideMinusOne).ult(MaxRHS);
10574 MaxBECount = computeBECount(getConstant(MaxEnd - MinStart) /* Delta */,
10787 : computeBECount(getConstant(MaxStart - MinEnd),
lib/Analysis/ValueTracking.cpp 5604 Upper = APInt::getMaxValue(Width) - *C + 1;
5620 Lower = APInt::getSignedMinValue(Width) - *C;
5625 Upper = APInt::getSignedMaxValue(Width) - *C + 1;
lib/CodeGen/AsmPrinter/AsmPrinter.cpp 2278 int64_t Addend = (LHSOffset - RHSOffset).getSExtValue();
lib/CodeGen/CodeGenPrepare.cpp 6894 APInt NewIdx = UGEPIIdx->getValue() - GEPIIdx->getValue();
6905 UGEPIIdx->getValue() - GEPIIdx->getValue());
lib/CodeGen/GlobalISel/IRTranslator.cpp 554 *ConstantInt::get(SValue.getType(), JTH.Last - JTH.First));
607 auto Diff = MIB.buildConstant(CmpTy, High - Low);
lib/CodeGen/GlobalISel/Utils.cpp 365 return C1 - C2;
lib/CodeGen/InterleavedLoadCombinePass.cpp 551 return Polynomial(A - o.A, std::max(ErrorMSBs, o.ErrorMSBs));
lib/CodeGen/SelectionDAG/DAGCombiner.cpp 4523 if ((C0Val - C1Val).isPowerOf2()) {
4528 SDValue MaskC = DAG.getConstant(~(C0Val - C1Val), DL, OpVT);
13705 else CNV = CNV - Offset1;
lib/CodeGen/SelectionDAG/SelectionDAG.cpp 4698 case ISD::SUB: return std::make_pair(C1 - C2, true);
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp 2369 DAG.getConstant(High-Low, dl, VT), ISD::SETULE);
2450 Sub, DAG.getConstant(JTH.Last - JTH.First, dl, VT), ISD::SETUGT);
lib/CodeGen/SelectionDAG/TargetLowering.cpp 3806 DAG.getConstant(RHSC->getAPIntValue()-
3829 DAG.getConstant(SUBC->getAPIntValue() -
4588 Factor *= APInt(Divisor.getBitWidth(), 2) - t;
lib/CodeGen/SwitchLoweringUtils.cpp 30 return (HighCase - LowCase).getLimitedValue((UINT64_MAX - 1) / 100) + 1;
72 TotalCases[i] = (Hi - Lo).getLimitedValue() + 1;
211 uint64_t Gap = (Low - PreviousHigh).getLimitedValue() - 1;
215 uint64_t ClusterSize = (High - Low).getLimitedValue() + 1;
408 CmpRange = High - Low;
425 uint64_t Lo = (Clusters[i].Low->getValue() - LowBound).getZExtValue();
426 uint64_t Hi = (Clusters[i].High->getValue() - LowBound).getZExtValue();
478 (CaseVal->getValue() - Clusters[DstIndex - 1].High->getValue()) == 1) {
lib/ExecutionEngine/ExecutionEngine.cpp 800 case Instruction::Sub: GV.IntVal = LHS.IntVal - RHS.IntVal; break;
lib/ExecutionEngine/Interpreter/Execution.cpp 787 case Instruction::Sub: INTEGER_VECTOR_OPERATION(-) break;
824 case Instruction::Sub: R.IntVal = Src1.IntVal - Src2.IntVal; break;
2074 case Instruction::Sub: Dest.IntVal = Op0.IntVal - Op1.IntVal; break;
lib/IR/ConstantFold.cpp 1229 return ConstantInt::get(CI1->getContext(), C1V - C2V);
lib/IR/ConstantRange.cpp 251 SMin.isNegative() ? SignedMinVal - SMin : SignedMinVal,
252 SMax.isStrictlyPositive() ? SignedMinVal - SMax : SignedMinVal);
335 return (Upper - Lower).ult(Other.Upper - Other.Lower);
335 return (Upper - Lower).ult(Other.Upper - Other.Lower);
346 return (Upper - Lower).ugt(MaxSize);
420 return ConstantRange(Lower - Val, Upper - Val);
420 return ConstantRange(Lower - Val, Upper - Val);
912 APInt NewLower = getLower() - Other.getUpper() + 1;
913 APInt NewUpper = getUpper() - Other.getLower();
1397 Min.sgt(SignedMax - OtherMin))
1400 Max.slt(SignedMin - OtherMax))
1404 Max.sgt(SignedMax - OtherMax))
1407 Min.slt(SignedMin - OtherMin))
lib/Support/APInt.cpp 1141 APInt midpoint((nextSquare - square).udiv(two));
1142 APInt offset(*this - square);
1222 r1 = r1 - anc;
1228 r2 = r2 - ad;
1230 delta = ad - r2;
1255 nc = allOnes - (allOnes - d).urem(d);
1263 if (r1.uge(nc - r1)) {
1265 r1 = r1 + r1 - nc; // update r1
1271 if ((r2 + 1).uge(d - r2)) {
1274 r2 = r2+r2 + 1 - d; // update r2
1281 delta = d - 1 - r2;
1945 APInt Res = *this - RHS;
1952 APInt Res = *this-RHS;
2917 return V.isNegative() ? V+T : V+(A-T);
lib/Target/Mips/MipsSEISelLowering.cpp 767 if ((Val - Floor).ule(Ceil - Val)) {
767 if ((Val - Floor).ule(Ceil - Val)) {
769 WorkStack.push_back(Val - Floor);
772 WorkStack.push_back(Ceil - Val);
815 if ((C - Floor).ule(Ceil - C)) {
815 if ((C - Floor).ule(Ceil - C)) {
817 SDValue Op1 = genConstMult(X, C - Floor, DL, VT, ShiftTy, DAG);
824 SDValue Op1 = genConstMult(X, Ceil - C, DL, VT, ShiftTy, DAG);
lib/Target/X86/X86ISelLowering.cpp37645 APInt Diff = TrueC->getAPIntValue() - FalseC->getAPIntValue();
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp 184 Constant *HiMinusLo = ConstantInt::get(Ty, Hi - Lo);
2241 APInt RangeDiff = LRangeLow.sgt(RRangeLow) ? LRangeLow - RRangeLow
2242 : RRangeLow - LRangeLow;
lib/Transforms/InstCombine/InstCombineCompares.cpp 1114 APInt::getMaxValue(C.getBitWidth()) - C);
1135 ConstantInt::get(X->getType(), SMax - C));
3428 const APInt KeptBits = BitWidth - MaskedBits;
3830 ConstantInt *C3 = Builder.getInt(AP1 - AP2);
3834 ConstantInt *C3 = Builder.getInt(AP2 - AP1);
lib/Transforms/InstCombine/InstCombineSelect.cpp 1992 ConstantInt::get(X->getType(), *C2 - *C1));
lib/Transforms/Scalar/ConstantHoisting.cpp 627 APInt Diff = ConstCand->ConstInt->getValue() - ConstInt->getValue();
678 APInt Diff = CC->ConstInt->getValue() - MinValItr->ConstInt->getValue();
lib/Transforms/Scalar/GuardWidening.cpp 728 if ((MaxOffset->getValue() - MinOffset->getValue())
732 APInt MaxDiff = MaxOffset->getValue() - MinOffset->getValue();
735 return (HighOffset - RC.getOffsetValue()).ult(MaxDiff);
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp 577 APInt IndexOffset = Idx - BasisIdx;
lib/Transforms/Utils/SimplifyCFG.cpp 4994 uint64_t Idx = (CaseVal->getValue() - Offset->getValue()).getLimitedValue();
5040 APInt Dist = Val - PrevVal;
5361 APInt RangeSpread = MaxCaseVal->getValue() - MinCaseVal->getValue();
5450 uint64_t Idx = (ResultList[I].first->getValue() - MinCaseVal->getValue())
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp 362 APInt OffsetDelta = OffsetB - OffsetA;
371 APInt BaseDelta = PtrDelta - OffsetDelta;
tools/clang/lib/StaticAnalyzer/Core/LoopUnrolling.cpp 223 maxStep = (BoundNum - InitNum + 1).abs().getZExtValue();
225 maxStep = (BoundNum - InitNum).abs().getZExtValue();
tools/lldb/source/Utility/Scalar.cpp 2156 result.m_integer = a->m_integer - b->m_integer;
tools/polly/lib/Analysis/ScopInfo.cpp 758 const auto UB = isWrapping ? (Range.getUpper() - One) : Range.getSignedMax();
unittests/ADT/APIntTest.cpp 251 EXPECT_EQ(neg_two, neg_one - one);
252 EXPECT_EQ(two, one - neg_one);
253 EXPECT_EQ(zero, one - one);
688 APInt SubLL = Two - One;
695 APInt SubRL = getRValue("2", RawDataL) - One;
725 APInt SubLL = HighOneLowOne - AllOnes;
733 APInt SubRL = getRValue("100000000000000000000000000000001", RawDataL) -