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;
gen/lib/Target/X86/X86GenDAGISel.inc
254140   return (~Known0.Zero & ~Known1.Zero) == 0;
lib/Analysis/BasicAliasAnalysis.cpp
 1503     Modulo = Modulo ^ (Modulo & (Modulo - 1));
 1508     APInt ModOffset = GEP1BaseOffset & (Modulo - 1);
lib/Analysis/DemandedBits.cpp
  222         if ((AOut & APInt::getHighBitsSet(BitWidth, ShiftAmt))
  244       AB &= ~(Known.Zero & ~Known2.Zero);
  257       AB &= ~(Known.One & ~Known2.One);
  274     if ((AOut & APInt::getHighBitsSet(AOut.getBitWidth(),
lib/Analysis/Loads.cpp
   45     return APBaseAlign.uge(APAlign) && !(Offset & (APAlign - 1));
lib/Analysis/ScalarEvolution.cpp
 6269         if ((LZ != 0 || TZ != 0) && !((~A & ~Known.Zero) & EffectiveMask)) {
lib/CodeGen/CodeGenPrepare.cpp
 1514     if ((Cimm & (Cimm + 1)).getBoolValue())
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
 5630         if (DAG.MaskedValueIsZero(N0.getOperand(0), RHSMask&~LHSMask) &&
 5631             DAG.MaskedValueIsZero(N1.getOperand(0), LHSMask&~RHSMask)) {
14488   assert((UsedBits & Second.getUsedBits()) == 0 &&
19938   if (N2C && ((N2C->getAPIntValue() & (N2C->getAPIntValue() - 1)) == 0)) {
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 2574       APInt DemandedSrcElts = DemandedElts & ~SubMask;
 3196       APInt VectorElts = DemandedElts & ~(APInt::getOneBitSet(NumElts, EltIdx));
 3868       APInt DemandedSrcElts = DemandedElts & ~SubMask;
 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
 3373                           DAG.getConstant(C1 & APInt::getLowBitsSet(
lib/IR/ConstantRange.cpp
  736     APInt Adjust = LowerDiv & APInt::getBitsSetFrom(getBitWidth(), DstTySize);
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
 2005       Mask |= (ResultUsefulBits & ~OpUsefulBits);
 2022       Mask |= (ResultUsefulBits & ~OpUsefulBits);
 2152     assert((~APInt(BitWidth, AndImm) & ~Known.Zero) == 0);
 2369     if ((BitsToBeInserted & ~Known.Zero) != 0)
lib/Target/Mips/MipsSEISelDAGToDAG.cpp
  669     if (ImmValue == ~(~ImmValue & ~(~ImmValue + 1))) {
  702     if (ImmValue == (ImmValue & ~(ImmValue + 1))) {
lib/Transforms/InstCombine/InstCombineAddSub.cpp
 1334       APInt AddRHSHighBits(~((AddRHSV & -AddRHSV)-1));
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  140         if ((AddRHS & (AndRHSV - 1)).isNullValue()) {
  507       (BCst->getValue() & (BCst->getValue() ^ DCst->getValue())).isPowerOf2()) {
  509     APInt BandBxorDorE = (BCst->getValue() & (BCst->getValue() ^ DCst->getValue())) |
  735     if (((BCst->getValue() & DCst->getValue()) &
 2526             (C3->getValue() & ~C1->getValue()).isNullValue() &&
 2528             (C4->getValue() & ~C2->getValue()).isNullValue()) {
lib/Transforms/InstCombine/InstCombineCalls.cpp
  889     V00 = V00 & ~Mask;
lib/Transforms/InstCombine/InstCombineCompares.cpp
 1552       NewRHS |= Known.One & APInt::getHighBitsSet(SrcBits, SrcBits - DstBits);
 2544       (*C2 & (C - 1)) == (C - 1))
 2608   if (Pred == ICmpInst::ICMP_ULT && C.isPowerOf2() && (*C2 & (C - 1)) == 0)
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,
 1095   assert((DemandedElts & ~EltMask) == 0 && "Invalid DemandedElts!");
lib/Transforms/Scalar/DeadStoreElimination.cpp
 1250                 (EarlierValue & ~Mask) | (LaterValue << LShiftAmount);
lib/Transforms/Utils/SimplifyCFG.cpp
  549         if (Mask.isPowerOf2() && (C->getValue() & ~Mask) == C->getValue()) {
  579                                           C->getValue() & ~Mask));
tools/clang/lib/CodeGen/CGExprConstant.cpp
  261         BitsThisChar |= (CI->getValue() & ~UpdateMask);
tools/clang/lib/Sema/SemaChecking.cpp
 6264   if (Result.isStrictlyPositive() && (Result & (Result - 1)) == 0)
tools/clang/lib/Sema/SemaDecl.cpp
17344   return !(FlagMask & Val) || (AllowMask && !(FlagMask & ~Val));
unittests/ADT/APIntTest.cpp
  786     APInt AndLR = Ten & getRValue("C", RawDataR);
  794     APInt AndRR = getRValue("A", RawDataL) & getRValue("C", RawDataR);