|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/ADT/APInt.h 660 return I1 == I2;
663 return I1 == I2.zext(I1.getBitWidth());
665 return I1.zext(I2.getBitWidth()) == I2;
1156 bool eq(const APInt &RHS) const { return (*this) == RHS; }
1164 bool operator!=(const APInt &RHS) const { return !((*this) == RHS); }
1180 bool ne(const APInt &RHS) const { return !((*this) == RHS); }
include/llvm/ADT/Optional.h 284 return *X == *Y;
include/llvm/Analysis/BasicAliasAnalysis.h 125 SExtBits == Other.SExtBits && Scale == Other.Scale;
include/llvm/IR/ConstantRange.h 85 if (Lower == Upper)
208 if (Upper == Lower + 1)
216 if (Lower == Upper + 1)
250 return Lower == CR.Lower && Upper == CR.Upper;
250 return Lower == CR.Lower && Upper == CR.Upper;
lib/Analysis/BasicAliasAnalysis.cpp 1118 if (C1->getValue().sextOrSelf(BitWidth) ==
1365 if (GEP1BaseOffset == GEP2BaseOffset &&
lib/Analysis/InstructionSimplify.cpp 1324 *ShRAmt == *ShLAmt) {
2166 if (*C1 == ~*C2) {
3771 *Y == ~*C)
3777 *Y == ~*C)
3784 *Y == *C)
3790 *Y == *C)
lib/Analysis/LoopAccessAnalysis.cpp 1220 return OffsetDelta == Size;
lib/Analysis/MemoryBuiltins.cpp 796 if (TrueResult == FalseResult) {
lib/Analysis/ScalarEvolution.cpp 6337 LCI->getValue() == CI->getValue())
6355 if (Trunc.zext(getTypeSizeInBits(UTy)) == CI->getValue() &&
9802 if (Min == C->getAPInt()) {
lib/Analysis/ValueTracking.cpp 4728 match(FalseVal, m_APInt(C2)) && ~(*C1) == *C2)
4734 match(TrueVal, m_APInt(C2)) && ~(*C1) == *C2)
lib/CodeGen/CodeGenPrepare.cpp 1325 match(B, m_APInt(CmpC)) && *AddC == -(*CmpC)) {
5748 if (AndBits == WidestAndBits && I->getOperand(0) == Load)
5815 if (cast<ConstantInt>(And->getOperand(1))->getValue() == DemandBits) {
lib/CodeGen/GlobalISel/RegisterBankInfo.cpp 565 assert((ValueMask & PartMapMask) == PartMapMask &&
lib/CodeGen/SelectionDAG/DAGCombiner.cpp 2229 (Max && Op && Max->getAPIntValue() == (-Op->getAPIntValue()));
6986 if (XorC->getAPIntValue() == Ones) {
7427 return c1.ult(VT.getScalarSizeInBits()) && (c1 == c2);
8270 if (C1Val - 1 == C2Val) {
8276 if (C1Val + 1 == C2Val) {
8473 if (C && NotC && C->getAPIntValue() == ~NotC->getAPIntValue()) {
10937 if (LogicOp1 && LogicOp1->getAPIntValue() == SignMask &&
14917 if ((Imm & Mask) == Imm) {
lib/CodeGen/SelectionDAG/SelectionDAG.cpp 2021 case ISD::SETEQ: return getBoolConstant(C1 == C2, dl, VT, OpVT);
3348 (~N1Known.Zero & 0x01) == ~N1Known.Zero)
3354 if ((~N0Known.Zero & 0x01) == ~N0Known.Zero)
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp10386 (FirstLeft->High->getValue() + 1LL) == Pivot->getValue()) {
10402 W.LT && (FirstRight->High->getValue() + 1ULL) == W.LT->getValue()) {
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp 1977 if (ActualMask == DesiredMask)
2006 if (ActualMask == DesiredMask)
lib/CodeGen/SelectionDAG/TargetLowering.cpp 1019 if ((LHSKnown.Zero & DemandedBits) ==
1034 LHSKnown.One == ~RHSC->getAPIntValue()) {
1185 if (C->getAPIntValue() == Known2.One) {
1834 DemandedBits == APInt::getSignMask(Op.getValueSizeInBits()) &&
3502 if (C1 == MinVal)
3522 if (C1 == MaxVal)
3541 if (C1 == MinVal)
3547 if (C1 == MaxVal)
3551 if (C1 == MinVal+1)
3559 if (C1 == MaxVal)
3565 if (C1 == MinVal)
3569 if (C1 == MaxVal-1)
3590 C1 == APInt::getSignedMaxValue(OperandBitSize))
3597 C1 == APInt::getSignedMinValue(OperandBitSize)) {
3629 } else if (Cond == ISD::SETEQ && C1 == AndRHS->getAPIntValue()) {
3650 if ((-AndRHSC).isPowerOf2() && (AndRHSC & C1) == C1) {
lib/CodeGen/SwitchLoweringUtils.cpp 206 NumCmps += (Low == High) ? 1 : 2;
lib/IR/ConstantFold.cpp 1139 if ((PossiblySetBits & CI2->getValue()) == PossiblySetBits)
1178 if ((CI2->getValue() & BitsNotSet) == CI2->getValue())
1866 case ICmpInst::ICMP_EQ: return ConstantInt::get(ResultTy, V1 == V2);
lib/IR/ConstantRange.cpp 305 return Lower == Upper && Lower.isMaxValue();
309 return Lower == Upper && Lower.isMinValue();
389 if (Lower == Upper)
418 if (Lower == Upper)
729 if (LowerDiv == UpperDiv)
843 if (NewLower == NewUpper)
914 if (NewLower == NewUpper)
1091 if (Upper == SignedMin + 1)
lib/IR/LLVMContextImpl.h 80 return LHS.getBitWidth() == RHS.getBitWidth() && LHS == RHS;
lib/IR/Metadata.cpp 941 return A.getUpper() == B.getLower() || A.getLower() == B.getUpper();
941 return A.getUpper() == B.getLower() || A.getLower() == B.getUpper();
lib/IR/Verifier.cpp 3318 return A.getUpper() == B.getLower() || A.getLower() == B.getUpper();
3318 return A.getUpper() == B.getLower() || A.getLower() == B.getUpper();
lib/Support/APInt.cpp 561 return *this == rotl(SplatSizeInBits);
728 if (A == B) return A;
1231 } while (q1.ult(delta) || (q1 == delta && r1 == 0));
1283 (q1.ult(delta) || (q1 == delta && r1 == 0)));
1601 if (*this == RHS)
1694 if (*this == RHS)
1800 if (LHS == RHS) {
3033 if (A == B)
lib/Support/KnownBits.cpp 37 assert((PossibleSumZero & Known) == (PossibleSumOne & Known) &&
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp 2401 APInt(BitWidth, Mask0Imm) == ~APInt(BitWidth, Mask1Imm) &&
lib/Target/AArch64/AArch64ISelLowering.cpp 7136 if (Bits.getHiBits(64) == Bits.getLoBits(64)) {
7158 if (Bits.getHiBits(64) == Bits.getLoBits(64)) {
7206 if (Bits.getHiBits(64) == Bits.getLoBits(64)) {
7245 if (Bits.getHiBits(64) == Bits.getLoBits(64)) {
7276 if (Bits.getHiBits(64) == Bits.getLoBits(64)) {
7297 if (Bits.getHiBits(64) == Bits.getLoBits(64)) {
lib/Target/ARM/ARMISelLowering.cpp12385 SplatBits0 == ~SplatBits1) {
lib/Target/Mips/MipsSEISelDAGToDAG.cpp 669 if (ImmValue == ~(~ImmValue & ~(~ImmValue + 1))) {
702 if (ImmValue == (ImmValue & ~(ImmValue + 1))) {
lib/Target/Mips/MipsSEISelLowering.cpp 630 Mask.getBitWidth() == InvMask.getBitWidth() && Mask == ~InvMask)
633 Mask.getBitWidth() == InvMask.getBitWidth() && Mask == ~InvMask)
647 Mask.getBitWidth() == InvMask.getBitWidth() && Mask == ~InvMask)
650 Mask.getBitWidth() == InvMask.getBitWidth() && Mask == ~InvMask)
lib/Target/X86/X86ISelLowering.cpp26261 if (CstSplatIndex < 0 || EltBits[i] == EltBits[CstSplatIndex]) {
31466 if (ZeroExtendMask == Mask)
37128 Cond->getAPIntValue() == (-Op->getAPIntValue() - 1));
37202 return Cond->getAPIntValue() == ~Op->getAPIntValue();
37300 if (Comparison == -Addend) {
37631 if (FalseC->getAPIntValue()+1 == TrueC->getAPIntValue()) {
39936 ISD::isConstantSplatVector(V.getOperand(1).getNode(), C) && C == Limit)
lib/Target/XCore/XCoreISelLowering.cpp 1660 if ((Known.Zero & Mask) == Mask) {
1682 if ((Known.Zero & Mask) == Mask) {
1697 if ((Known.Zero & Mask) == Mask) {
lib/Transforms/InstCombine/InstCombineAddSub.cpp 793 if (match(Y, m_Or(m_Value(Z), m_APInt(C2))) && (*C2 == ~(*C1))) {
796 } else if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && (*C1 == *C2)) {
818 if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && *C1 == (*C2 + 1)) {
904 if (match(Op0, m_Or(m_Value(), m_APInt(C2))) && *C2 == -*C)
922 C2->isMinSignedValue() && C2->sext(Ty->getScalarSizeInBits()) == *C)
1031 C0 == MulOpC) {
1042 C0 == DivOpC && !MulWillOverflow(C0, C1, IsSigned)) {
1094 *C == ~*NotC)
1235 if (XorRHS->getValue() == -RHSVal) {
1328 CRHS->getValue() == (CRHS->getValue() & C2->getValue())) {
1339 if (AddRHSHighBits == AddRHSHighBitsAnd) {
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp 518 return (C1->getValue() & C2->getValue()) == C1->getValue();
521 return (C1->getValue() & C2->getValue()) == C2->getValue();
692 if (NewMask == BCst->getValue())
694 else if (NewMask == DCst->getValue())
705 if (NewMask == BCst->getValue())
707 else if (NewMask == DCst->getValue())
846 if (*C1 == *C2 - 1) {
940 Pred == ICmpInst::ICMP_ULT && I1->ugt(*I01) && I01->shl(1) == *I1))
1299 if (LHSC->getValue() == (RHSC->getValue() - 1))
1307 if (LHSC->getValue() == (RHSC->getValue() - 1))
1325 if (RHSC->getValue() == (LHSC->getValue() + 1))
1343 if (RHSC->getValue() == (LHSC->getValue() + 1))
2215 LHSC->getValue() == (RHSC->getValue())) {
2244 if (LowRangeDiff.isPowerOf2() && LowRangeDiff == HighRangeDiff &&
2340 if (RHSC->getValue() + AddC->getValue() == LHSC->getValue())
2535 if (C1->getValue() == ~C2->getValue()) {
lib/Transforms/InstCombine/InstCombineCasts.cpp 935 if (KnownLHS.Zero == KnownRHS.Zero && KnownLHS.One == KnownRHS.One) {
935 if (KnownLHS.Zero == KnownRHS.Zero && KnownLHS.One == KnownRHS.One) {
lib/Transforms/InstCombine/InstCombineCompares.cpp 1182 if (AP1 == AP2)
1192 if (IsAShr && AP1 == AP2.ashr(Shift)) {
1198 } else if (AP1 == AP2.lshr(Shift)) {
1233 if (AP1 == AP2)
1239 if (Shift > 0 && AP2.shl(Shift) == AP1)
1613 if (*XorC == ~C && (C + 1).isPowerOf2())
1616 if (*XorC == C && (C + 1).isPowerOf2())
1621 if (*XorC == -C && C.isPowerOf2())
1625 if (*XorC == C && (-C).isPowerOf2())
1666 if (!IsAshr || (C2.shl(*C3).lshr(*C3) == C2)) {
2054 C.ashr(*ShiftAmt).shl(*ShiftAmt) == C) {
2084 C.lshr(*ShiftAmt).shl(*ShiftAmt) == C) {
2201 if (ShiftedC.ashr(ShAmtVal) == C)
2208 (ShiftedC + 1).ashr(ShAmtVal) == (C + 1))
2216 if (ShiftedC.lshr(ShAmtVal) == C)
2222 if ((ShiftedC + 1).lshr(ShAmtVal) == (C + 1))
2235 assert(((IsAShr && C.shl(ShAmtVal).ashr(ShAmtVal) == C) ||
2236 (!IsAShr && C.shl(ShAmtVal).lshr(ShAmtVal) == C)) &&
2419 if (HiBound == *C2) { // -INTMIN = INTMIN
2503 if (match(X, m_APInt(C2)) && *C2 == C && Cmp.isEquality())
2544 (*C2 & (C - 1)) == (C - 1))
2549 if (Pred == ICmpInst::ICMP_UGT && (C + 1).isPowerOf2() && (*C2 & C) == C)
2993 if (C == *BOC && C.isPowerOf2())
4966 if (!isa<Constant>(Op0) && Op0Min == Op0Max)
4968 if (!isa<Constant>(Op1) && Op1Min == Op1Max)
5034 if (Op1Min == Op0Max) // A <u B -> A != B if max(A) == min(B)
5040 if (*CmpC == Op0Min + 1)
5056 if (Op1Max == Op0Min) // A >u B -> A != B if min(A) == max(B)
5062 if (*CmpC == Op0Max - 1)
5078 if (Op1Min == Op0Max) // A <s B -> A != B if max(A) == min(B)
5082 if (*CmpC == Op0Min + 1) // A <s C -> A == C-1 if min(A)+1 == C
5093 if (Op1Max == Op0Min) // A >s B -> A != B if min(A) == max(B)
5097 if (*CmpC == Op0Max - 1) // A >s C -> A == C+1 if max(A)-1 == C
5109 if (Op1Min == Op0Max) // A >=s B -> A == B if max(A) == min(B)
5118 if (Op1Max == Op0Min) // A <=s B -> A == B if min(A) == max(B)
5127 if (Op1Min == Op0Max) // A >=u B -> A == B if max(A) == min(B)
5136 if (Op1Max == Op0Min) // A <=u B -> A == B if min(A) == max(B)
lib/Transforms/InstCombine/InstCombineSelect.cpp 740 match(FVal, m_AllOnes()) && match(Cmp1, m_APInt(CmpC)) && *CmpC == ~*C) {
1454 match(FalseVal, m_Xor(m_Specific(X), m_APInt(C))) && *Y == *C)
1458 match(TrueVal, m_Xor(m_Specific(X), m_APInt(C))) && *Y == *C)
1462 match(TrueVal, m_Xor(m_Specific(X), m_APInt(C))) && *Y == *C)
1466 match(FalseVal, m_Xor(m_Specific(X), m_APInt(C))) && *Y == *C)
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp 939 if ((BitMask1 & DemandedMask) == (BitMask2 & DemandedMask)) {
lib/Transforms/InstCombine/InstructionCombining.cpp 1239 if (CI->getValue() == Scale) {
lib/Transforms/Scalar/GuardWidening.cpp 674 if ((OpRHS->getValue() & Known.Zero) == OpRHS->getValue()) {
lib/Transforms/Scalar/LowerExpectIntrinsic.cpp 195 if (ExpectedPhiValue == ApplyOperations(CI->getValue()))
lib/Transforms/Scalar/MergeICmps.cpp 425 First.Lhs().Offset + First.SizeBits() / 8 == Second.Lhs().Offset &&
426 First.Rhs().Offset + First.SizeBits() / 8 == Second.Rhs().Offset;
lib/Transforms/Scalar/Reassociate.cpp 1068 if (FC1->getValue() == -FC2->getValue()) {
lib/Transforms/Utils/LowerSwitch.cpp 511 DefaultIsUnreachableFromSwitch = (Min + (NumSimpleCases - 1) == Max);
lib/Transforms/Utils/SimplifyCFG.cpp 549 if (Mask.isPowerOf2() && (C->getValue() & ~Mask) == C->getValue()) {
572 if (Mask.isPowerOf2() && (C->getValue() | Mask) == C->getValue()) {
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp 367 return OffsetDelta == PtrDelta;
tools/clang/lib/Basic/FixedPoint.cpp 40 if (!(Masked == Mask || Masked == 0)) {
tools/clang/lib/CodeGen/CGExprCXX.cpp 883 assert(arraySizeMultiplier == typeSizeMultiplier);
tools/clang/lib/Sema/SemaExpr.cpp 3545 if (Literal.isFract && Val == MaxVal + 1 && !ValIsZero)
9862 if (LeftBits == ResultBits - 1) {
tools/clang/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp 472 return I1 == I2;
tools/clang/tools/extra/clang-tidy/misc/RedundantExpressionCheck.cpp 94 LeftLit == RightLit;
tools/clang/tools/extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp 165 return cast<IntegerLiteral>(E1)->getValue() ==
tools/lldb/source/Utility/Scalar.cpp 2790 return a->m_integer == b->m_integer;
unittests/ADT/APIntTest.cpp 2755 if (V0 == V1)
unittests/CodeGen/MachineOperandTest.cpp 97 ASSERT_TRUE(MO.getCImm()->getValue() == Int);
unittests/IR/ConstantRangeTest.cpp 488 if (Lower1 == Upper1 + 1) {
usr/include/c++/7.4.0/bits/stl_pair.h 449 { return __x.first == __y.first && __x.second == __y.second; }
449 { return __x.first == __y.first && __x.second == __y.second; }
utils/TableGen/CodeGenSchedule.cpp 431 return P.Predicate == Predicate && P.OperandMask == OperandMask;
utils/TableGen/CodeGenSchedule.h 320 return ProcModelMask == Other.ProcModelMask &&
321 OperandMask == Other.OperandMask && Predicate == Other.Predicate;
utils/unittest/googlemock/include/gmock/gmock-matchers.h 206 bool operator()(const A& a, const B& b) const { return a == b; }
utils/unittest/googletest/include/gtest/gtest.h 1392 if (lhs == rhs) {