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

References

gen/lib/Target/WebAssembly/WebAssemblyGenDAGISel.inc
21208   return (~Known0.Zero & ~Known1.Zero) == 0;
21208   return (~Known0.Zero & ~Known1.Zero) == 0;
gen/lib/Target/X86/X86GenDAGISel.inc
254124     return (~Known.Zero).isSubsetOf(CN->getAPIntValue());
254140   return (~Known0.Zero & ~Known1.Zero) == 0;
254140   return (~Known0.Zero & ~Known1.Zero) == 0;
include/llvm/ADT/APSInt.h
  282     return APSInt(~static_cast<const APInt&>(*this), IsUnsigned);
lib/Analysis/CmpInstAnalysis.cpp
  117     Mask = ~*C;
  124     Mask = ~*C;
lib/Analysis/DemandedBits.cpp
  242       AB &= ~Known2.Zero;
  244       AB &= ~(Known.Zero & ~Known2.Zero);
  244       AB &= ~(Known.Zero & ~Known2.Zero);
  255       AB &= ~Known2.One;
  257       AB &= ~(Known.One & ~Known2.One);
  257       AB &= ~(Known.One & ~Known2.One);
lib/Analysis/InstructionSimplify.cpp
 1945         (~(*Mask)).lshr(*ShAmt).isNullValue())
 1951         (~(*Mask)).shl(*ShAmt).isNullValue())
 2166     if (*C1 == ~*C2) {
 3771       *Y == ~*C)
 3777       *Y == ~*C)
