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

References

include/llvm/ADT/APInt.h
  420   bool isMaxValue() const { return isAllOnesValue(); }
include/llvm/IR/Constants.h
  209     return Val.isAllOnesValue();
include/llvm/IR/PatternMatch.h
  332   bool isValue(const APInt &C) { return C.isAllOnesValue(); }
include/llvm/Support/KnownBits.h
   73     return Zero.isAllOnesValue();
   79     return One.isAllOnesValue();
lib/Analysis/CmpInstAnalysis.cpp
   87     if (!C->isAllOnesValue())
   94     if (!C->isAllOnesValue())
lib/Analysis/ConstantFolding.cpp
  726     if ((Known1.One | Known0.Zero).isAllOnesValue()) {
  730     if ((Known0.One | Known1.Zero).isAllOnesValue()) {
lib/Analysis/ValueTracking.cpp
  210   return (LHSKnown.Zero | RHSKnown.Zero).isAllOnesValue();
 2521           if ((Known.Zero | 1).isAllOnesValue())
 2545           if ((Known.Zero | 1).isAllOnesValue())
 4719     if (Pred == CmpInst::ICMP_SGT && C1->isAllOnesValue() &&
 5516       if (C->isAllOnesValue()) {
lib/CodeGen/CodeGenPrepare.cpp
 3753     if (Cst && !Cst->getValue().isAllOnesValue())
lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
  568   assert(ValueMask.isAllOnesValue() && "Value is not fully mapped");
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
 3377   if (N1IsConst && ConstValue1.isAllOnesValue()) {
 3788   if (N1C && N1C->getAPIntValue().isAllOnesValue())
 3885   if (!isSigned && N1C && N1C->getAPIntValue().isAllOnesValue())
 5197     if (B && Constant.isAllOnesValue()) {
 9673   return (Known.Zero | 1).isAllOnesValue();
14468   if (UsedBits.isAllOnesValue())
14477   return NarrowedUsedBits.isAllOnesValue();
14893     if (Imm == 0 || Imm.isAllOnesValue())
19499       if (Bits.isAllOnesValue())
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 3687         if ((Known.Zero | 1).isAllOnesValue())
 3710         if ((Known.Zero | 1).isAllOnesValue())
 4148   return (computeKnownBits(A).Zero | computeKnownBits(B).Zero).isAllOnesValue();
lib/CodeGen/SelectionDAG/TargetLowering.cpp
 1050     if (!DemandedBits.isAllOnesValue() || !DemandedElts.isAllOnesValue()) {
 1050     if (!DemandedBits.isAllOnesValue() || !DemandedElts.isAllOnesValue()) {
 1099     if (!DemandedBits.isAllOnesValue() || !DemandedElts.isAllOnesValue()) {
 1099     if (!DemandedBits.isAllOnesValue() || !DemandedElts.isAllOnesValue()) {
 1145     if (!DemandedBits.isAllOnesValue() || !DemandedElts.isAllOnesValue()) {
 1145     if (!DemandedBits.isAllOnesValue() || !DemandedElts.isAllOnesValue()) {
 1946     if (!LoMask.isAllOnesValue() || !DemandedElts.isAllOnesValue()) {
 1946     if (!LoMask.isAllOnesValue() || !DemandedElts.isAllOnesValue()) {
 1970         (C->getAPIntValue() | HighMask).isAllOnesValue()) {
 2204           if (SrcZero.extractBits(Scale, i * Scale).isAllOnesValue())
 2206           if (SrcUndef.extractBits(Scale, i * Scale).isAllOnesValue())
 2215     if (!DemandedElts.isAllOnesValue()) {
 2729     return CVal.isAllOnesValue();
 4665     if (Divisor.isOneValue() || Divisor.isAllOnesValue()) {
 4998       assert(Q.isAllOnesValue() &&
lib/IR/ConstantFold.cpp
 1237         if (C2V.isAllOnesValue() && C1V.isMinSignedValue())
 1245         if (C2V.isAllOnesValue() && C1V.isMinSignedValue())
lib/IR/ConstantRange.cpp
  207   if (V.isAllOnesValue())
 1074       if (!NegR.Lower.isAllOnesValue()) {
 1076         if (RHS.Lower.isAllOnesValue())
lib/IR/Constants.cpp
  107     return CFP->getValueAPF().bitcastToAPInt().isAllOnesValue();
  118         return CV->getElementAsAPFloat(0).bitcastToAPInt().isAllOnesValue();
  119       return CV->getElementAsAPInt(0).isAllOnesValue();
lib/Support/APInt.cpp
 1959   Overflow = isMinSignedValue() && RHS.isAllOnesValue();
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
 1879          (SignificantDstMask | SignificantBitsToBeInserted).isAllOnesValue();
lib/Target/AArch64/AArch64ISelLowering.cpp
 7558         if (Val.isNullValue() || Val.isAllOnesValue())
lib/Target/ARM/ARMISelLowering.cpp
 7106     if (SplatUndef.isAllOnesValue())
lib/Target/ARM/ARMTargetTransformInfo.cpp
  142   if (Opcode == Instruction::Xor && Imm.isAllOnesValue())
lib/Target/Mips/MipsSEISelLowering.cpp
  571     return SplatValue.isAllOnesValue();
  703       if (Mask.isAllOnesValue())
lib/Target/X86/X86ISelDAGToDAG.cpp
 3938   if (NegMaskVal.isAllOnesValue()) {
lib/Target/X86/X86ISelLowering.cpp
 6007       if (UndefEltBits.isAllOnesValue()) {
 7963     if (UndefMask.extractBits(HalfNumElems, HalfNumElems).isAllOnesValue()) {
11801   assert(!Zeroable.isAllOnesValue() && "Fully zeroable shuffle mask");
17090   if (Zeroable.isAllOnesValue())
19951     if (!I->second.isAllOnesValue())
32979   assert((UndefElts | ZeroElts | ConstantElts).isAllOnesValue());
34422     if (!DemandedElts.isAllOnesValue()) {
39261           return M.isNullValue() || M.isAllOnesValue();
40288     if (ConstNode->getAPIntValue().isAllOnesValue()) {
lib/Target/X86/X86ShuffleDecodeConstantPool.cpp
  101     if (EltUndef.isAllOnesValue()) {
lib/Transforms/InstCombine/InstCombineAddSub.cpp
 1258         if ((XorRHS->getValue() | LHSKnown.Zero).isAllOnesValue())
 1826       if ((*Op0C | RHSKnown.Zero).isAllOnesValue())
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  843   if (C1->isNullValue() && C2->isAllOnesValue())
 2487       !CV->isAllOnesValue() && MaskedValueIsZero(Y, *CV, 0, &I)) {
lib/Transforms/InstCombine/InstCombineCasts.cpp
  857         (ICI->getPredicate() == ICmpInst::ICMP_SGT && Op1CV->isAllOnesValue())) {
lib/Transforms/InstCombine/InstCombineCompares.cpp
   88   } else if (C.isAllOnesValue()) {
 1169     if (AP2.isAllOnesValue())
 1195       if (AP1.isAllOnesValue() && !AP2.isPowerOf2())
 1996     if (C.isAllOnesValue()) {
 2354       (DivIsSigned && C2->isAllOnesValue()))
 2522     if (Pred == ICmpInst::ICMP_SGT && C.isAllOnesValue())
lib/Transforms/InstCombine/InstCombineInternal.h
  127     return RHS.isAllOnesValue();
  130     return RHS.isAllOnesValue();
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  664   if (IsSigned && C1.isMinSignedValue() && C2.isAllOnesValue())
lib/Transforms/InstCombine/InstCombineSelect.cpp
  418   return C1I.isOneValue() || C1I.isAllOnesValue() ||
  419          C2I.isOneValue() || C2I.isAllOnesValue();
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
 1113     if (DemandedElts.isAllOnesValue())
 1729   if (UndefElts.isAllOnesValue())
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
  312     if (UnionUsedElts.isAllOnesValue())
  353         if (!DemandedElts.isAllOnesValue()) {
lib/Transforms/Scalar/BDCE.cpp
   51         !DB.getDemandedBits(J).isAllOnesValue()) {
   82           !DB.getDemandedBits(K).isAllOnesValue())
lib/Transforms/Scalar/LoopStrengthReduce.cpp
  671     if (RA.isAllOnesValue())
lib/Transforms/Scalar/Reassociate.cpp
 1186   if (ConstOpnd.isAllOnesValue())
 1265     if (!C3.isNullValue() && !C3.isAllOnesValue()) {
 1281     if (!C3.isNullValue() && !C3.isAllOnesValue()) {
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
  598   if (IndexOffset.isAllOnesValue())
tools/clang/lib/AST/ExprConstant.cpp
 2512     if (RHS.isNegative() && RHS.isAllOnesValue() &&
14082           if (REval.isSigned() && REval.isAllOnesValue()) {
tools/clang/lib/CodeGen/CGExprScalar.cpp
 1635     if (Idx.isSigned() && Idx.isAllOnesValue())
tools/clang/lib/Sema/SemaChecking.cpp
 5934     if (Result.isSigned() && Result.isAllOnesValue())
tools/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp
  264     else if (RHS.isAllOnesValue())
  271     else if (RHS.isAllOnesValue()) {
  647         if (LHSValue.isAllOnesValue() && LHSValue.isSigned())
unittests/ADT/APIntTest.cpp
 2402   EXPECT_TRUE(signmin32.ashr(32).isAllOnesValue());
 2410   EXPECT_TRUE(signmin128.ashr(128).isAllOnesValue());
unittests/IR/ConstantRangeTest.cpp
 1093         if (N1.isMinSignedValue() && N2.isAllOnesValue())