|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
lib/Analysis/BasicAliasAnalysis.cpp 1503 Modulo = Modulo ^ (Modulo & (Modulo - 1));
1508 APInt ModOffset = GEP1BaseOffset & (Modulo - 1);
lib/Analysis/DependenceAnalysis.cpp 1449 return Q - 1;
lib/Analysis/InstructionSimplify.cpp 4083 auto *CI = ConstantInt::get(GEPTy->getContext(), BasePtrOffset - 1);
lib/Analysis/Loads.cpp 45 return APBaseAlign.uge(APAlign) && !(Offset & (APAlign - 1));
lib/Analysis/ScalarEvolution.cpp 1574 const SCEV *PreStart = getConstant(StartAI - Delta);
5798 APInt StartUpper = StartRange.getUpper() - 1;
8623 ConstantInt *C1 = ConstantInt::get(SE.getContext(), X-1);
8651 APInt Lower = Range.getLower().sextOrSelf(A.getBitWidth()) - 1;
8800 MaxBECount = APIntOps::umin(MaxBECount, CR.getUnsignedMax() - 1);
8991 RHS = getConstant(RA - 1);
9003 RHS = getConstant(RA - 1);
10565 APInt Limit = MaxValue - (StrideForMaxBECount - 1);
10775 APInt Limit = IsSigned ? APInt::getSignedMinValue(BitWidth) + (MinStride - 1)
10776 : APInt::getMinValue(BitWidth) + (MinStride - 1);
10838 APInt End = A.sge(1) ? (Range.getUpper() - 1) : Range.getLower();
10854 ConstantInt::get(SE.getContext(), ExitVal - 1), SE)->getValue()) &&
lib/Analysis/ValueTracking.cpp 1237 APInt LowBits = RA - 1;
1271 APInt LowBits = (RA - 1);
lib/CodeGen/GlobalISel/LegalizerHelper.cpp 3066 MIRBuilder.buildConstant(AmtTy, Amt - NVTBits));
3083 MIRBuilder.buildConstant(AmtTy, Amt - NVTBits));
3104 MIRBuilder.buildConstant(AmtTy, Amt - NVTBits));
lib/CodeGen/SelectionDAG/DAGCombiner.cpp 2029 DAG.getConstant(CN->getAPIntValue() - 1, DL, VT);
2067 APInt NewC = IsAdd ? C->getAPIntValue() + 1 : C->getAPIntValue() - 1;
3418 if ((MulC - 1).isPowerOf2())
3425 MathOp == ISD::ADD ? (MulC - 1).logBase2() : (MulC + 1).logBase2();
8270 if (C1Val - 1 == C2Val) {
8644 if (C1 != C2 - 1)
19938 if (N2C && ((N2C->getAPIntValue() & (N2C->getAPIntValue() - 1)) == 0)) {
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp 1850 NVT, InL, DAG.getConstant(Amt - NVTBits, DL, ShTy));
1870 NVT, InH, DAG.getConstant(Amt - NVTBits, DL, ShTy));
1892 DAG.getConstant(Amt - NVTBits, DL, ShTy));
lib/CodeGen/SelectionDAG/SelectionDAG.cpp 3093 APInt LowBits = RA - 1;
3117 APInt LowBits = (RA - 1);
lib/CodeGen/SelectionDAG/TargetLowering.cpp 3507 APInt C = C1 - 1;
3569 if (C1 == MaxVal-1)
lib/IR/ConstantRange.cpp 367 return getUpper() - 1;
379 return getUpper() - 1;
575 APInt U = (CR.Upper - 1).ugt(Upper - 1) ? CR.Upper : Upper;
575 APInt U = (CR.Upper - 1).ugt(Upper - 1) ? CR.Upper : Upper;
842 APInt NewUpper = getUpper() + Other.getUpper() - 1;
1060 PosRes = ConstantRange(PosL.Lower.sdiv(PosR.Upper - 1),
1061 (PosL.Upper - 1).sdiv(PosR.Lower) + 1);
1070 APInt Lo = (NegL.Upper - 1).sdiv(NegR.Lower);
1081 AdjNegRUpper = NegR.Upper - 1;
1084 ConstantRange(Lo, NegL.Lower.sdiv(AdjNegRUpper - 1) + 1));
1100 AdjNegLLower.sdiv(NegR.Upper - 1) + 1));
1104 ConstantRange(std::move(Lo), NegL.Lower.sdiv(NegR.Upper - 1) + 1));
1111 NegRes = ConstantRange((PosL.Upper - 1).sdiv(NegR.Upper - 1),
1111 NegRes = ConstantRange((PosL.Upper - 1).sdiv(NegR.Upper - 1),
1118 (NegL.Upper - 1).sdiv(PosR.Upper - 1) + 1));
1118 (NegL.Upper - 1).sdiv(PosR.Upper - 1) + 1));
1138 APInt Upper = APIntOps::umin(getUnsignedMax(), RHS.getUnsignedMax() - 1) + 1;
1165 APInt Upper = APIntOps::umin(MaxLHS, MaxAbsRHS - 1) + 1;
1180 APInt Upper = APIntOps::umin(MaxLHS, MaxAbsRHS - 1) + 1;
lib/Support/APInt.cpp 1210 anc = t - 1 - t.urem(ad); // absolute value of nc
1281 delta = d - 1 - r2;
2826 return Quo - 1;
lib/Target/AArch64/AArch64ISelLowering.cpp 9428 APInt SCVMinus1 = ShiftedConstValue - 1;
9442 APInt CVNegMinus1 = -ConstValue - 1;
lib/Target/ARM/MVETailPredication.cpp 354 if (Const->getAPInt() != (VF->getValue() - 1))
lib/Target/PowerPC/PPCISelLowering.cpp15366 if ((MulAmtAbs - 1).isPowerOf2()) {
15376 DAG.getConstant((MulAmtAbs - 1).logBase2(), DL, VT));
lib/Target/X86/X86ISelLowering.cpp 4948 return (MulC + 1).isPowerOf2() || (MulC - 1).isPowerOf2() ||
37128 Cond->getAPIntValue() == (-Op->getAPIntValue() - 1));
38351 SarConst = SarConst - (Size - ShiftSize);
lib/Transforms/InstCombine/InstCombineAddSub.cpp 1334 APInt AddRHSHighBits(~((AddRHSV & -AddRHSV)-1));
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp 140 if ((AddRHS & (AndRHSV - 1)).isNullValue()) {
846 if (*C1 == *C2 - 1) {
1002 APInt SignBitsMask = ~(HighestBit - 1U);
1299 if (LHSC->getValue() == (RHSC->getValue() - 1))
1307 if (LHSC->getValue() == (RHSC->getValue() - 1))
lib/Transforms/InstCombine/InstCombineCompares.cpp 1146 ConstantInt::get(X->getType(), SMax - (C - 1)));
2064 APInt ShiftedC = (C - 1).ashr(*ShiftAmt) + 1;
2094 APInt ShiftedC = (C - 1).lshr(*ShiftAmt) + 1;
2135 Builder.CreateAnd(X, (~(C - 1)).lshr(ShiftAmt->getZExtValue()));
2206 APInt ShiftedC = (C + 1).shl(ShAmtVal) - 1;
2221 APInt ShiftedC = (C + 1).shl(ShAmtVal) - 1;
2279 Constant *MaskC = ConstantInt::get(Ty, SignMask | (*DivisorC - 1));
2396 LoBound = -(RangeSize - 1);
2544 (*C2 & (C - 1)) == (C - 1))
2544 (*C2 & (C - 1)) == (C - 1))
2545 return new ICmpInst(ICmpInst::ICMP_EQ, Builder.CreateOr(Y, C - 1), X);
2608 if (Pred == ICmpInst::ICMP_ULT && C.isPowerOf2() && (*C2 & (C - 1)) == 0)
5042 ConstantInt::get(Op1->getType(), *CmpC - 1));
5062 if (*CmpC == Op0Max - 1)
5084 ConstantInt::get(Op1->getType(), *CmpC - 1));
5097 if (*CmpC == Op0Max - 1) // A >s C -> A == C+1 if max(A)-1 == C
lib/Transforms/InstCombine/InstCombineSelect.cpp 917 AdjustedRHS = ConstantInt::get(CmpRHS->getType(), *CmpC - 1);
lib/Transforms/InstCombine/InstCombineShifts.cpp 332 Value *Rem = Builder.CreateAnd(A, ConstantInt::get(I.getType(), *B - 1),
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp 611 APInt LowBits = RA - 1;
lib/Transforms/Utils/LowerSwitch.cpp 290 NewLowerBound->getValue() - 1);
tools/clang/lib/Sema/SemaChecking.cpp 6264 if (Result.isStrictlyPositive() && (Result & (Result - 1)) == 0)
tools/clang/lib/Sema/SemaExpr.cpp 9862 if (LeftBits == ResultBits - 1) {
11249 llvm::APInt One = (LeftSideValue - 1);
unittests/ADT/APIntTest.cpp 586 EXPECT_EQ(A2 | UINT64_MAX, A2 - N + UINT64_MAX);
588 EXPECT_EQ(A2 ^ N, A2 - N);
590 EXPECT_EQ(A2 ^ 1, A2 - 1);
592 EXPECT_EQ(A2 ^ UINT64_MAX, A2 - N + ~N);
704 APInt SubLK = Two - 1;
711 APInt SubRK = getRValue("2", RawDataL) - 1;
745 APInt SubLK = HighOneLowOne - 2;
754 APInt SubRK = getRValue("100000000000000000000000000000001", RawDataL) - 2;
1737 APInt MaskVal = One.shl(I) - 1;
1755 APInt MaskVal = One.shl(I) - 1;
2333 EXPECT_EQ(GreatestCommonDivisor(MaxOver2, Max - 1), MaxOver2);
2533 EXPECT_TRUE(((Quo - 1).zext(16) * B.zext(16)).ult(Ai));
2566 EXPECT_TRUE(((Quo - 1).sext(16) * B.sext(16)).ult(A));
unittests/IR/ConstantRangeTest.cpp 1474 APInt::getSignedMaxValue(32) - 4));
1477 ConstantRange(APInt::getMinValue(32), APInt::getMinValue(32) - 5));
1497 APInt::getSignedMaxValue(32) - 4));
1500 ConstantRange(APInt::getMaxValue(32) - 1,
1507 APInt::getSignedMinValue(32) - 1));
1514 APInt::getSignedMinValue(32) - 1));