lib/Analysis/ScalarEvolution.cpp
 5713       if (Known.One != ~Known.Zero + 1)
 5716                 ConstantRange(Known.One, ~Known.Zero + 1), RangeType);
 6269         if ((LZ != 0 || TZ != 0) && !((~A & ~Known.Zero) & EffectiveMask)) {
 6269         if ((LZ != 0 || TZ != 0) && !((~A & ~Known.Zero) & EffectiveMask)) {
lib/Analysis/ValueTracking.cpp
  424   Known.Zero |= (~BottomKnown).getLoBits(ResultBitsKnown);
  460     Known.Zero &= ~Range.getUnsignedMax() & Mask;
  918   if ((~Known.Zero).uge(BitWidth)) {
 1247           Known.Zero |= ~LowBits;
 1252           Known.One |= ~LowBits;
 1273         Known.Zero |= ~LowBits;
 1655     Known.Zero = ~Known.One;
 1671       Known.Zero &= ~Elt;
 1689       Known.Zero &= ~Elt;
 1815       if ((~(LHSBits.Zero & RHSBits.Zero)).isPowerOf2())
 4728       match(FalseVal, m_APInt(C2)) && ~(*C1) == *C2)
 4734       match(TrueVal, m_APInt(C2)) && ~(*C1) == *C2)
lib/CodeGen/GlobalISel/GISelKnownBits.cpp
  147     Known.Zero = ~Known.One;
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
 4253     APInt MaskVal = ~APInt::getBitsSet(DstTy.getSizeInBits(), Offset,
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
 2910     if (DAG.MaskedValueIsZero(N1, ~APInt::getSignMask(BitWidth))) {
 4528           SDValue MaskC = DAG.getConstant(~(C0Val - C1Val), DL, OpVT);
 5105     APInt Mask = ~N1C->getAPIntValue();
 5630         if (DAG.MaskedValueIsZero(N0.getOperand(0), RHSMask&~LHSMask) &&
 5631             DAG.MaskedValueIsZero(N1.getOperand(0), LHSMask&~RHSMask)) {
 5784   if (N1C && DAG.MaskedValueIsZero(N0, ~N1C->getAPIntValue()))
 7857     APInt UnknownBits = ~Known.Zero;
 7990     if (IsUndefOrZero(N0) && !IsFSHL && DAG.MaskedValueIsZero(N2, ~ModuloBits))
 7992     if (IsUndefOrZero(N1) && IsFSHL && DAG.MaskedValueIsZero(N2, ~ModuloBits))
 8473       if (C && NotC && C->getAPIntValue() == ~NotC->getAPIntValue()) {
10917     SignMask = ~APInt::getSignMask(SourceVT.getScalarSizeInBits());
11070                        NewConv, DAG.getConstant(~SignBit, DL, VT));
11140                         Cst, DAG.getConstant(~SignBit, SDLoc(Cst), VT));
13279         SignMask = ~APInt::getSignMask(N0.getScalarValueSizeInBits());
13283         SignMask = ~APInt::getSignMask(IntVT.getSizeInBits());
14783   APInt Mask = ~APInt::getBitsSet(IVal.getValueSizeInBits(),
lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
  443     DestLOI.Known.Zero = ~Val;
  476       DestLOI.Known.Zero &= ~Val;
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
 1531   SDValue ClearSignMask = DAG.getConstant(~MagAsInt.SignMask, DL, MagVT);
 1573   SDValue ClearSignMask = DAG.getConstant(~ValueAsInt.SignMask, DL, IntVT);
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
 1940                       DAG.getConstant(~HighBitMask, dl, ShTy));
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 2441     Known.Zero = ~Known.One;
 2447     Known.Zero = ~Known.One;
 2574       APInt DemandedSrcElts = DemandedElts & ~SubMask;
 2884       Known.One  &= ~NewBits;
 2887       Known.Zero &= ~NewBits;
 2889       Known.Zero &= ~NewBits;
 2890       Known.One  &= ~NewBits;
 2946                 Known.Zero &= ~Value;
 2952                 Known.Zero &= ~Value;
 2964             Known.Zero = ~Value;
 2968             Known.Zero = ~Value;
 3025     Known.Zero |= (~InMask);
 3026     Known.One  &= (~Known.Zero);
 3103           Known.Zero |= ~LowBits;
 3108           Known.One |= ~LowBits;
 3121         Known.Zero = Known2.Zero | ~LowBits;
 3196       APInt VectorElts = DemandedElts & ~(APInt::getOneBitSet(NumElts, EltIdx));
 3341     (void)(~N0Known.Zero).uadd_ov(~N1Known.Zero, overflow);
 3341     (void)(~N0Known.Zero).uadd_ov(~N1Known.Zero, overflow);
 3348       (~N1Known.Zero & 0x01) == ~N1Known.Zero)
 3348       (~N1Known.Zero & 0x01) == ~N1Known.Zero)
 3354     if ((~N0Known.Zero & 0x01) == ~N0Known.Zero)
 3354     if ((~N0Known.Zero & 0x01) == ~N0Known.Zero)
 3868       APInt DemandedSrcElts = DemandedElts & ~SubMask;
 3961   Mask = ~Mask;
 9412     if ((HighValue & ~LowUndef) != (LowValue & ~HighUndef) ||
 9412     if ((HighValue & ~LowUndef) != (LowValue & ~HighUndef) ||
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
 1986   APInt NeededMask = DesiredMask & ~ActualMask;
 2015   APInt NeededMask = DesiredMask & ~ActualMask;
lib/CodeGen/SelectionDAG/TargetLowering.cpp
  781     Known.Zero = ~Known.One;
 1020           (~RHSC->getAPIntValue() & DemandedBits))
 1025       if (ShrinkDemandedConstant(Op, ~LHSKnown.Zero & DemandedBits, TLO))
 1034           LHSKnown.One == ~RHSC->getAPIntValue()) {
 1044     if (SimplifyDemandedBits(Op0, ~Known.Zero & DemandedBits, DemandedElts,
 1073     if (ShrinkDemandedConstant(Op, ~Known2.Zero & DemandedBits, TLO))
 1093     if (SimplifyDemandedBits(Op0, ~Known.One & DemandedBits, DemandedElts,
 1187             TLO.DAG.getConstant(~C->getAPIntValue() & DemandedBits, dl, VT);
 1791     if (SimplifyDemandedBits(Op.getOperand(0), ~InMask | DemandedBits, Known,
 1796     Known.Zero |= ~InMask;
 2533     KnownUndef &= ~KnownZero;
 3815             if (DAG.MaskedValueIsZero(N0.getOperand(0), ~LHSR->getAPIntValue()))
lib/IR/ConstantRange.cpp
   67     return ConstantRange(Known.One, ~Known.Zero + 1);
   71   APInt Lower = Known.One, Upper = ~Known.Zero;
 1376   if (Min.ugt(~OtherMin))
 1378   if (Max.ugt(~OtherMax))
lib/Support/KnownBits.cpp
   24   APInt PossibleSumZero = ~LHS.Zero + ~RHS.Zero + !CarryZero;
   24   APInt PossibleSumZero = ~LHS.Zero + ~RHS.Zero + !CarryZero;
   28   APInt CarryKnownZero = ~(PossibleSumZero ^ LHS.Zero ^ RHS.Zero);
   42   KnownOut.Zero = ~std::move(PossibleSumZero) & Known;
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
 2005       Mask |= (ResultUsefulBits & ~OpUsefulBits);
 2022       Mask |= (ResultUsefulBits & ~OpUsefulBits);
 2146   uint64_t NonZeroBits = (~Known.Zero).getZExtValue();
 2152     assert((~APInt(BitWidth, AndImm) & ~Known.Zero) == 0);
 2152     assert((~APInt(BitWidth, AndImm) & ~Known.Zero) == 0);
 2225   uint64_t NotKnownZero = (~Known.Zero).getZExtValue();
 2369     if ((BitsToBeInserted & ~Known.Zero) != 0)
 2401       APInt(BitWidth, Mask0Imm) == ~APInt(BitWidth, Mask1Imm) &&
lib/Target/AArch64/AArch64ISelLowering.cpp
 7516     DefBits = ~DefBits;
 7531     DefBits = ~UndefBits;
 9855     DefBits = ~DefBits;
 9862     UndefBits = ~UndefBits;
lib/Target/ARM/ARMISelLowering.cpp
 7124       uint64_t NegatedImm = (~SplatBits).getZExtValue();
12028       SDValue Val = isVMOVModifiedImm((~SplatBits).getZExtValue(),
12385                 SplatBits0 == ~SplatBits1) {
12444   ToMask = ~cast<ConstantSDNode>(N->getOperand(2))->getAPIntValue();
12565                            DCI.DAG.getConstant(~NewToMask, dl, VT));
14027                     DAG.getConstant(~Mask, dl, VT));
lib/Target/ARM/ARMTargetTransformInfo.cpp
  123     return std::min(getIntImmCost(Imm, Ty), getIntImmCost(~Imm, Ty));
lib/Target/Hexagon/HexagonConstPropagation.cpp
 3033         if (constToInt(LS1.Value, M1) && !~M1)
 3038         if (constToInt(LS2.Value, M1) && !~M1)
lib/Target/Mips/MipsSEISelDAGToDAG.cpp
  669     if (ImmValue == ~(~ImmValue & ~(~ImmValue + 1))) {
  669     if (ImmValue == ~(~ImmValue & ~(~ImmValue + 1))) {
  669     if (ImmValue == ~(~ImmValue & ~(~ImmValue + 1))) {
  669     if (ImmValue == ~(~ImmValue & ~(~ImmValue + 1))) {
  702     if (ImmValue == (ImmValue & ~(ImmValue + 1))) {
  722     int32_t Log2 = (~ImmValue).exactLogBase2();
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)
 1535   SDValue BitMask = DAG.getConstant(~BitImm, DL, ResTy);
lib/Target/PowerPC/PPCISelLowering.cpp
 2313       if (~(LHSKnown.Zero | RHSKnown.Zero) == 0) {
lib/Target/RISCV/RISCVISelLowering.cpp
  969                                 DAG.getConstant(~SignBit, DL, MVT::i32));
 1015                                      DAG.getConstant(~SignBit, DL, MVT::i64)));
lib/Target/SystemZ/SystemZISelLowering.cpp
 2438   if ((~Known.Zero).getZExtValue() & ~Mask->getZExtValue())
 3588   unsigned NumSignificantBits = (~Known.Zero).getActiveBits();
lib/Target/X86/X86ISelDAGToDAG.cpp
 3811     NeededMask &= ~Cst->getAPIntValue();
lib/Target/X86/X86ISelLowering.cpp
10605   unsigned VEXPANDMask = (~Zeroable).getZExtValue();
31471   if (!ZeroExtendMask.isSubsetOf(Mask | ~Demanded))
37202           return Cond->getAPIntValue() == ~Op->getAPIntValue();
39324     if (EltBits0[i] != ~EltBits1[i])
44223                                    DAG.getConstant(~XorC, SDLoc(Op1), VT));
lib/Transforms/InstCombine/InstCombineAddSub.cpp
  793       if (match(Y, m_Or(m_Value(Z), m_APInt(C2))) && (*C2 == ~(*C1))) {
  799         Value *NewOr = Builder.CreateOr(Z, ~(*C1));
  819         Value *NewOr = Builder.CreateOr(Z, ~(*C2));
 1094       *C == ~*NotC)
 1334       APInt AddRHSHighBits(~((AddRHSV & -AddRHSV)-1));
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
 1002   APInt SignBitsMask = ~(HighestBit - 1U);
 1010     APInt OtherHighestBit = (~UnsetBitsMask) + 1U;
 1790       APInt NotAndMask(~(*C));
 2246           Value *MaskC = ConstantInt::get(LAddC->getType(), ~DiffC);
 2508               MaskedValueIsZero(V2, ~C1->getValue(), 0, &I)) || // (V|N)
 2510               MaskedValueIsZero(V1, ~C1->getValue(), 0, &I))))  // (N|V)
 2516               MaskedValueIsZero(V2, ~C2->getValue(), 0, &I)) || // (V|N)
 2518               MaskedValueIsZero(V1, ~C2->getValue(), 0, &I))))  // (N|V)
 2526             (C3->getValue() & ~C1->getValue()).isNullValue() &&
 2528             (C4->getValue() & ~C2->getValue()).isNullValue()) {
 2535       if (C1->getValue() == ~C2->getValue()) {
lib/Transforms/InstCombine/InstCombineCalls.cpp
  889     V00 = V00 & ~Mask;
lib/Transforms/InstCombine/InstCombineCasts.cpp
  889       APInt KnownZeroMask(~Known.Zero);
  937         APInt UnknownBit = ~KnownBits;
 1255       APInt KnownZeroMask(~Known.Zero);
lib/Transforms/InstCombine/InstCombineCompares.cpp
  107   APInt UnknownBits = ~(Known.Zero|Known.One);
  129   APInt UnknownBits = ~(Known.Zero|Known.One);
 1613     if (*XorC == ~C && (C + 1).isPowerOf2())
 1623                           ConstantInt::get(X->getType(), ~C));
 1627                           ConstantInt::get(X->getType(), ~C));
 1748     if ((~(*C2) + 1).isPowerOf2()) {
 1903       Value *A = Builder.CreateAnd(OrOp0, ~C);
 2126       Value *And = Builder.CreateAnd(X, (~C).lshr(ShiftAmt->getZExtValue()));
 2135           Builder.CreateAnd(X, (~(C - 1)).lshr(ShiftAmt->getZExtValue()));
 2616     return new ICmpInst(ICmpInst::ICMP_NE, Builder.CreateAnd(X, ~C),
 4987     APInt Op0KnownZeroInverted = ~Op0Known.Zero;
 5535                             ConstantInt::get(Op1->getType(), ~(*C)));
lib/Transforms/InstCombine/InstCombineSelect.cpp
  740       match(FVal, m_AllOnes()) && match(Cmp1, m_APInt(CmpC)) && *CmpC == ~*C) {
 1455         V = Builder.CreateAnd(X, ~(*Y));
 1459         V = Builder.CreateAnd(X, ~(*Y));
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
  168         SimplifyDemandedBits(I, 0, DemandedMask & ~RHSKnown.Zero, LHSKnown,
  192     if (ShrinkDemandedConstant(I, 1, DemandedMask & ~LHSKnown.Zero))
  202         SimplifyDemandedBits(I, 0, DemandedMask & ~RHSKnown.One, LHSKnown,
  276                                                  ~RHSKnown.One & DemandedMask);
  297         APInt NewMask = ~(LHSKnown.One & RHSKnown.One & DemandedMask);
  623           Known.Zero |= ~LowBits;
  628           Known.One |= ~LowBits;
 1095   assert((DemandedElts & ~EltMask) == 0 && "Invalid DemandedElts!");
lib/Transforms/Scalar/DeadStoreElimination.cpp
 1250                 (EarlierValue & ~Mask) | (LaterValue << LShiftAmount);
lib/Transforms/Scalar/Reassociate.cpp
 1219   Res = createAndInstr(I, X, ~C1);
 1262     APInt C3((~C1) ^ C2);
lib/Transforms/Scalar/SROA.cpp
 2175     APInt Mask = ~Ty->getMask().zext(IntTy->getBitWidth()).shl(ShAmt);
lib/Transforms/Utils/SimplifyCFG.cpp
  548         APInt Mask = ~*RHSC;
  549         if (Mask.isPowerOf2() && (C->getValue() & ~Mask) == C->getValue()) {
  579                                           C->getValue() & ~Mask));
tools/clang/lib/Basic/FixedPoint.cpp
   43       NewVal = NewVal.isNegative() ? Mask : ~Mask;
tools/clang/lib/CodeGen/CGExpr.cpp
 2057                             ~llvm::APInt::getBitsSet(Info.StorageSize,
tools/clang/lib/CodeGen/CGExprConstant.cpp
  261         BitsThisChar |= (CI->getValue() & ~UpdateMask);
tools/clang/lib/Sema/SemaDecl.cpp
17343   llvm::APInt FlagMask = ~FlagBits.zextOrTrunc(Val.getBitWidth());
17344   return !(FlagMask & Val) || (AllowMask && !(FlagMask & ~Val));
tools/lldb/source/Utility/Scalar.cpp
 2088     m_integer = ~m_integer;
 2694               ~(sign_bit) + llvm::APInt(m_integer.getBitWidth(), 1);
unittests/ADT/APIntTest.cpp
  900     APInt NegL = ~One;
  903     APInt NegR = ~getRValue("1", RawData);
unittests/IR/ConstantRangeTest.cpp
 2115         if ((Num & Known.Zero) != 0 || (~Num & Known.One) != 0)
unittests/Support/KnownBitsTest.cpp
   42     if ((Num & Known.Zero) != 0 || (~Num & Known.One) != 0)
   67               Known.Zero &= ~Add;
  101           Known.Zero &= ~Res;
  105             KnownNSW.Zero &= ~Res;