Home
last modified time | relevance | path

Searched refs:isAllOnesValue (Results 1 – 25 of 56) sorted by relevance

123

/external/llvm/include/llvm/IR/
DConstant.h60 bool isAllOnesValue() const;
DPatternMatch.h248 bool isValue(const APInt &C) { return C.isAllOnesValue(); } in isValue()
850 cast<Constant>(RHS)->isAllOnesValue() && L.match(LHS); in matchIfNot()
DConstants.h178 return Val.isAllOnesValue(); in isMinusOne()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp202 return C1I->isOne() || C1I->isAllOnesValue() || in isSelect01()
203 C2I->isOne() || C2I->isAllOnesValue(); in isSelect01()
509 if (Pred == ICmpInst::ICMP_SGT && Cmp->isAllOnesValue()) { in visitSelectInstWithICmp()
521 if (C2->isAllOnesValue()) in visitSelectInstWithICmp()
878 if (FalseValC->isZero() && TrueValC->isAllOnesValue()) in visitSelectInst()
888 if (TrueValC->isZero() && FalseValC->isAllOnesValue()) { in visitSelectInst()
DInstCombineCompares.cpp128 return RHS->isAllOnesValue(); in isSignBitCheck()
131 return RHS->isAllOnesValue(); in isSignBitCheck()
160 } else if (RHS->isAllOnesValue()) { in isSignTest()
878 if (DivIsSigned && DivRHS->isAllOnesValue()) in FoldICmpDivCst()
1129 if (AP2.isAllOnesValue()) in FoldICmpCstShrCst()
1155 if (AP1.isAllOnesValue() && !AP2.isPowerOf2()) in FoldICmpCstShrCst()
1252 (ICI.getPredicate() == ICmpInst::ICMP_SGT && RHSV.isAllOnesValue())) { in visitICmpInstWithInstAndIntCst()
1630 if (RHSV.isAllOnesValue()) { in visitICmpInstWithInstAndIntCst()
2865 if (I.getPredicate() == ICmpInst::ICMP_SGT && CI->isAllOnesValue() && in visitICmpInst()
DInstCombineAndOrXor.cpp560 if (!C->isAllOnesValue()) in decomposeBitTestICmp()
1044 if (LHSCst->getValue() == 0 && RHSCst->getValue().isAllOnesValue()) in FoldAndOfICmps()
2189 if (!Xor.isAllOnesValue()) return nullptr; in FoldOrWithConstants()
2220 if (!Xor.isAllOnesValue()) in FoldXorWithConstants()
2680 if (RHS->isAllOnesValue() && Op0->hasOneUse()) in visitXor()
2706 if (Op0I->getOpcode() == Instruction::Sub && RHS->isAllOnesValue()) in visitXor()
2717 if (RHS->isAllOnesValue()) { in visitXor()
DInstCombineSimplifyDemanded.cpp678 if (Rem->isAllOnesValue()) in SimplifyDemandedUseBits()
900 if (DemandedElts.isAllOnesValue()) in SimplifyDemandedVectorElts()
DInstCombineAddSub.cpp1114 if ((XorRHS->getValue() | LHSKnownZero).isAllOnesValue()) in visitAdd()
1585 if ((IntVal | KnownZero).isAllOnesValue()) { in visitSub()
DInstCombineCasts.cpp594 (ICI->getPredicate() == ICmpInst::ICMP_SGT &&Op1CV.isAllOnesValue())) { in transformZExtICmp()
979 (Pred == ICmpInst::ICMP_SGT && Op1C->isAllOnesValue())) { in transformSExtICmp()
/external/llvm/lib/Analysis/
DLint.cpp386 !cast<ConstantInt>(UnderlyingObject)->isAllOnesValue(), in visitMemoryReference()
519 return KnownZero.isAllOnesValue(); in isZero()
540 if (KnownZero.isAllOnesValue()) in isZero()
DConstantFolding.cpp57 if (C->isAllOnesValue() && !DestTy->isX86_MMXTy() && in FoldBitCast()
638 if ((KnownOne1 | KnownZero0).isAllOnesValue()) { in SymbolicallyEvaluateBinop()
642 if ((KnownOne0 | KnownZero1).isAllOnesValue()) { in SymbolicallyEvaluateBinop()
649 if ((KnownZero | KnownOne).isAllOnesValue()) { in SymbolicallyEvaluateBinop()
DValueTracking.cpp154 return (LHSKnownZero | RHSKnownZero).isAllOnesValue(); in haveNoCommonBitsSet()
571 if (KnownOneTemp.isAllOnesValue() || KnownZeroTemp.isNegative()) { in computeKnownBitsFromTrueCondition()
924 if (RHSKnownOne.isAllOnesValue() || RHSKnownZero.isNegative()) { in computeKnownBitsFromAssume()
944 if (RHSKnownZero.isAllOnesValue() || RHSKnownOne.isNegative()) { in computeKnownBitsFromAssume()
2268 if (CRHS->isAllOnesValue()) { in ComputeNumSignBits()
2275 if ((KnownZero | APInt(TyBits, 1)).isAllOnesValue()) in ComputeNumSignBits()
2300 if ((KnownZero | APInt(TyBits, 1)).isAllOnesValue()) in ComputeNumSignBits()
DBranchProbabilityInfo.cpp439 } else if (CV->isAllOnesValue()) { in calcZeroHeuristics()
DScalarEvolution.cpp280 bool SCEV::isAllOnesValue() const { in isAllOnesValue() function in SCEV
282 return SC->getValue()->isAllOnesValue(); in isAllOnesValue()
2446 } else if (Ops[0]->isAllOnesValue()) { in getMulExpr()
4583 if (CI->isAllOnesValue()) in createSCEV()
4648 if (CI->isAllOnesValue()) in createSCEV()
6635 if (StepC->getValue()->equalsInt(1) || StepC->getValue()->isAllOnesValue()) { in HowFarToZero()
6849 ME->getOperand(0)->isAllOnesValue()) { in SimplifyICmpOperands()
7931 !Add->getOperand(0)->isAllOnesValue()) in MatchNotExpr()
7936 !AddRHS->getOperand(0)->isAllOnesValue()) in MatchNotExpr()
/external/clang/lib/StaticAnalyzer/Core/
DSimpleSValBuilder.cpp256 else if (RHS.isAllOnesValue()) in MakeSymIntVal()
263 else if (RHS.isAllOnesValue()) { in MakeSymIntVal()
413 if (LHSValue.isAllOnesValue() && LHSValue.isSigned()) in evalBinOpNN()
/external/llvm/lib/IR/
DConstantFold.cpp48 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy); in BitCastConstantVector()
244 if (RHSC->isAllOnesValue()) in ExtractConstantBytes()
730 if (Cond->isAllOnesValue()) return V1; in ConstantFoldSelectInstruction()
1034 if (CI2->isAllOnesValue()) in ConstantFoldBinaryInstruction()
1072 if (CI2->isAllOnesValue()) in ConstantFoldBinaryInstruction()
1124 if (C2V.isAllOnesValue() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction()
1132 if (C2V.isAllOnesValue() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction()
DConstants.cpp106 bool Constant::isAllOnesValue() const { in isAllOnesValue() function in Constant
113 return CFP->getValueAPF().bitcastToAPInt().isAllOnesValue(); in isAllOnesValue()
118 return Splat->isAllOnesValue(); in isAllOnesValue()
123 return Splat->isAllOnesValue(); in isAllOnesValue()
DConstantRange.cpp753 if (umin.isAllOnesValue()) in binaryAnd()
/external/llvm/include/llvm/ADT/
DAPInt.h338 bool isAllOnesValue() const { in isAllOnesValue() function
348 bool isMaxValue() const { return isAllOnesValue(); } in isMaxValue()
/external/mesa3d/src/gallium/drivers/radeon/
DAMDGPUISelLowering.cpp297 return C->isAllOnesValue(); in isHWTrueValue()
DSIISelLowering.cpp406 && True->isAllOnesValue() in PerformDAGCombine()
/external/llvm/lib/Transforms/Scalar/
DReassociate.cpp1240 if (!ConstOpnd.isAllOnesValue()) { in createAndInstr()
1323 if (C3 != 0 && !C3.isAllOnesValue()) { in CombineXorOpnd()
1340 if (C3 != 0 && !C3.isAllOnesValue()) { in CombineXorOpnd()
2205 cast<ConstantInt>(Ops.back().Op)->isAllOnesValue()) { in ReassociateExpression()
DLoopIdiomRecognize.cpp817 Dec->isAllOnesValue()))) { in detectPopcountIdiom()
/external/llvm/include/llvm/Analysis/
DScalarEvolution.h127 bool isAllOnesValue() const;
/external/llvm/include/llvm/CodeGen/
DSelectionDAGNodes.h1438 bool isAllOnesValue() const { return Value->isAllOnesValue(); }

123